summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2014-04-12 11:26:45 -0400
committerJames Cloos <cloos@jhcloos.com>2014-04-12 11:26:45 -0400
commite2c12daae2d786c79c177dea2f1282f0f8c9b72e (patch)
treee7942ad79ed1c574b858e691b4aa19496648c7ea
parentf190d2787015e4563ee85edae36bb087aa9b4d0e (diff)
net-libs/rohc: bump version
Signed-off-by: James Cloos <cloos@jhcloos.com>
-rw-r--r--net-libs/rohc/Manifest6
-rw-r--r--net-libs/rohc/rohc-1.6.0.ebuild78
2 files changed, 81 insertions, 3 deletions
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
index 8c7032c..7729965 100644
--- a/net-libs/rohc/Manifest
+++ b/net-libs/rohc/Manifest
@@ -1,3 +1,3 @@
-DIST rohc-1.5.3.tar.bz2 714310 SHA256 9dde7d9ccc850b6681a21f38360045be48417f3d057b6073ea9da3bc5a450030 WHIRLPOOL f32abc28e745434f894989fd2814354accb73e6f0efab19ff4bbb7fccb7b5a36f1344ab9bf3ac5204a755456c700da4d3b59dbb627f54dec23437720e43c2f02
-DIST rohc-doc-1.5.3.tar.bz2 6963863 SHA256 ee2be8ea2b600d03b9884e945cf3bab78fadde74ae4473b19a6bfc07c40f8a3e WHIRLPOOL e1f25f93b56f47c9d9561d55716161d5a567670a54cb27df97601b4daf3e9967882944c783b5d6ca40c3fbd072489c755f32e60809546496f726286bdcddb3ef
-DIST rohc-tests-1.5.3.tar.bz2 40191010 SHA256 c4fee7ba224b21eff62353638a937662eaa646b475fe1f84c85f13dec6483dd4 WHIRLPOOL 628d5d40a135ca2249159932483ee9d9b6078cea8fb0f8626ed07b95250cda96d03f9bce88d65c9dc6eda7357ae1521ac88f0ddbb0c21ca172a4c9b895129a52
+DIST rohc-1.6.0.tar.bz2 1007552 SHA256 64bb5d63e32f7026468bf9c497825c9c36d5b71a7b41ff607fc460cde423fc2e WHIRLPOOL f0926437eacf898a0e48aedecf574c98bfcdf8350a5082190207b6291baef76513155e4fec45d4be559c410aaf110a1ae8e5cd34951d7a7ae01c5921ee08f8f7
+DIST rohc-doc-1.6.0.tar.bz2 8314568 SHA256 ad464040a3d31c95a15f174d31804845350e1eb7dc4812755d59a3446958bd18 WHIRLPOOL f43b216e1d22c2155348ef9431ecf03accf9e614ac89806a559e3eca0474355c4c711b5cd05900c5f6ea335f8a1dc210c77f5285d64365bc27542c5ba21e184b
+DIST rohc-tests-1.6.0.tar.bz2 67708004 SHA256 0ba4850f7aff155cd9cd07fb8542753c1950049223350e40a810fd154c020b27 WHIRLPOOL c504c8606e57567aff246199ffcf2ba46eefd9e68cf0a953aa14e2137a57662a11680f62b05e84c1fb4e9c9cf188e92f838667bfbf35e8abea51e1fe0717392d
diff --git a/net-libs/rohc/rohc-1.6.0.ebuild b/net-libs/rohc/rohc-1.6.0.ebuild
new file mode 100644
index 0000000..048d221
--- /dev/null
+++ b/net-libs/rohc/rohc-1.6.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+DESCRIPTION="A free and efficient efficient library for ROHC compression"
+HOMEPAGE="http://launchpad.net/rohc"
+SRC_URI="https://launchpad.net/${PN}/${PN}-1.6.x/${PV}/+download/${P}.tar.bz2
+ test? ( https://launchpad.net/${PN}/${PN}-1.6.x/${PV}/+download/${PN}-tests-${PV}.tar.bz2 )
+ doc? ( https://launchpad.net/${PN}/${PN}-1.6.x/${PV}/+download/${PN}-doc-${PV}.tar.bz2 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~arm ~amd64"
+IUSE="debug doc rtp-bit-type test"
+
+DEPEND="test? ( net-libs/libpcap )
+ doc? ( app-doc/doxygen[latex]
+ sci-visualization/gnuplot )"
+
+src_prepare() {
+
+ # the traffic captures for tests are in a separate archive
+ # this saves bandwidth if tests are disabled
+ if use test ; then
+ unpack ${PN}-tests-${PV}.tar.bz2 \
+ || die "failed to unpack network captures for tests"
+ fi
+}
+
+src_configure() {
+
+ local myconf
+
+ myconf="
+ $(use_enable rtp-bit-type)
+ $(use_enable test rohc-tests)"
+
+ # configure log level
+ if use debug ; then
+ myconf="${myconf} --enable-rohc-debug=3"
+ else
+ myconf="${myconf} --enable-rohc-debug=0"
+ fi
+
+ # configure the library
+ econf ${myconf} || die "failed to configure library"
+
+ # build the library
+ emake || die "failed to build library"
+
+ # build HTML documentation and perf graphs
+ if use doc ; then
+ emake doc || die "failed to generate HTML documentation"
+ emake measures || die "failed generate perf graphs"
+ fi
+}
+
+src_install() {
+
+ # install libraries but not useless *.la files
+ emake DESTDIR="${D}" install || die "failed to install library"
+ for lib in common comp decomp ; do
+ rm -f ${D}/usr/lib/librohc_${lib}.la
+ done
+
+ # install README/INSTALL... files
+ dodoc README INSTALL COPYING AUTHORS ChangeLog \
+ || die "failed to install README, INSTALL... files"
+
+ # install HTML documentation and perf graphs
+ if use doc ; then
+ dohtml -r doc/html/* || die "failed to install HTML documentation"
+ docinto graphs || die "failed to create dir for perf graphs"
+ dodoc measures/*/*.png || die "failed to install perf graphs"
+ fi
+}