version 1.1, 2011/03/07 22:22:01 |
version 1.4, 2014/11/16 21:01:24 |
|
|
|
|
DISTNAME = phatch-0.2.7.1 |
DISTNAME = phatch-0.2.7.1 |
|
|
#SHARED_LIBS = ??? |
|
|
|
CATEGORIES = graphics |
CATEGORIES = graphics |
|
|
HOMEPAGE = http://photobatch.stani.be/ |
HOMEPAGE = http://photobatch.stani.be/ |
|
|
#MAINTAINER = ??? |
MAINTAINER = Kirill Bychkov <kirby@openbsd.org> |
|
|
# GPLv3 |
# GPLv3 |
PERMIT_PACKAGE_CDROM = Yes |
PERMIT_PACKAGE_CDROM = Yes |
PERMIT_PACKAGE_FTP = Yes |
|
PERMIT_DISTFILES_CDROM =Yes |
|
PERMIT_DISTFILES_FTP = Yes |
|
|
|
#WANTLIB = ??? |
|
|
|
MASTER_SITES = ${HOMEPAGE}/download/package/ |
MASTER_SITES = ${HOMEPAGE}/download/package/ |
|
|
MODULES = lang/python |
MODULES = lang/python |
#BUILD_DEPENDS = ??? |
RUN_DEPENDS = devel/desktop-file-utils \ |
#RUN_DEPENDS = ??? |
graphics/py-Pillow \ |
LIB_DEPENDS = graphics/py-Imaging \ |
misc/shared-mime-info \ |
|
x11/gtk+2,-guic \ |
x11/py-wxPython |
x11/py-wxPython |
#REGRESS_DEPENDS = ??? |
|
|
|
|
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 |
|
|
SEPARATE_BUILD = concurrent (build simultaneously on all arches) |
NO_BUILD = Yes |
#SEPARATE_BUILD = simple (configure/build still recreates files in source) |
NO_TEST = Yes |
|
|
MODPY_ADJ_FILES = setup.py bin/phatch docs/update.py phatch/lib/metadataTest.py \ |
|
phatch/lib/system.py phatch/lib/pyWx/dialogsInspector.py \ |
|
phatch/other/EXIF.py phatch/other/pep8.py phatch/other/surd.py \ |
|
tests/acceptance_test.py tests/doc_test.py tests/license_test.py \ |
|
tests/pep8_test.py tests/test_suite/bzr_precommit_test.py \ |
|
tests/test_suite/config.py tools/change_tags.py phatch/phatch.py |
|
|
|
#REGRESS_IS_INTERACTIVE = Yes |
|
|
|
#NO_BUILD = Yes |
|
#NO_REGRESS = Yes |
|
|
|
WRKDIST = ${WRKDIR}/phatch-0.2.7 |
WRKDIST = ${WRKDIR}/phatch-0.2.7 |
|
|
#REGRESS_TARGET = ??? |
# 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 <bsd.port.mk> |
.include <bsd.port.mk> |