mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
use USE_PYDISTUTILS
This commit is contained in:
parent
be17dde214
commit
18d779daf5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58315
@ -17,13 +17,6 @@ MAINTAINER= ports@FreeBSD.org
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk.py:${PORTSDIR}/x11-toolkits/py-gtk
|
||||
|
||||
USE_PYTHON= yes
|
||||
|
||||
SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
|
||||
|
||||
do-build:
|
||||
@${SETUP_CMD} build
|
||||
|
||||
do-install:
|
||||
@${SETUP_CMD} install
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -14,12 +14,11 @@ DISTNAME= py${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= perky@fallin.lv
|
||||
|
||||
BUILD_DEPENDS= ${PYDISTUTILS}
|
||||
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages"
|
||||
PYDIST_SETUP= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
|
||||
|
||||
post-patch:
|
||||
.for file in ${REPATCHFILES}
|
||||
@ -27,12 +26,8 @@ post-patch:
|
||||
${WRKSRC}/setup.py
|
||||
.endfor
|
||||
|
||||
do-build:
|
||||
${PYDIST_SETUP} build
|
||||
|
||||
do-install:
|
||||
${PYDIST_SETUP} install -c -O1 --prefix=${PREFIX}
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/share/examples/py-curl
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user