From 2eca20a4cbface08432c17b79d284bf11e332e38 Mon Sep 17 00:00:00 2001 From: nivit Date: Thu, 12 Jun 2014 04:52:30 +0000 Subject: - Fix LICENSE type - Remove MANPAGES option - Use auto plist for Python files - Don't build/install Python files as egg - Add support for stage dir --- misc/py-yolk/Makefile | 29 +++++++++++------------------ misc/py-yolk/pkg-plist | 3 +-- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/misc/py-yolk/Makefile b/misc/py-yolk/Makefile index c52bde1f151e..bc95f4f91db5 100644 --- a/misc/py-yolk/Makefile +++ b/misc/py-yolk/Makefile @@ -12,34 +12,27 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Command-line tool for querying PyPI and Python packages installed -LICENSE= BSD +LICENSE= BSD3CLAUSE -OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options -OPTIONS_DEFINE= EXAMPLES MANPAGES -OPTIONS_DEFAULT= MANPAGES +PYDISTUTILS_AUTOPLIST= yes -NO_STAGE= yes -.include +OPTIONS_DEFINE= EXAMPLES -.if ${PORT_OPTIONS:MMANPAGES} -MAN1= ${PORTNAME}.1 -.endif +USE_PYTHON= 2 +USE_PYDISTUTILS= yes + +.include .if ${PORT_OPTIONS:MEXAMPLES} EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} .endif -USE_PYTHON= 2 -USE_PYDISTUTILS= easy_install - post-install: -.if ${PORT_OPTIONS:MMANPAGES} - ${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1 -.endif + ${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1 .if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - @cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} ";" - cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} ";" + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} ";" + cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} ";" .endif .include diff --git a/misc/py-yolk/pkg-plist b/misc/py-yolk/pkg-plist index a57680b577bf..e6601a5e012e 100644 --- a/misc/py-yolk/pkg-plist +++ b/misc/py-yolk/pkg-plist @@ -1,4 +1,4 @@ -bin/yolk +man/man1/yolk.1.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/plugins/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/plugins/yolk_pkg_manager/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/plugins/yolk_pkg_manager/setup.py @@ -10,4 +10,3 @@ bin/yolk %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/plugins/yolk_portage %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/plugins %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% -- cgit