Upgrade, 1.2 -> 1.3: New Python 2.0 convention for Makefile.pre.in,

bsd.python.mk-ify port.

PR:		26352
This commit is contained in:
Doug White 2001-04-05 17:29:18 +00:00
parent 48e913db94
commit 670530c706
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40903
3 changed files with 20 additions and 20 deletions

View File

@ -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>

View File

@ -1 +1 @@
MD5 (PyKQueue-1.2.tar.gz) = 79efea20ee917645480225d3780755d0
MD5 (PyKQueue-1.3.tar.gz) = f50c3ae4b254ae933149938f8ed62bb5

View File

@ -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