From owner-svn-ports-head@freebsd.org Wed Apr 20 18:46:51 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F82CB16519; Wed, 20 Apr 2016 18:46:51 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C61271528; Wed, 20 Apr 2016 18:46:50 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3KIkoMx043667; Wed, 20 Apr 2016 18:46:50 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3KIkn68043661; Wed, 20 Apr 2016 18:46:49 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201604201846.u3KIkn68043661@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Wed, 20 Apr 2016 18:46:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413696 - in head/www: . py-django-annotations py-django-annotations/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 18:46:51 -0000 Author: swills Date: Wed Apr 20 18:46:49 2016 New Revision: 413696 URL: https://svnweb.freebsd.org/changeset/ports/413696 Log: www/py-django-annotations: create port Django implementation of annotatorjs Storage. WWW: https://github.com/TheDataShed/django-annotations Added: head/www/py-django-annotations/ head/www/py-django-annotations/Makefile (contents, props changed) head/www/py-django-annotations/distinfo (contents, props changed) head/www/py-django-annotations/files/ head/www/py-django-annotations/files/patch-annotations.py (contents, props changed) head/www/py-django-annotations/files/patch-setup.py (contents, props changed) head/www/py-django-annotations/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Wed Apr 20 18:41:25 2016 (r413695) +++ head/www/Makefile Wed Apr 20 18:46:49 2016 (r413696) @@ -1522,6 +1522,7 @@ SUBDIR += py-cssutils SUBDIR += py-django SUBDIR += py-django-allauth + SUBDIR += py-django-annotations SUBDIR += py-django-annoying SUBDIR += py-django-app-plugins SUBDIR += py-django-appconf Added: head/www/py-django-annotations/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-annotations/Makefile Wed Apr 20 18:46:49 2016 (r413696) @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= django-annotations +PORTVERSION= 0.0.0.2016041401 +CATEGORIES= www python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= swills@FreeBSD.org +COMMENT= Django implementation of annotatorjs Storage + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-cors-headers>=1.1.0:www/py-django-cors-headers \ + ${PYTHON_PKGNAMEPREFIX}djangorestframework>=3.3.2:www/py-djangorestframework \ + ${PYTHON_PKGNAMEPREFIX}django-rq>0:devel/py-django-rq \ + ${PYTHON_PKGNAMEPREFIX}django-rq-dashboard>0:devel/py-django-rq-dashboard \ + ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist concurrent distutils + +GH_ACCOUNT= TheDataShed +GH_TAGNAME= cdb04b4 + +NO_ARCH= yes +PLIST_FILES= "@sample etc/annotations/default/__init__.py.example" \ + "@dir etc/annotations" \ + "@dir etc/annotations/default" + +.include + +post-extract: + @${MV} ${WRKSRC}/manage.py ${WRKSRC}/annotations.py + @${MV} ${WRKSRC}/templates ${WRKSRC}/annotation + +post-patch: + @${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|' \ + ${WRKSRC}/annotations.py + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/annotations/default + ${INSTALL_DATA} ${WRKSRC}/annotator/settings/base.py ${STAGEDIR}${PREFIX}/etc/annotations/default/__init__.py.example + +.include Added: head/www/py-django-annotations/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-annotations/distinfo Wed Apr 20 18:46:49 2016 (r413696) @@ -0,0 +1,2 @@ +SHA256 (TheDataShed-django-annotations-0.0.0.2016041401-cdb04b4_GH0.tar.gz) = b2f33370524003ee39fdc7e54e7cc7133929faa7d564e3ccc9369efe6e70980d +SIZE (TheDataShed-django-annotations-0.0.0.2016041401-cdb04b4_GH0.tar.gz) = 92627 Added: head/www/py-django-annotations/files/patch-annotations.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-annotations/files/patch-annotations.py Wed Apr 20 18:46:49 2016 (r413696) @@ -0,0 +1,18 @@ +--- annotations.py.orig 2016-02-10 10:11:37 UTC ++++ annotations.py +@@ -1,9 +1,13 @@ +-#!/usr/bin/env python ++#!/usr/local/bin/python2.7 + import os + import sys + + if __name__ == "__main__": +- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "annotator.settings.local") ++ if not os.environ.get("DJANGO_SETTINGS_MODULE"): ++ print "Please set DJANGO_SETTINGS_MODULE" ++ exit(-1) ++ ++ sys.path.append("/usr/local/etc/annotations") + + from django.core.management import execute_from_command_line + Added: head/www/py-django-annotations/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-annotations/files/patch-setup.py Wed Apr 20 18:46:49 2016 (r413696) @@ -0,0 +1,13 @@ +--- setup.py.orig 2016-04-14 21:10:12 UTC ++++ setup.py +@@ -0,0 +1,10 @@ ++#!/usr/bin/env python ++ ++from distutils.core import setup ++ ++setup(name='django-annotations', ++ version='0.0.0.2016041401', ++ packages=['annotation/migrations', 'annotation', 'annotator/settings', 'annotator', 'enqueue/migrations', 'enqueue'], ++ scripts=['annotations.py'], ++ package_data={'annotation': ['static/js/annotator.min.js', 'templates/*']}, ++) Added: head/www/py-django-annotations/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-annotations/pkg-descr Wed Apr 20 18:46:49 2016 (r413696) @@ -0,0 +1,3 @@ +Django implementation of annotatorjs Storage. + +WWW: https://github.com/TheDataShed/django-annotations