summaryrefslogtreecommitdiff
path: root/net-libs
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2014-04-12 11:22:18 -0400
committerJames Cloos <cloos@jhcloos.com>2014-04-12 11:22:18 -0400
commitc7b2f73ed88d4e61d197080bbec4f122060e004a (patch)
treedcd95bc79f653369cdd7487422ef878592a09261 /net-libs
parentd1c6e8d32c2d1a07c88385fb23b1f71d7da45b41 (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.0.ebuild79
2 files changed, 82 insertions, 3 deletions
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
index 6de59e9..ea46a04 100644
--- a/net-libs/rohc/Manifest
+++ b/net-libs/rohc/Manifest
@@ -1,3 +1,3 @@
-DIST rohc-1.3.5.tar.gz 1271623 SHA256 44cc908a91e8b52046c2e5d267feacf2623565e6ae7d0df1ec2f626cd8aeb231 WHIRLPOOL 1b97c4b23b13017ab6d03fe9af4adc4c0390ad6405d6140f28df488c85951d243f148eccbcf9f8eccffee2724df052c6a32233d414a82ddd703708342770ee18
-DIST rohc-doc-1.3.5.tar.gz 4094678 SHA256 b42c900802cf8171fc7170b2836ec13b529669145d0de4289d465e8a0b6df28c WHIRLPOOL 52fa955663867d6451f1eb0c14a77b547e00338580e79ddf839d9912d6d685bc809f3aac78d4810255d27faf9f435fac01e698c2a11dd6482c1508cdf9432c68
-DIST rohc-tests-1.3.5.tar.gz 36866493 SHA256 40fd20a340a2987c4ac2705bf7bb4d2830e564bce6028c3efa6e457547693c3b WHIRLPOOL e54023ad88132b7eedb82c0aaade14b3c8f18c8ef9d5afab6fb4f492e34b8b1dad2d28964aa0c96a63b916439d6065c9aa7b9e4376f990b31041fdee2226ade1
+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
diff --git a/net-libs/rohc/rohc-1.4.0.ebuild b/net-libs/rohc/rohc-1.4.0.ebuild
new file mode 100644
index 0000000..9e38ed7
--- /dev/null
+++ b/net-libs/rohc/rohc-1.4.0.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
+}
+