Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2017 12:41:41 +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: r455360 - head/devel/libsmdev
Message-ID:  <201712021241.vB2CffWq047844@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sat Dec  2 12:41:41 2017
New Revision: 455360
URL: https://svnweb.freebsd.org/changeset/ports/455360

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

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

Modified: head/devel/libsmdev/Makefile
==============================================================================
--- head/devel/libsmdev/Makefile	Sat Dec  2 12:37:22 2017	(r455359)
+++ head/devel/libsmdev/Makefile	Sat Dec  2 12:41:41 2017	(r455360)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	libsmdev
-DISTVERSION=	alpha-20170225
+DISTVERSION=	alpha-20171112
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/libyal/libsmdev/releases/download/${PORTVERSION:E}/ \
 		LOCAL/antoine
@@ -13,23 +13,27 @@ COMMENT=	Library to access to storage media devices
 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>

Modified: head/devel/libsmdev/distinfo
==============================================================================
--- head/devel/libsmdev/distinfo	Sat Dec  2 12:37:22 2017	(r455359)
+++ head/devel/libsmdev/distinfo	Sat Dec  2 12:41:41 2017	(r455360)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1488060933
-SHA256 (libsmdev-alpha-20170225.tar.gz) = aa5d1cac3c23b46adc9c69e8bcc9b3782cfbf6cb0c2ab7fbd2c5a39b299fcc04
-SIZE (libsmdev-alpha-20170225.tar.gz) = 1185544
+TIMESTAMP = 1510584552
+SHA256 (libsmdev-alpha-20171112.tar.gz) = bc0659d3a3fc43193614690e027e1d59dceee45aaed49f031b5ecaee3f8c525c
+SIZE (libsmdev-alpha-20171112.tar.gz) = 1187736

Modified: head/devel/libsmdev/pkg-plist
==============================================================================
--- head/devel/libsmdev/pkg-plist	Sat Dec  2 12:37:22 2017	(r455359)
+++ head/devel/libsmdev/pkg-plist	Sat Dec  2 12:41:41 2017	(r455360)
@@ -10,8 +10,10 @@ lib/libsmdev.a
 lib/libsmdev.so
 lib/libsmdev.so.1
 lib/libsmdev.so.1.0.0
-%%PYTHON_SITELIBDIR%%/pysmdev.a
-%%PYTHON_SITELIBDIR%%/pysmdev.so
+%%PYTHON2_SITELIBDIR%%/pysmdev.a
+%%PYTHON2_SITELIBDIR%%/pysmdev.so
+%%PYTHON3_SITELIBDIR%%/pysmdev.a
+%%PYTHON3_SITELIBDIR%%/pysmdev.so
 libdata/pkgconfig/libsmdev.pc
 man/man1/smdevinfo.1.gz
 man/man3/libsmdev.3.gz



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