=================================================================== RCS file: /cvs/ports/graphics/phatch/Attic/Makefile,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ports/graphics/phatch/Attic/Makefile 2011/10/30 11:08:06 1.3 +++ ports/graphics/phatch/Attic/Makefile 2014/11/16 21:01:24 1.4 @@ -1,43 +1,46 @@ -# $OpenBSD: Makefile,v 1.3 2011/10/30 11:08:06 yason Exp $ +# $OpenBSD: Makefile,v 1.4 2014/11/16 21:01:24 kirby Exp $ COMMENT = photo batch processor DISTNAME = phatch-0.2.7.1 -#SHARED_LIBS = ??? - CATEGORIES = graphics HOMEPAGE = http://photobatch.stani.be/ -#MAINTAINER = ??? +MAINTAINER = Kirill Bychkov # GPLv3 PERMIT_PACKAGE_CDROM = Yes -PERMIT_PACKAGE_FTP = Yes -PERMIT_DISTFILES_CDROM =Yes -PERMIT_DISTFILES_FTP = Yes -#WANTLIB = ??? - MASTER_SITES = ${HOMEPAGE}/download/package/ MODULES = lang/python -#BUILD_DEPENDS = ??? -RUN_DEPENDS = devel/desktop-file-utils -LIB_DEPENDS = graphics/py-Imaging \ +RUN_DEPENDS = devel/desktop-file-utils \ + graphics/py-Pillow \ + misc/shared-mime-info \ + x11/gtk+2,-guic \ x11/py-wxPython -SEPARATE_BUILD = simple - MODPY_ADJ_FILES = setup.py bin/phatch docs/update.py phatch/lib/*.py \ phatch/lib/pyWx/dialogsInspector.py phatch/other/*.py \ tests/*.py tests/test_suite/*.py \ tools/change_tags.py phatch/phatch.py -#NO_BUILD = Yes -NO_REGRESS = Yes +NO_BUILD = Yes +NO_TEST = Yes WRKDIST = ${WRKDIR}/phatch-0.2.7 + +# Switch from py-Image to py-Pillow +post-extract: + find ${WRKSRC} -name *.py -exec \ + perl -pi -e 's|import Image|from PIL import Image|g' {} \; + perl -pi -e 's|import PngImagePlugin|from PIL import PngImagePlugin|g' \ + ${WRKSRC}/phatch/lib/thumbnail.py + perl -pi -e 's|from PIL from PIL|from PIL|g' \ + ${WRKSRC}/phatch/actions/convert_mode.py + perl -pi -e 's|from PIL ||g' \ + ${WRKSRC}/phatch/other/pyWx/TextCtrlAutoComplete.py .include