aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-12-13 08:28:47 +0800
committermiwi <miwi@FreeBSD.org>2009-12-13 08:28:47 +0800
commitf52cff5abd73de36446aaf589f22d39e75b24074 (patch)
tree4c2a270dd362f43dd1fbce1dc2e72d647cfcf1ce /graphics
parent174b43932237eb683566490fa4aca5c9c5d1050b (diff)
downloadfreebsd-ports-gnome-f52cff5abd73de36446aaf589f22d39e75b24074.tar.gz
freebsd-ports-gnome-f52cff5abd73de36446aaf589f22d39e75b24074.tar.zst
freebsd-ports-gnome-f52cff5abd73de36446aaf589f22d39e75b24074.zip
The sorl-thumbnail package provides an easy way to generate image
thumbnails. Although not required to use, sorl-thumbnail is heavily integrated with the Django framework. WWW: http://code.google.com/p/sorl-thumbnail/ PR: ports/140824 Submitted by: Kevin Golding <ports at caomhin.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/py-sorl-thumbnail/Makefile60
-rw-r--r--graphics/py-sorl-thumbnail/distinfo3
-rw-r--r--graphics/py-sorl-thumbnail/pkg-descr6
-rw-r--r--graphics/py-sorl-thumbnail/pkg-plist66
5 files changed, 136 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 34deb46703c2..316349c6790e 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -761,6 +761,7 @@
SUBDIR += py-pyproj
SUBDIR += py-qt4-svg
SUBDIR += py-rabbyt
+ SUBDIR += py-sorl-thumbnail
SUBDIR += py-soya3d
SUBDIR += py-visual
SUBDIR += pygts
diff --git a/graphics/py-sorl-thumbnail/Makefile b/graphics/py-sorl-thumbnail/Makefile
new file mode 100644
index 000000000000..a523deca7d5f
--- /dev/null
+++ b/graphics/py-sorl-thumbnail/Makefile
@@ -0,0 +1,60 @@
+# New ports collection makefile for: py-sorl-thumbnail
+# Date created: 24 November 2009
+# Whom: Kevin Golding <ports@caomhin.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sorl-thumbnail
+PORTVERSION= 3.2.5
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports@caomhin.org
+COMMENT= The sorl-thumbnail package provides an easy way to generate image thumbnails.
+
+RUN_DEPENDS= ${LOCALBASE}/bin/pildriver.py:${PORTSDIR}/graphics/py-imaging
+
+USE_PYTHON= 2.4+
+USE_PYDISTUTILS= yes
+
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONS= DJANGO "Enable Django" On \
+ PDF "Enable PDF Thumbnails" Off \
+ WORD "Enable Word Document thumbnail handling" Off \
+ DOCS "Install HTML documentation (requires Sphinx)" Off
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_DJANGO)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django
+.endif
+
+.if defined(WITH_PDF)
+RUN_DEPENDS+= ${LOCALBASE}/bin/Magick-config:${PORTSDIR}/graphics/ImageMagick
+.endif
+
+.if defined(WITH_WORD)
+RUN_DEPENDS+= wvVersion:${PORTSDIR}/textproc/wv
+.endif
+
+.if defined(WITH_DOCS)
+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
+PORTDOCS= *
+.endif
+
+post-build:
+.if defined(WITH_DOCS)
+ cd ${WRKSRC}/docs && ${MAKE} html
+.endif
+
+post-install:
+.if defined(WITH_DOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/py-sorl-thumbnail/distinfo b/graphics/py-sorl-thumbnail/distinfo
new file mode 100644
index 000000000000..682a8f72f816
--- /dev/null
+++ b/graphics/py-sorl-thumbnail/distinfo
@@ -0,0 +1,3 @@
+MD5 (sorl-thumbnail-3.2.5.tar.gz) = f4e2add215fa66db554cc882e7e526ae
+SHA256 (sorl-thumbnail-3.2.5.tar.gz) = f7135ac44cb8ae9e0f5bb0376cc66858499f1d3d93875437d50cf0cae65b47eb
+SIZE (sorl-thumbnail-3.2.5.tar.gz) = 30655
diff --git a/graphics/py-sorl-thumbnail/pkg-descr b/graphics/py-sorl-thumbnail/pkg-descr
new file mode 100644
index 000000000000..a106c922e28e
--- /dev/null
+++ b/graphics/py-sorl-thumbnail/pkg-descr
@@ -0,0 +1,6 @@
+The sorl-thumbnail package provides an easy way to generate image
+thumbnails.
+Although not required to use, sorl-thumbnail is heavily integrated with
+the Django framework.
+
+WWW: http://code.google.com/p/sorl-thumbnail/
diff --git a/graphics/py-sorl-thumbnail/pkg-plist b/graphics/py-sorl-thumbnail/pkg-plist
new file mode 100644
index 000000000000..d7bd3279b59d
--- /dev/null
+++ b/graphics/py-sorl-thumbnail/pkg-plist
@@ -0,0 +1,66 @@
+%%PYTHON_SITELIBDIR%%/sorl/__init__.py
+%%PYTHON_SITELIBDIR%%/sorl/__init__.pyc
+%%PYTHON_SITELIBDIR%%/sorl/__init__.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/__init__.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/__init__.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/__init__.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/base.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/base.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/base.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/defaults.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/defaults.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/defaults.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/fields.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/fields.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/fields.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/main.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/main.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/main.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/__init__.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/__init__.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/__init__.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands/__init__.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands/__init__.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands/__init__.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands/thumbnail_cleanup.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands/thumbnail_cleanup.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands/thumbnail_cleanup.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/models.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/models.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/models.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/processors.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/processors.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/processors.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags/__init__.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags/__init__.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags/__init__.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags/thumbnail.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags/thumbnail.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags/thumbnail.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/__init__.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/__init__.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/__init__.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/base.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/base.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/base.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/classes.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/classes.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/classes.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/fields.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/fields.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/fields.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/templatetags.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/templatetags.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/templatetags.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/utils.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/utils.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests/utils.pyo
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/utils.py
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/utils.pyc
+%%PYTHON_SITELIBDIR%%/sorl/thumbnail/utils.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/sorl/thumbnail/management/commands
+@dirrm %%PYTHON_SITELIBDIR%%/sorl/thumbnail/management
+@dirrm %%PYTHON_SITELIBDIR%%/sorl/thumbnail/templatetags
+@dirrm %%PYTHON_SITELIBDIR%%/sorl/thumbnail/tests
+@dirrm %%PYTHON_SITELIBDIR%%/sorl/thumbnail
+@dirrm %%PYTHON_SITELIBDIR%%/sorl