Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2017 09:07:46 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453527 - head/devel/liblnk
Message-ID:  <201711050907.vA597kFL068506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Nov  5 09:07:46 2017
New Revision: 453527
URL: https://svnweb.freebsd.org/changeset/ports/453527

Log:
  - Update to 20171101
  - Build python2 and python3 bindings
  - Remove DOCS option, the 2 text files do not carry useful information

Modified:
  head/devel/liblnk/Makefile
  head/devel/liblnk/distinfo
  head/devel/liblnk/pkg-plist

Modified: head/devel/liblnk/Makefile
==============================================================================
--- head/devel/liblnk/Makefile	Sun Nov  5 09:06:54 2017	(r453526)
+++ head/devel/liblnk/Makefile	Sun Nov  5 09:07:46 2017	(r453527)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	liblnk
-PORTVERSION=	20170111
+PORTVERSION=	20171101
 DISTVERSIONPREFIX=	alpha-
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/libyal/liblnk/releases/download/${PORTVERSION}/ \
@@ -14,25 +14,29 @@ COMMENT=	Library and tools to access the Windows short
 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=	libfwsi.so:devel/libfwsi
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-python --with-libfwsi=${LOCALBASE}
-USES=		libtool pathfix python
+CONFIGURE_ARGS=	--enable-python2 --enable-python3 \
+		--with-libfwsi=${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}
+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>

Modified: head/devel/liblnk/distinfo
==============================================================================
--- head/devel/liblnk/distinfo	Sun Nov  5 09:06:54 2017	(r453526)
+++ head/devel/liblnk/distinfo	Sun Nov  5 09:07:46 2017	(r453527)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1484163572
-SHA256 (liblnk-alpha-20170111.tar.gz) = 404f3b3db9f7c83e540bede1c89b2f0ca1c6ea4a31565d31d166ca6535ebfe32
-SIZE (liblnk-alpha-20170111.tar.gz) = 1474193
+TIMESTAMP = 1509604698
+SHA256 (liblnk-alpha-20171101.tar.gz) = 798dabb6f8e29d70adaa840416e3fceb668a6910f8614c05975c355d5bbd2ed0
+SIZE (liblnk-alpha-20171101.tar.gz) = 1479690

Modified: head/devel/liblnk/pkg-plist
==============================================================================
--- head/devel/liblnk/pkg-plist	Sun Nov  5 09:06:54 2017	(r453526)
+++ head/devel/liblnk/pkg-plist	Sun Nov  5 09:07:46 2017	(r453527)
@@ -10,8 +10,10 @@ lib/liblnk.a
 lib/liblnk.so
 lib/liblnk.so.1
 lib/liblnk.so.1.0.0
-%%PYTHON_SITELIBDIR%%/pylnk.a
-%%PYTHON_SITELIBDIR%%/pylnk.so
+%%PYTHON2_SITELIBDIR%%/pylnk.a
+%%PYTHON2_SITELIBDIR%%/pylnk.so
+%%PYTHON3_SITELIBDIR%%/pylnk.a
+%%PYTHON3_SITELIBDIR%%/pylnk.so
 libdata/pkgconfig/liblnk.pc
 man/man1/lnkinfo.1.gz
 man/man3/liblnk.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711050907.vA597kFL068506>