add python3 flavor

ok shadchin@
This commit is contained in:
jasper 2016-08-12 08:37:37 +00:00
parent 79614ead43
commit 4ea43b0c5c
2 changed files with 17 additions and 9 deletions

View File

@ -1,12 +1,13 @@
# $OpenBSD: Makefile,v 1.30 2016/03/20 16:12:23 naddy Exp $
# $OpenBSD: Makefile,v 1.31 2016/08/12 08:37:37 jasper Exp $
COMMENT= automatically generate Python bindings for C and C++ libs
# XXX Be particularly careful when testing updates.
# XXX Be particularly careful when testing updates.
# API breaks often.
DISTNAME= sip-4.16.8
PKGNAME= py-${DISTNAME}
REVISION= 0
CATEGORIES= devel
HOMEPAGE= http://www.riverbankcomputing.co.uk/software/sip/intro
@ -20,6 +21,9 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/}
MODULES= lang/python
FLAVORS = python3
FLAVOR ?=
CONFIGURE_STYLE=simple
CONFIGURE_SCRIPT=${MODPY_BIN} configure.py
CONFIGURE_ARGS= -b ${PREFIX}/bin \
@ -34,9 +38,12 @@ CONFIGURE_ARGS= -b ${PREFIX}/bin \
NO_TEST= Yes
SUBST_VARS += MODPY_LIB_SUFFIX
post-install:
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sip
${INSTALL_DATA} ${WRKSRC}/doc/html/_sources/* ${PREFIX}/share/doc/py-sip
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}sip
${INSTALL_DATA} ${WRKSRC}/doc/html/_sources/* ${PREFIX}/share/doc/${MODPY_PY_PREFIX}sip
mv -f ${PREFIX}/bin/sip ${PREFIX}/bin/sip${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>

View File

@ -1,11 +1,12 @@
@comment $OpenBSD: PLIST,v 1.6 2015/06/26 13:03:36 ajacoutot Exp $
@bin bin/sip
include/python${MODPY_VERSION}/sip.h
@comment $OpenBSD: PLIST,v 1.7 2016/08/12 08:37:37 jasper Exp $
@bin bin/sip${MODPY_BIN_SUFFIX}
include/python${MODPY_VERSION}${MODPY_LIB_SUFFIX}/sip.h
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}sipconfig.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}sipdistutils.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/sip.so
lib/python${MODPY_VERSION}/site-packages/sipconfig.py
lib/python${MODPY_VERSION}/site-packages/sipconfig.pyc
lib/python${MODPY_VERSION}/site-packages/sipdistutils.py
lib/python${MODPY_VERSION}/site-packages/sipdistutils.pyc
share/doc/${MODPY_PY_PREFIX}sip/
share/doc/${MODPY_PY_PREFIX}sip/annotations.txt
share/doc/${MODPY_PY_PREFIX}sip/build_system.txt