summaryrefslogtreecommitdiff
path: root/net-libs
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2014-04-12 11:23:07 -0400
committerJames Cloos <cloos@jhcloos.com>2014-04-12 11:23:07 -0400
commit82a317113495306f3d7cf3798a316fb7f8cdfd16 (patch)
tree0d3674744ca32b501343be5326cf33d94a703fc8 /net-libs
parentc7b2f73ed88d4e61d197080bbec4f122060e004a (diff)
net-libs/rohc: bump version
Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/rohc/Manifest6
-rw-r--r--net-libs/rohc/rohc-1.4.1.ebuild79
2 files changed, 82 insertions, 3 deletions
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
index ea46a04..2699917 100644
--- a/net-libs/rohc/Manifest
+++ b/net-libs/rohc/Manifest
@@ -1,3 +1,3 @@
-DIST rohc-1.4.0.tar.bz2 501673 SHA256 56faa0e7966d3a38ae292b904673d658549c6970b019f478ad91be3a14054d4e WHIRLPOOL fcdf45e880679e15b4a51fedbbe67d645aae705b7402d7de122bc945a133c2defe80bbf5024090bb850f4d25f6ebb5d0bb856ef82c1c6d81f8f518191ba0d699
-DIST rohc-doc-1.4.0.tar.bz2 3634134 SHA256 1bd0393a4638e3bc7aeba61d6ea18104ee9c42e4a29c4a92a69c024c0e8faf2e WHIRLPOOL a8ec70efdb4a88384c2192ce4fba2e87c4500bac10cfa6000fec4bf35680f6c562c5a915145ca6cde5db14456ed9af98a578bc547b8cd6ed8f6bb4134b5669c7
-DIST rohc-tests-1.4.0.tar.bz2 39608019 SHA256 9946bbc2ac20e5cde89ea7d4ed9492ea5dbd6f2f50fbfbd12849d113b95201f7 WHIRLPOOL f55cddd200829e7e4fc7b7bbf4361777efad6151244beeef5e655f3f3f1db2088f7a941050eeb90499ec19317dbe5f2d3d8bf480b9695b94b50e48012bcaaab8
+DIST rohc-1.4.1.tar.bz2 501666 SHA256 59110c95ae9af0504d9d2a9f8d4d29520d7c6e9c13cbf9ddbf018bf57b61de1d WHIRLPOOL 1c8ca5cf1d0b6b7ad3d9f50ee37032e37a8cd0908b7f40c89c5c4fb5c635d5447a5b13181813d153044d8eba450062542691f1498ac20015c579513eff3c1e08
+DIST rohc-doc-1.4.1.tar.bz2 3630660 SHA256 e66c97959ac3fd78386107023f44dc9f999c18f4fe7e7e809b86d8ea3a26a1b0 WHIRLPOOL cf377abe6e73baa27f88c0480f882603f4b994159d2b7d52bcbc672e40d440c3054c65f3b7a3a70b0daedc3f455c650c904c0679130a85633bb835dffac7b416
+DIST rohc-tests-1.4.1.tar.bz2 39614281 SHA256 04021aec2cf15a501d3dc4eda2a187228b58d214ddbfed2e1523c1fc225b0208 WHIRLPOOL f774b136756e83be09f6ede69201a2635fdacac5a50bdb97362605fdd9944aafa9eb187d64b1333279d543886ce055f2bfee0d8b34c1894866015b0ac8d8c5f1
diff --git a/net-libs/rohc/rohc-1.4.1.ebuild b/net-libs/rohc/rohc-1.4.1.ebuild
new file mode 100644
index 0000000..9e38ed7
--- /dev/null
+++ b/net-libs/rohc/rohc-1.4.1.ebuild
@@ -0,0 +1,79 @@
+# 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}/1.4.x/${PV}/+download/${P}.tar.bz2
+ test? ( https://launchpad.net/${PN}/1.4.x/${PV}/+download/${PN}-tests-${PV}.tar.bz2 )
+ doc? ( https://launchpad.net/${PN}/1.4.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
+}
+