aboutsummaryrefslogtreecommitdiffstats
path: root/databases/gadfly/Makefile
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-09-14 20:05:42 +0800
committertg <tg@FreeBSD.org>2000-09-14 20:05:42 +0800
commit054b3fafff32eea5b5198609ec44b5048cf885f7 (patch)
tree7cd6017449758be1bcc2ef5f19071fa507f81242 /databases/gadfly/Makefile
parenteab07fdcfb0320ca8c252b097f9020f7dfaa8214 (diff)
downloadfreebsd-ports-gnome-054b3fafff32eea5b5198609ec44b5048cf885f7.tar.gz
freebsd-ports-gnome-054b3fafff32eea5b5198609ec44b5048cf885f7.tar.zst
freebsd-ports-gnome-054b3fafff32eea5b5198609ec44b5048cf885f7.zip
Use bsd.python.mk.
Diffstat (limited to 'databases/gadfly/Makefile')
-rw-r--r--databases/gadfly/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/databases/gadfly/Makefile b/databases/gadfly/Makefile
index 2733d2bf6b59..58ab5b6f7972 100644
--- a/databases/gadfly/Makefile
+++ b/databases/gadfly/Makefile
@@ -13,13 +13,10 @@ DISTNAME= kwP
MAINTAINER= ports@FreeBSD.org
-BUILD_DEPENDS= python1.5:${PORTSDIR}/lang/python15
-RUN_DEPENDS= python1.5:${PORTSDIR}/lang/python15
-
+USE_PYTHON= yes
NO_WRKSUBDIR= yes
-PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
-GADFLYDIR= ${PYTHONSCRIPTDIR}/site-packages/gadfly
+GADFLYDIR= ${PYTHON_SITELIBDIR}/gadfly
GADFLYDOCDIR= ${PREFIX}/share/doc/gadfly
do-build:
@@ -28,10 +25,10 @@ do-install:
${MKDIR} ${GADFLYDIR}
${INSTALL_DATA} ${WRKSRC}/*.py ${GADFLYDIR}
${INSTALL_DATA} ${WRKSRC}/sql.mar ${GADFLYDIR}
- ${ECHO} 'gadfly' > ${PYTHONSCRIPTDIR}/site-packages/gadfly.pth
- (cd ${GADFLYDIR}; python gfinstall.py)
- @${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${GADFLYDIR}
- @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${GADFLYDIR}
+ ${ECHO} 'gadfly' > ${PYTHON_SITELIBDIR}/gadfly.pth
+ (cd ${GADFLYDIR}; ${PYTHON_CMD} gfinstall.py)
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${GADFLYDIR}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${GADFLYDIR}
${MKDIR} ${GADFLYDOCDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${GADFLYDOCDIR}
.if !defined(${NOPORTDOCS})