ports/180436: [PATCH] net-p2p/libtorrent-rasterbar-16: update to 0.16.10, take maintainership

nemysis nemysis at gmx.ch
Wed Jul 10 14:50:02 UTC 2013


>Number:         180436
>Category:       ports
>Synopsis:       [PATCH] net-p2p/libtorrent-rasterbar-16: update to 0.16.10, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 10 14:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p10 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Fri Jun 28 19:52:22 UTC 2013

>Description:
- Update to 0.16.10
- Take maintainership
- Trim Makefile header
- Add license (BSD)
- Trim docs
- Add examples
- Add EXAMPLES Option
- Trim pkg-plist

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_8 (mode: update, diff: ports)
>How-To-Repeat:

Can't give build log, because RedPorts not works for me at the time.

https://redports.org/buildarchive/20130710125500-10655/

"/usr/ports/Mk/bsd.port.mk", line 1512: Could not find /usr/ports/Mk/Uses/gmake.mk

>Fix:

--- libtorrent-rasterbar-0.16.10.patch begins here ---
diff -ruN /usr/ports/net-p2p/libtorrent-rasterbar-16/Makefile ./Makefile
--- /usr/ports/net-p2p/libtorrent-rasterbar-16/Makefile	2013-06-02 18:54:06.000000000 +0200
+++ ./Makefile	2013-07-10 13:41:29.000000000 +0200
@@ -1,28 +1,28 @@
+# Created by: Doug Barton <dougb at FreeBSD.org>
 # $FreeBSD: head/net-p2p/libtorrent-rasterbar-16/Makefile 316662 2013-04-27 11:59:28Z mva $
 
 PORTNAME=	libtorrent-rasterbar
-PORTVERSION=	0.16.7
-PORTREVISION?=	2
+PORTVERSION=	0.16.10
 CATEGORIES?=	net-p2p ipv6
 MASTER_SITES=	GOOGLE_CODE
 PROJECTHOST=	libtorrent
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	nemysis at gmx.ch
 COMMENT?=	C++ library implementing a BitTorrent client
 
-MAKE_JOBS_SAFE=	yes
-
-CONFLICTS+=	libtorrent-rasterbar-0.1[45789].*
-
-NO_LATEST_LINK=	yes
+LICENSE=	BSD
 
 LIB_DEPENDS+=	boost_date_time:${PORTSDIR}/devel/boost-libs \
 		GeoIP:${PORTSDIR}/net/GeoIP
 
-GNU_CONFIGURE=	yes
 USES=		pathfix pkgconfig iconv
-USE_LDCONFIG=	yes
 USE_OPENSSL=	yes
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+MAKE_JOBS_SAFE=	yes
+
+CONFLICTS+=	libtorrent-rasterbar-0.1[45789].*
+NO_LATEST_LINK=	yes
 
 CONFIGURE_ARGS+=	--disable-debug \
 		--disable-static \
@@ -39,7 +39,16 @@
 
 PORTDOCS=	*
 
-OPTIONS_DEFINE=	DOCS
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	AUTHORS README
+
+DOCSRCDIR2=	 ${WRKSRC}/docs
+DOCSDIR2=	${DOCSDIR}/docs
+DOC_FILES2=	*.png *.jpg *.gif *.html *.rst *.css
+
+PORTEXAMPLES=	*.cpp
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 .include <bsd.port.pre.mk>
 
@@ -53,6 +62,7 @@
 .if defined(SLAVE_PORT) && ${SLAVE_PORT:L} == "yes"
 post-patch:	slave-post-patch
 .else
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|<include>/usr/local/include|<include>${PREFIX}/include|' \
 		${WRKSRC}/Jamfile
@@ -65,11 +75,13 @@
 .endif
 .if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/*.css ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/*.png ${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+	@${MKDIR} ${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.post.mk>
diff -ruN /usr/ports/net-p2p/libtorrent-rasterbar-16/distinfo ./distinfo
--- /usr/ports/net-p2p/libtorrent-rasterbar-16/distinfo	2013-06-02 18:54:06.000000000 +0200
+++ ./distinfo	2013-07-10 12:00:06.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (libtorrent-rasterbar-0.16.7.tar.gz) = 6d3ec18ffb14e6637020f020b3a7ea1831ab02941f4698f30beedbfa63f30048
-SIZE (libtorrent-rasterbar-0.16.7.tar.gz) = 2931824
+SHA256 (libtorrent-rasterbar-0.16.10.tar.gz) = 4c0d78b28af8051ff8a19a3a3e10a5edfec50945b8f3c9a76612111c47d671bc
+SIZE (libtorrent-rasterbar-0.16.10.tar.gz) = 2985640
diff -ruN /usr/ports/net-p2p/libtorrent-rasterbar-16/pkg-descr ./pkg-descr
--- /usr/ports/net-p2p/libtorrent-rasterbar-16/pkg-descr	2013-06-02 18:54:06.000000000 +0200
+++ ./pkg-descr	2013-07-10 13:38:30.000000000 +0200
@@ -1,14 +1,15 @@
 libtorrent is a C++ library that aims to be a good alternative to all the
-other bittorrent implementations around.  It is a library and not a full
-featured client.
+other bittorrent implementations around. It is a library and not a full
+featured client, although it comes with a working example client.
 
 The main goals of libtorrent are:
-	* to be cpu efficient
-	* to be memory efficient
-	* to be very easy to use
+
+        * to be cpu efficient
+        * to be memory efficient
+        * to be very easy to use
 
 The 0.16 branch adds uTP support.
 
 Note that this is NOT the same library as the libtorrent port!
 
-WWW: http://www.rasterbar.com/products/libtorrent/index.html
+WWW: http://www.rasterbar.com/products/libtorrent/
--- libtorrent-rasterbar-0.16.10.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list