diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-11-29 02:37:08 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-11-29 02:37:08 +0000 |
commit | 252d8a92461e65dcc1d8c217be1322e1465718cd (patch) | |
tree | a0e655f5a3f4467654aa30f5fadfbfc3f60e5fbe /graphics/nathive/Makefile | |
parent | c3df8569a579fe5581ccbc1c976ed097e28c4474 (diff) | |
download | ports-252d8a92461e65dcc1d8c217be1322e1465718cd.tar.gz ports-252d8a92461e65dcc1d8c217be1322e1465718cd.zip |
- Add LICENSE
- Add empty directories to plist
- Fix python invocations all over the place
Notes
Notes:
svn path=/head/; revision=373599
Diffstat (limited to 'graphics/nathive/Makefile')
-rw-r--r-- | graphics/nathive/Makefile | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/graphics/nathive/Makefile b/graphics/nathive/Makefile index 262d5503f035..afc6356c085a 100644 --- a/graphics/nathive/Makefile +++ b/graphics/nathive/Makefile @@ -10,9 +10,10 @@ MASTER_SITES= http://www.nathive.org/dl/ \ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Lightweight image editor -BUILD_DEPENDS= python:${PORTSDIR}/lang/python -RUN_DEPENDS= python:${PORTSDIR}/lang/python \ - ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 USES= gmake python:2 tar:tgz MAKEFILE= makefile @@ -20,15 +21,27 @@ ALL_TARGET= default WRKSRC= ${WRKDIR}/${PORTNAME} -PLIST_FILES= bin/${PORTNAME} share/applications/nathive.desktop +PLIST_FILES= bin/${PORTNAME} \ + share/applications/nathive.desktop PORTDATA= * PORTDOCS= * +PLIST_DIRS= %%DATADIR%%/cfg/presets/select \ + %%DATADIR%%/cfg/presets/picker \ + %%DATADIR%%/cfg/presets/eraser \ + %%DATADIR%%/cfg/presets/crop \ + %%DATADIR%%/cfg/presets/brush \ + %%DATADIR%%/cfg/console OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e '/BASE =/ s|=.*|= ${PREFIX}/|; \ - s|python |${PYTHON_CMD} |' ${WRKSRC}/${MAKEFILE} + s|python |${PYTHON_CMD} |' \ + ${WRKSRC}/${MAKEFILE} +.for util in shdata makeplugs.py indenter.py docgen/docfile.py cybuild.py extbuild.py + @${REINPLACE_CMD} -e 's|python |${PYTHON_CMD} |' \ + ${WRKSRC}/utils/${util} +.endfor @${REINPLACE_CMD} -e 's|/usr/share/nathive|${DATADIR}|' \ ${WRKSRC}/${PORTNAME}.desktop |