summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2014-04-12 11:23:15 -0400
committerJames Cloos <cloos@jhcloos.com>2014-04-12 11:23:15 -0400
commit0cf7baa5a76660d46bbb4e74b7c8cdb6f966b19e (patch)
treefe817e0b97f57b69de6396bf13b8a3fe9895b005
parent1550d3fe369fdbc1a4d89cbc87865a45698c7dd8 (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.4.3.ebuild79
2 files changed, 82 insertions, 3 deletions
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
index 2967044..8b3f951 100644
--- a/net-libs/rohc/Manifest
+++ b/net-libs/rohc/Manifest
@@ -1,3 +1,3 @@
-DIST rohc-1.4.2.tar.bz2 614513 SHA256 c7a400b3b887c23f19aa253c4ad3ee6721a46a270ccceb5c4b6b64ad2797d773 WHIRLPOOL c53157ac2abdf8c533c6194cfbdcb8c37036da224e9ef64784e05f33d2dc674e7cd7eed846f92fc6408cdf92ea66b3767ca9c17c00196784009a86920c0ecf71
-DIST rohc-doc-1.4.2.tar.bz2 3663722 SHA256 19d35bb1d33bfa0feb17a2ca92783692eb531b32b63061ce3af7b41a0538a3ea WHIRLPOOL ff02040ac15184960f3bded965b2b2deeb817cfd3fa4acce5a1c7b8d48fc5636846f11a7d0f85f2568da886e6b36dca9231c13c0bf0195c3fc33c40f6e115abd
-DIST rohc-tests-1.4.2.tar.bz2 39786956 SHA256 246d334be73d7fc8c2e8e79990dd4ef0ed02d42afcf936f564afafb87fcb77c3 WHIRLPOOL 48896160bc85119ed09674fe84694ce1b99e04b94cef2aeb6be076d62da9e27fec5e57f38e31a929e30a0c758a4c7343af8a972c7af4dea4a66209fe3ed94922
+DIST rohc-1.4.3.tar.bz2 614016 SHA256 636b204b35d8e29f5c9f9bb7bb31a2e1a98314f531a180e9e2b439b83f8964b9 WHIRLPOOL cece4dc8523622945d764ab696d401f7052aacb16294abf2433b7faedb9de53da776f532a816e79cddd434025cc30577578f389f7df639db89b7a23ad812629d
+DIST rohc-doc-1.4.3.tar.bz2 3668534 SHA256 830d4ccb18d9b2f931a8e51ae301671b8bae4f62cac758308ef3601ed3bf0057 WHIRLPOOL 978d7ee8ea009c9df38e4c2f60261e7dfcfc43b2144801ac93d68f1d0a4e5a3cce743786adc56ea925516d34ecac423b7159a03ee71235e43c0c95c9e65eaa90
+DIST rohc-tests-1.4.3.tar.bz2 39778721 SHA256 273fbd392c40c6f3588f2148769245a58bff08f80fb52d9adedbb7db98b57349 WHIRLPOOL d16b4b8e5145561f5e9853229bf9292f1f71a3a035fb12a9e700657abf0ec9d27ae01bff3fb6068eb720ec15446f445ea3e4a666864d6b4fad56fe040a7773a7
diff --git a/net-libs/rohc/rohc-1.4.3.ebuild b/net-libs/rohc/rohc-1.4.3.ebuild
new file mode 100644
index 0000000..9e38ed7
--- /dev/null
+++ b/net-libs/rohc/rohc-1.4.3.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
+}
+