mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
1e3056c9f6
- Remove MANPAGES option - Use auto plist for Python files - Don't build/install Python files as egg - Add support for stage dir
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Nicola Vitale <nivit@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yolk
|
|
PORTVERSION= 0.4.3
|
|
PORTREVISION= 0
|
|
CATEGORIES= misc python
|
|
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
|
|
MASTER_SITE_SUBDIR= source/y/${PORTNAME}
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Command-line tool for querying PyPI and Python packages installed
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
USE_PYTHON= 2
|
|
USE_PYDISTUTILS= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${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>
|
|
|
|
.if ${PYTHON_REL} == 271 || ${PYTHON_REL} == 320
|
|
IGNORE= does not work with ${PYTHON_VERSION} (see http://goo.gl/SZpDN)
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|