Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2016 18:46:49 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
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
Message-ID:  <201604201846.u3KIkn68043661@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk>
+
+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 <bsd.port.post.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604201846.u3KIkn68043661>