diff options
author | vsevolod <vsevolod@FreeBSD.org> | 2005-09-06 00:56:39 +0800 |
---|---|---|
committer | vsevolod <vsevolod@FreeBSD.org> | 2005-09-06 00:56:39 +0800 |
commit | 44361f5e1acbf03bae20f5a9933ced4bfcc55b59 (patch) | |
tree | 66f1bd916f6593e649f81cb4abd67ee7710d612d /devel | |
parent | b07e93b65138331388002121ce33cd8f71055fb2 (diff) | |
download | freebsd-ports-gnome-44361f5e1acbf03bae20f5a9933ced4bfcc55b59.tar.gz freebsd-ports-gnome-44361f5e1acbf03bae20f5a9933ced4bfcc55b59.tar.zst freebsd-ports-gnome-44361f5e1acbf03bae20f5a9933ced4bfcc55b59.zip |
Update to 4.3.
Introduce port options.
PR: 85505
Submitted by: maintainer
Approved by: perky (mentor)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-sip/Makefile | 53 | ||||
-rw-r--r-- | devel/py-sip/distinfo | 4 | ||||
-rw-r--r-- | devel/py-sip/pkg-plist | 14 |
3 files changed, 45 insertions, 26 deletions
diff --git a/devel/py-sip/Makefile b/devel/py-sip/Makefile index b4124fa68643..939c18fc8f19 100644 --- a/devel/py-sip/Makefile +++ b/devel/py-sip/Makefile @@ -5,13 +5,13 @@ # $FreeBSD$ PORTNAME= sip -PORTVERSION= 4.2.1 -PORTREVISION= 3 +PORTVERSION= 4.3 +PORTREVISION= CATEGORIES= devel python MASTER_SITES= http://www.river-bank.demon.co.uk/download/sip/ \ http://freebsd.ricin.com/ports/distfiles/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -DISTNAME= sip-snapshot-20050709 +DISTNAME= sip-${PORTVERSION} MAINTAINER= danny@ricin.com COMMENT= Python to C and C++ bindings generator @@ -19,28 +19,47 @@ COMMENT= Python to C and C++ bindings generator BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake USE_PYTHON= yes -USE_QT_VER= 3 +OPTIONS= DEBUG "Build with debugging symbols" off \ + DOCS "Install documentation" on \ + QT "Enable Qt support" on + +DATADIR= ${PREFIX}/share/py-${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options + +SPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ +ARGS= -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \ + -e ${PYTHON_INCLUDEDIR} -v ${DATADIR} .include <bsd.port.pre.mk> +.if defined(NOPORTDOCS) || defined(WITHOUT_DOCS) +PLIST_SUB+= DOCS="@comment " +.else +PLIST_SUB+= DOCS="" +.endif +.if defined(WITH_DEBUG) +ARGS+= -u +.endif +.if defined(WITHOUT_QT) +ARGS+= -x +.else +BUILD_DEPENDS+= moc:${PORTSDIR}/x11-toolkits/qt33 +RUN_DEPENDS+= moc:${PORTSDIR}/x11-toolkits/qt33 +.endif + do-configure: - @( cd ${WRKSRC} && ${SETENV} QTDIR=${X11BASE} \ - QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \ - ${PYTHON_CMD} configure.py \ - -b ${PREFIX}/bin -d ${PYTHONPREFIX_SITELIBDIR} \ - -e ${PYTHON_INCLUDEDIR} -v ${DATADIR} ) + ( cd ${WRKSRC} && ${SETENV} QTDIR=${X11BASE} QMAKESPEC=${SPEC} \ + ${PYTHON_CMD} configure.py ${ARGS} ) post-install: -.if !defined(NOPORTDOCS) - @( ${MKDIR} ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} \ - doc/default.css doc/sipref.txt NEWS LICENSE ${DOCSDIR} && \ - ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} ) +.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) + ( ${MKDIR} -m 0755 ${DOCSDIR} && cd ${WRKSRC} && ${INSTALL_DATA} \ + doc/default.css doc/sipref.txt NEWS LICENSE ${DOCSDIR} ) .endif - @# pyqt/pykde use this - @${MKDIR} ${DATADIR} - @${PYTHON_CMD} -c "import sipconfig" - @${PYTHON_CMD} -O -c "import sipconfig" + ( ${MKDIR} -m 0755 ${DATADIR} && \ + ${PYTHON_CMD} -c "import sipconfig" && \ + ${PYTHON_CMD} -O -c "import sipconfig" ) .include <bsd.port.post.mk> diff --git a/devel/py-sip/distinfo b/devel/py-sip/distinfo index c2d2ff2f9565..c0ae2474123f 100644 --- a/devel/py-sip/distinfo +++ b/devel/py-sip/distinfo @@ -1,2 +1,2 @@ -MD5 (sip-snapshot-20050709.tar.gz) = b62003eca919132beda0678c8d899c2d -SIZE (sip-snapshot-20050709.tar.gz) = 283545 +MD5 (sip-4.3.tar.gz) = 2ebaf5d068e19ce31cab75f4685c5092 +SIZE (sip-4.3.tar.gz) = 332435 diff --git a/devel/py-sip/pkg-plist b/devel/py-sip/pkg-plist index f26979409c54..af00255ae315 100644 --- a/devel/py-sip/pkg-plist +++ b/devel/py-sip/pkg-plist @@ -1,13 +1,13 @@ bin/sip -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/LICENSE -%%PORTDOCS%%%%DOCSDIR%%/default.css -%%PORTDOCS%%%%DOCSDIR%%/sipref.txt +%%DOCS%%%%DOCSDIR%%/NEWS +%%DOCS%%%%DOCSDIR%%/LICENSE +%%DOCS%%%%DOCSDIR%%/default.css +%%DOCS%%%%DOCSDIR%%/sipref.txt %%PYTHON_INCLUDEDIR%%/sip.h %%PYTHON_SITELIBDIR%%/sip.so %%PYTHON_SITELIBDIR%%/sipconfig.py %%PYTHON_SITELIBDIR%%/sipconfig.pyc %%PYTHON_SITELIBDIR%%/sipconfig.pyo -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@exec mkdir -p %D/share/sip -@dirrm share/sip +%%DOCS%%@dirrm %%DOCSDIR%% +@exec mkdir -p %D/%%DATADIR%% +@dirrm %%DATADIR%% |