summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordwhite <dwhite@FreeBSD.org>2001-04-05 17:29:18 +0000
committerdwhite <dwhite@FreeBSD.org>2001-04-05 17:29:18 +0000
commitf1db3829a15ca621c24f01d6eaccf2bed2924d7a (patch)
treea03ad2fc68b0bbb0cf0ad42541f4559575e98a68 /devel
parent6b6758d97ce0fa83ea9741afe7661a5c6f9d2501 (diff)
downloadFreeBSD-ports-f1db3829a15ca621c24f01d6eaccf2bed2924d7a.zip
FreeBSD-ports-f1db3829a15ca621c24f01d6eaccf2bed2924d7a.tar.gz
Upgrade, 1.2 -> 1.3: New Python 2.0 convention for Makefile.pre.in,
bsd.python.mk-ify port. PR: 26352
Diffstat (limited to 'devel')
-rw-r--r--devel/py-kqueue/Makefile32
-rw-r--r--devel/py-kqueue/distinfo2
-rw-r--r--devel/py-kqueue/pkg-plist6
3 files changed, 20 insertions, 20 deletions
diff --git a/devel/py-kqueue/Makefile b/devel/py-kqueue/Makefile
index 05d1b30..fb6fed0 100644
--- a/devel/py-kqueue/Makefile
+++ b/devel/py-kqueue/Makefile
@@ -6,7 +6,8 @@
#
PORTNAME= kqueue
-PORTVERSION= 1.2
+PORTVERSION= 1.3
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dwhite
@@ -15,30 +16,29 @@ DISTNAME= PyKQueue-${PORTVERSION}
MAINTAINER= dwhite@FreeBSD.org
-BUILD_DEPENDS= python1.5:${PORTSDIR}/lang/python15
-RUN_DEPENDS= python1.5:${PORTSDIR}/lang/python15
+USE_PYTHON= yes
+PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
.include <bsd.port.pre.mk>
-.if ( ${OSVERSION} < 400018 || ${OSVERSION} < 500010 )
-#FORBIDDEN="requires new kqueue API"
+.if ${OSVERSION} < 400018
+FORBIDDEN="requires new kqueue API"
+.endif
+.if ${OSVERSION} >= 500000 && ${OSVERSION} < 500010
+FORBIDDEN="requires new kqueue API"
.endif
-
-# NO_WRKSUBDIR= yes
-# MAKEFILE= makefile
do-configure:
@(cd ${WRKSRC} && \
make -f Makefile.pre.in boot)
+post-build:
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+
do-install:
- ${MKDIR} ${PREFIX}/lib/python1.5/site-packages
- ${INSTALL_DATA} ${WRKSRC}/kqsyscallmodule.so \
- ${PREFIX}/lib/python1.5/site-packages/
- ${INSTALL_DATA} ${WRKSRC}/KQueue.py \
- ${PREFIX}/lib/python1.5/site-packages/
-# .if !defined(NOPORTDOCS)
-# ${INSTALL_DATA} ${WRKSRC}/kjbuckets.html ${PREFIX}/share/doc/
-# .endif
+ ${MKDIR} ${PYTHON_SITELIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/kqsyscallmodule.so ${PYTHON_SITELIBDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/KQueue.py ${PYTHON_SITELIBDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/KQueue.pyc ${PYTHON_SITELIBDIR}/
.include <bsd.port.post.mk>
diff --git a/devel/py-kqueue/distinfo b/devel/py-kqueue/distinfo
index 445a571..af63115 100644
--- a/devel/py-kqueue/distinfo
+++ b/devel/py-kqueue/distinfo
@@ -1 +1 @@
-MD5 (PyKQueue-1.2.tar.gz) = 79efea20ee917645480225d3780755d0
+MD5 (PyKQueue-1.3.tar.gz) = f50c3ae4b254ae933149938f8ed62bb5
diff --git a/devel/py-kqueue/pkg-plist b/devel/py-kqueue/pkg-plist
index cbfb945..0846183 100644
--- a/devel/py-kqueue/pkg-plist
+++ b/devel/py-kqueue/pkg-plist
@@ -1,3 +1,3 @@
-@exec mkdir -p %D/lib/python1.5/site-packages
-lib/python1.5/site-packages/kqsyscallmodule.so
-lib/python1.5/site-packages/KQueue.py
+%%PYTHON_SITELIBDIR%%/kqsyscallmodule.so
+%%PYTHON_SITELIBDIR%%/KQueue.py
+%%PYTHON_SITELIBDIR%%/KQueue.pyc
OpenPOWER on IntegriCloud