mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- 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
This commit is contained in:
parent
7808a1b57f
commit
1e3056c9f6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357561
@ -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
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
USE_PYTHON= 2
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MMANPAGES}
|
||||
MAN1= ${PORTNAME}.1
|
||||
.endif
|
||||
|
||||
.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 <bsd.port.pre.mk>
|
||||
|
@ -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%%
|
||||
|
Loading…
Reference in New Issue
Block a user