svn commit: r342476 - in head/net-p2p: libtorrent-rasterbar libtorrent-rasterbar-python
Rusmir Dusko
nemysis at FreeBSD.org
Mon Feb 3 22:43:38 UTC 2014
Author: nemysis
Date: Mon Feb 3 22:43:37 2014
New Revision: 342476
URL: http://svnweb.freebsd.org/changeset/ports/342476
QAT: https://qat.redports.org/buildarchive/r342476/
Log:
net-p2p/libtorrent-rasterbar
- Change master sites, use SF instead of GOOGLE_CODE
- Change license BSD to BSD3CLAUSE
- Disable all warnings with -w
- Set PORTSCOUT, with 0.16.14 segmentation fault with
qBittorrent Versions 3.1.5, 3.1.6, 3.1.8
- Add SHLIB_VER and PLIST_SUB
- Add STRIP Option, and add to default Options
- Strip libraries for Master and Slave Port
net-p2p/libtorrent-rasterbar-python
- Add STRIP to OPTIONS_EXCLUDE
Modified:
head/net-p2p/libtorrent-rasterbar-python/Makefile
head/net-p2p/libtorrent-rasterbar/Makefile
head/net-p2p/libtorrent-rasterbar/pkg-plist
Modified: head/net-p2p/libtorrent-rasterbar-python/Makefile
==============================================================================
--- head/net-p2p/libtorrent-rasterbar-python/Makefile Mon Feb 3 22:39:05 2014 (r342475)
+++ head/net-p2p/libtorrent-rasterbar-python/Makefile Mon Feb 3 22:43:37 2014 (r342476)
@@ -22,7 +22,7 @@ PYDISTUTILS_PKGNAME= python_libtorrent
PLIST= ${NONEXISTENT}
PLIST_FILES= %%PYTHON_SITELIBDIR%%/libtorrent.so
-OPTIONS_EXCLUDE= DOCS EXAMPLES
+OPTIONS_EXCLUDE= DOCS EXAMPLES STRIP
# insure python paths are correctly identified
CONFIGURE_ENV= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
Modified: head/net-p2p/libtorrent-rasterbar/Makefile
==============================================================================
--- head/net-p2p/libtorrent-rasterbar/Makefile Mon Feb 3 22:39:05 2014 (r342475)
+++ head/net-p2p/libtorrent-rasterbar/Makefile Mon Feb 3 22:43:37 2014 (r342476)
@@ -5,13 +5,12 @@ PORTNAME= libtorrent-rasterbar
PORTVERSION= 0.16.13
PORTREVISION= 2
CATEGORIES?= net-p2p ipv6
-MASTER_SITES= GOOGLE_CODE
-PROJECTHOST= libtorrent
+MASTER_SITES= SF/${PORTNAME:S/-rasterbar//}/${PORTNAME:S/-rasterbar//}/
MAINTAINER= nemysis at FreeBSD.org
COMMENT?= C++ library implementing a BitTorrent client
-LICENSE= BSD
+LICENSE= BSD3CLAUSE
LIB_DEPENDS?= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
libGeoIP.so:${PORTSDIR}/net/GeoIP
@@ -19,8 +18,12 @@ LIB_DEPENDS?= libboost_date_time.so:${PO
USES= compiler:c++11-lang pathfix pkgconfig iconv
USE_OPENSSL= yes
GNU_CONFIGURE= yes
+CFLAGS+= -w
USE_LDCONFIG= yes
+# Wrong versioning upstream
+PORTSCOUT= skipv:0.16.14
+
CONFIGURE_ARGS= --disable-debug \
--disable-static \
--enable-dht \
@@ -34,6 +37,9 @@ CONFIGURE_ARGS= --disable-debug \
--with-libiconv \
--with-openssl=${OPENSSLBASE}
+SHLIB_VER= 7
+PLIST_SUB+= SHLIB_VER="${SHLIB_VER}"
+
SUB_FILES= pkg-message
PORTDOCS= *
@@ -47,7 +53,8 @@ DOC_FILES2= *.png *.jpg *.gif *.html *.r
PORTEXAMPLES= *.cpp
-OPTIONS_DEFINE= DOCS EXAMPLES
+OPTIONS_DEFINE= DOCS EXAMPLES STRIP
+OPTIONS_DEFAULT= STRIP
.include <bsd.port.options.mk>
@@ -63,6 +70,14 @@ post-patch:
${WRKSRC}/Jamfile
post-install:
+.if ${PORT_OPTIONS:MSTRIP}
+ ${STRIP_CMD} \
+ ${STAGEDIR}${PREFIX}/lib/libtorrent-rasterbar.so.${SHLIB_VER}
+.else
+ ${STRIP_CMD} \
+ ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}/site-packages/libtorrent.so
+.endif
+
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
Modified: head/net-p2p/libtorrent-rasterbar/pkg-plist
==============================================================================
--- head/net-p2p/libtorrent-rasterbar/pkg-plist Mon Feb 3 22:39:05 2014 (r342475)
+++ head/net-p2p/libtorrent-rasterbar/pkg-plist Mon Feb 3 22:43:37 2014 (r342476)
@@ -135,7 +135,7 @@ include/libtorrent/web_peer_connection.h
include/libtorrent/xml_parse.hpp
lib/libtorrent-rasterbar.la
lib/libtorrent-rasterbar.so
-lib/libtorrent-rasterbar.so.7
+lib/libtorrent-rasterbar.so.%%SHLIB_VER%%
libdata/pkgconfig/libtorrent-rasterbar.pc
@dirrm include/libtorrent/kademlia
@dirrm include/libtorrent/extensions
More information about the svn-ports-all
mailing list