diff options
author | antoine <antoine@FreeBSD.org> | 2018-08-25 16:32:59 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2018-08-25 16:32:59 +0800 |
commit | 4da9aef5c12a1b7dbf6af3e8ad00fbc3d2af9b9b (patch) | |
tree | cc83771538c69fec7c5d2f4f2e91d86d910513d3 | |
parent | db9617be5518c84ce9ecc6f15ea0df980d3b03a5 (diff) | |
download | freebsd-ports-gnome-4da9aef5c12a1b7dbf6af3e8ad00fbc3d2af9b9b.tar.gz freebsd-ports-gnome-4da9aef5c12a1b7dbf6af3e8ad00fbc3d2af9b9b.tar.zst freebsd-ports-gnome-4da9aef5c12a1b7dbf6af3e8ad00fbc3d2af9b9b.zip |
- Build python2 and python3 bindings
- Remove DOCS option, the 2 text files do not carry useful information
-rw-r--r-- | devel/libmsiecf/Makefile | 23 | ||||
-rw-r--r-- | devel/libmsiecf/pkg-plist | 6 | ||||
-rw-r--r-- | devel/libscca/Makefile | 22 | ||||
-rw-r--r-- | devel/libscca/pkg-plist | 6 |
4 files changed, 35 insertions, 22 deletions
diff --git a/devel/libmsiecf/Makefile b/devel/libmsiecf/Makefile index 2c08b1383d4b..3c5722036e2b 100644 --- a/devel/libmsiecf/Makefile +++ b/devel/libmsiecf/Makefile @@ -3,6 +3,7 @@ PORTNAME= libmsiecf DISTVERSION= alpha-20170116 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://github.com/libyal/libmsiecf/releases/download/${PORTVERSION:E}/ \ LOCAL/antoine @@ -13,23 +14,27 @@ COMMENT= Library and tools to access the MSIE index.dat files LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING +BUILD_DEPENDS= python${PYTHON2_DEFAULT}:lang/python${PYTHON2_DEFAULT:S/.//} \ + python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//} +RUN_DEPENDS= python${PYTHON2_DEFAULT}:lang/python${PYTHON2_DEFAULT:S/.//} \ + python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//} + GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-python -USES= libtool pathfix python +CONFIGURE_ARGS= --enable-python2 --enable-python3 +CONFIGURE_ENV= PYTHON2_CONFIG=${LOCALBASE}/bin/python${PYTHON2_DEFAULT}-config \ + PYTHON3=${LOCALBASE}/bin/python${PYTHON3_DEFAULT} \ + PYTHON3_CONFIG=${LOCALBASE}/bin/python${PYTHON3_DEFAULT}-config +USES= libtool pathfix USE_LDCONFIG= yes INSTALL_TARGET= install-strip WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:E} +PLIST_SUB= PYTHON2_SITELIBDIR=lib/python${PYTHON2_DEFAULT}/site-packages \ + PYTHON3_SITELIBDIR=lib/python${PYTHON3_DEFAULT}/site-packages -OPTIONS_DEFINE= DOCS NLS +OPTIONS_DEFINE= NLS NLS_USES= gettext NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} NLS_CONFIGURE_OFF= --disable-nls -PORTDOCS= AUTHORS ChangeLog - -do-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} - .include <bsd.port.mk> diff --git a/devel/libmsiecf/pkg-plist b/devel/libmsiecf/pkg-plist index 705a95f3886c..3d0eab272dcc 100644 --- a/devel/libmsiecf/pkg-plist +++ b/devel/libmsiecf/pkg-plist @@ -11,8 +11,10 @@ lib/libmsiecf.a lib/libmsiecf.so lib/libmsiecf.so.1 lib/libmsiecf.so.1.0.0 -%%PYTHON_SITELIBDIR%%/pymsiecf.a -%%PYTHON_SITELIBDIR%%/pymsiecf.so +%%PYTHON2_SITELIBDIR%%/pymsiecf.a +%%PYTHON2_SITELIBDIR%%/pymsiecf.so +%%PYTHON3_SITELIBDIR%%/pymsiecf.a +%%PYTHON3_SITELIBDIR%%/pymsiecf.so libdata/pkgconfig/libmsiecf.pc man/man1/msiecfexport.1.gz man/man1/msiecfinfo.1.gz diff --git a/devel/libscca/Makefile b/devel/libscca/Makefile index 85a230ae8660..1c739555de66 100644 --- a/devel/libscca/Makefile +++ b/devel/libscca/Makefile @@ -3,6 +3,7 @@ PORTNAME= libscca DISTVERSION= alpha-20170205 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://github.com/libyal/libscca/releases/download/${PORTVERSION:E}/ \ LOCAL/antoine @@ -13,25 +14,28 @@ COMMENT= Library and tools to access the Windows Prefetch File (SCCA) format LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING +BUILD_DEPENDS= python${PYTHON2_DEFAULT}:lang/python${PYTHON2_DEFAULT:S/.//} \ + python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//} +RUN_DEPENDS= python${PYTHON2_DEFAULT}:lang/python${PYTHON2_DEFAULT:S/.//} \ + python${PYTHON3_DEFAULT}:lang/python${PYTHON3_DEFAULT:S/.//} LIB_DEPENDS= libfwnt.so:devel/libfwnt GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-python --with-libfwnt=${LOCALBASE} -USES= libtool pathfix python +CONFIGURE_ARGS= --enable-python2 --enable-python3 --with-libfwnt=${LOCALBASE} +CONFIGURE_ENV= PYTHON2_CONFIG=${LOCALBASE}/bin/python${PYTHON2_DEFAULT}-config \ + PYTHON3=${LOCALBASE}/bin/python${PYTHON3_DEFAULT} \ + PYTHON3_CONFIG=${LOCALBASE}/bin/python${PYTHON3_DEFAULT}-config +USES= libtool pathfix USE_LDCONFIG= yes INSTALL_TARGET= install-strip WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:E} +PLIST_SUB= PYTHON2_SITELIBDIR=lib/python${PYTHON2_DEFAULT}/site-packages \ + PYTHON3_SITELIBDIR=lib/python${PYTHON3_DEFAULT}/site-packages -OPTIONS_DEFINE= DOCS NLS +OPTIONS_DEFINE= NLS NLS_USES= gettext NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} NLS_CONFIGURE_OFF= --disable-nls -PORTDOCS= AUTHORS ChangeLog - -do-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} - .include <bsd.port.mk> diff --git a/devel/libscca/pkg-plist b/devel/libscca/pkg-plist index 6b63e05a0d45..c5ca3b2542c9 100644 --- a/devel/libscca/pkg-plist +++ b/devel/libscca/pkg-plist @@ -10,8 +10,10 @@ lib/libscca.a lib/libscca.so lib/libscca.so.1 lib/libscca.so.1.0.0 -%%PYTHON_SITELIBDIR%%/pyscca.a -%%PYTHON_SITELIBDIR%%/pyscca.so +%%PYTHON2_SITELIBDIR%%/pyscca.a +%%PYTHON2_SITELIBDIR%%/pyscca.so +%%PYTHON3_SITELIBDIR%%/pyscca.a +%%PYTHON3_SITELIBDIR%%/pyscca.so libdata/pkgconfig/libscca.pc man/man1/sccainfo.1.gz man/man3/libscca.3.gz |