mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
52 lines
1.3 KiB
Makefile
52 lines
1.3 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= BSD
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
OPTIONS_DEFINE= EXAMPLES MANPAGES
|
|
OPTIONS_DEFAULT= MANPAGES
|
|
|
|
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
|
|
.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}/{} ";"
|
|
.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>
|