Changes 1.5:
* Better support for multiple source generators. * Update method used to check for modification dates of source and thumbnail images. Thanks Ben Roberts. * Better thumbnail_high_resolution handling, including the ability to switch on and off explicitly with a ``HIGH_RESOLUTION`` thumbnail option. * Added configuration option to specify the infix used for high resolution image handling. * Optional postprocessor for image optimization. Thanks Jacob Rief! * More remote storages optimization * Thumbnail dimensions can now optionally be cached. Thanks David Novakovic. * New ``zoom`` option to generate a thumbnail of a source image with a percentage clipped off each side. * New ``background`` source processor that can add a border color to ensure scaled images fit within the exact dimensions given.
This commit is contained in:
parent
ddec64603b
commit
e8cdcf8864
4 changed files with 65 additions and 13 deletions
|
@ -1,8 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.2 2014/01/20 15:45:14 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2014/04/12 10:10:27 adam Exp $
|
||||
|
||||
DISTNAME= easy-thumbnails-1.2
|
||||
DISTNAME= easy-thumbnails-1.5
|
||||
PKGNAME= ${PYPKGPREFIX}-django-${DISTNAME}
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= http://pypi.python.org/packages/source/e/easy-thumbnails/
|
||||
|
||||
|
@ -13,10 +12,8 @@ LICENSE= modified-bsd
|
|||
|
||||
DEPENDS+= ${PYPKGPREFIX}-django-[0-9]*:../../www/py-django
|
||||
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.2
|
||||
EGG_NAME= ${DISTNAME:S/-/_/}
|
||||
|
||||
EGG_NAME= ${DISTNAME:S/-/_/}
|
||||
USE_LANGUAGES= # empty
|
||||
|
||||
.include "../../lang/python/distutils.mk"
|
||||
.include "../../lang/python/egg.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
@comment $NetBSD: PLIST,v 1.2 2014/01/20 15:45:14 wiz Exp $
|
||||
${PYSITELIB}/${EGG_FILE}
|
||||
@comment $NetBSD: PLIST,v 1.3 2014/04/12 10:10:27 adam Exp $
|
||||
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
||||
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
|
||||
${PYSITELIB}/${EGG_INFODIR}/requires.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
|
||||
${PYSITELIB}/easy_thumbnails/__init__.py
|
||||
${PYSITELIB}/easy_thumbnails/__init__.pyc
|
||||
${PYSITELIB}/easy_thumbnails/__init__.pyo
|
||||
|
@ -75,12 +80,24 @@ ${PYSITELIB}/easy_thumbnails/migrations/0014_auto__add_unique_source_name_storag
|
|||
${PYSITELIB}/easy_thumbnails/migrations/0015_auto__del_unique_thumbnail_name_storage_hash__add_unique_thumbnail_sou.py
|
||||
${PYSITELIB}/easy_thumbnails/migrations/0015_auto__del_unique_thumbnail_name_storage_hash__add_unique_thumbnail_sou.pyc
|
||||
${PYSITELIB}/easy_thumbnails/migrations/0015_auto__del_unique_thumbnail_name_storage_hash__add_unique_thumbnail_sou.pyo
|
||||
${PYSITELIB}/easy_thumbnails/migrations/0016_auto__add_thumbnaildimensions.py
|
||||
${PYSITELIB}/easy_thumbnails/migrations/0016_auto__add_thumbnaildimensions.pyc
|
||||
${PYSITELIB}/easy_thumbnails/migrations/0016_auto__add_thumbnaildimensions.pyo
|
||||
${PYSITELIB}/easy_thumbnails/migrations/__init__.py
|
||||
${PYSITELIB}/easy_thumbnails/migrations/__init__.pyc
|
||||
${PYSITELIB}/easy_thumbnails/migrations/__init__.pyo
|
||||
${PYSITELIB}/easy_thumbnails/models.py
|
||||
${PYSITELIB}/easy_thumbnails/models.pyc
|
||||
${PYSITELIB}/easy_thumbnails/models.pyo
|
||||
${PYSITELIB}/easy_thumbnails/optimize/__init__.py
|
||||
${PYSITELIB}/easy_thumbnails/optimize/__init__.pyc
|
||||
${PYSITELIB}/easy_thumbnails/optimize/__init__.pyo
|
||||
${PYSITELIB}/easy_thumbnails/optimize/conf.py
|
||||
${PYSITELIB}/easy_thumbnails/optimize/conf.pyc
|
||||
${PYSITELIB}/easy_thumbnails/optimize/conf.pyo
|
||||
${PYSITELIB}/easy_thumbnails/optimize/post_processor.py
|
||||
${PYSITELIB}/easy_thumbnails/optimize/post_processor.pyc
|
||||
${PYSITELIB}/easy_thumbnails/optimize/post_processor.pyo
|
||||
${PYSITELIB}/easy_thumbnails/processors.py
|
||||
${PYSITELIB}/easy_thumbnails/processors.pyc
|
||||
${PYSITELIB}/easy_thumbnails/processors.pyo
|
||||
|
@ -90,6 +107,24 @@ ${PYSITELIB}/easy_thumbnails/signal_handlers.pyo
|
|||
${PYSITELIB}/easy_thumbnails/signals.py
|
||||
${PYSITELIB}/easy_thumbnails/signals.pyc
|
||||
${PYSITELIB}/easy_thumbnails/signals.pyo
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/__init__.py
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/__init__.pyc
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/__init__.pyo
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/base.py
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/base.pyc
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/base.pyo
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/classes.py
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/classes.pyc
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/classes.pyo
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/fields.py
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/fields.pyc
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/fields.pyo
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/templatetags.py
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/templatetags.pyc
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/templatetags.pyo
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/utils.py
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/utils.pyc
|
||||
${PYSITELIB}/easy_thumbnails/sorl-tests/utils.pyo
|
||||
${PYSITELIB}/easy_thumbnails/source_generators.py
|
||||
${PYSITELIB}/easy_thumbnails/source_generators.pyc
|
||||
${PYSITELIB}/easy_thumbnails/source_generators.pyo
|
||||
|
@ -120,6 +155,12 @@ ${PYSITELIB}/easy_thumbnails/tests/fields.pyo
|
|||
${PYSITELIB}/easy_thumbnails/tests/files.py
|
||||
${PYSITELIB}/easy_thumbnails/tests/files.pyc
|
||||
${PYSITELIB}/easy_thumbnails/tests/files.pyo
|
||||
${PYSITELIB}/easy_thumbnails/tests/mockoptim.py
|
||||
${PYSITELIB}/easy_thumbnails/tests/mockoptim.pyc
|
||||
${PYSITELIB}/easy_thumbnails/tests/mockoptim.pyo
|
||||
${PYSITELIB}/easy_thumbnails/tests/mockoptim_fail.py
|
||||
${PYSITELIB}/easy_thumbnails/tests/mockoptim_fail.pyc
|
||||
${PYSITELIB}/easy_thumbnails/tests/mockoptim_fail.pyo
|
||||
${PYSITELIB}/easy_thumbnails/tests/models.py
|
||||
${PYSITELIB}/easy_thumbnails/tests/models.pyc
|
||||
${PYSITELIB}/easy_thumbnails/tests/models.pyo
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.1 2013/01/28 21:15:26 adam Exp $
|
||||
$NetBSD: distinfo,v 1.2 2014/04/12 10:10:27 adam Exp $
|
||||
|
||||
SHA1 (easy-thumbnails-1.2.tar.gz) = 3623dfb0e79b447c0705fc24058546db8ca60a05
|
||||
RMD160 (easy-thumbnails-1.2.tar.gz) = 35913df4a7feef8908783a1a12277256d7adcf0a
|
||||
Size (easy-thumbnails-1.2.tar.gz) = 53124 bytes
|
||||
SHA1 (easy-thumbnails-1.5.tar.gz) = be27388dfb29c076c1d05c24db111d3c448bc513
|
||||
RMD160 (easy-thumbnails-1.5.tar.gz) = cfb5d624caad42531b60ed9aa4378726fb94489e
|
||||
Size (easy-thumbnails-1.5.tar.gz) = 70360 bytes
|
||||
SHA1 (patch-easy_thumbnails_tests_mockoptim_fail.py) = 02ec8f0d103ac9f5fa1982b0e83940dcfaa9bb75
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
$NetBSD: patch-easy_thumbnails_tests_mockoptim_fail.py,v 1.1 2014/04/12 10:10:28 adam Exp $
|
||||
|
||||
Python 3.x compatibility.
|
||||
|
||||
--- easy_thumbnails/tests/mockoptim_fail.py.orig 2014-04-12 09:51:02.000000000 +0000
|
||||
+++ easy_thumbnails/tests/mockoptim_fail.py
|
||||
@@ -2,5 +2,5 @@
|
||||
import sys
|
||||
# This file does nothing except to mock a optimizer which does not work
|
||||
|
||||
-print 'Bad JPEG file'
|
||||
+print('Bad JPEG file')
|
||||
sys.exit(1)
|
Loading…
Reference in a new issue