summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2014-04-12 11:25:31 -0400
committerJames Cloos <cloos@jhcloos.com>2014-04-12 11:25:31 -0400
commit768f2ebaa945a46f3925a279c5d6d4d94af19544 (patch)
tree7c911d63d1e77d574cfb2c59dcd1482fe6f4f2a8
parent0cf7baa5a76660d46bbb4e74b7c8cdb6f966b19e (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.5.0.ebuild78
2 files changed, 81 insertions, 3 deletions
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
index 8b3f951..af867a0 100644
--- a/net-libs/rohc/Manifest
+++ b/net-libs/rohc/Manifest
@@ -1,3 +1,3 @@
-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
+DIST rohc-1.5.0.tar.bz2 690737 SHA256 73d19bd6bb9f187ad61465659efb02ea0090c84521f7663297f29a79a012ad9f WHIRLPOOL 2f1583c335ded8c276294dcfb4d5dec0719397f907353b316426f0ac37e32aa20bdc8344857a53ebce79c112f621143aece143b507d721b5e1136c4d87a9f1c9
+DIST rohc-doc-1.5.0.tar.bz2 6947656 SHA256 ef9e676b0906e0f12bc4157f3c63ff2cd0ae78c61ac0e5924a976a522195ad1f WHIRLPOOL 180aa8c624d7e54845c3d134bf863b5c9315be6eec47a2b072f8e430239cd74dca7dd6ee1f8c9ea9a143029afb9148d0bb836f276b5121367080f80a801e7e3f
+DIST rohc-tests-1.5.0.tar.bz2 40196608 SHA256 12b0af2ccab4d5087c61c95d14dc6276452fc7dcc4199b89ad7165218830e82f WHIRLPOOL dd44a36ca74f42aeab3f3aa4c2a570557208ef89f3d526065b8534432a208c377aee65b3598f4a252d7886d3eeb207d4249ac33eaa8dc0686eea1261e087e14e
diff --git a/net-libs/rohc/rohc-1.5.0.ebuild b/net-libs/rohc/rohc-1.5.0.ebuild
new file mode 100644
index 0000000..94d3e41
--- /dev/null
+++ b/net-libs/rohc/rohc-1.5.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.5.x/${PV}/+download/${P}.tar.bz2
+ test? ( https://launchpad.net/${PN}/${PN}-1.5.x/${PV}/+download/${PN}-tests-${PV}.tar.bz2 )
+ doc? ( https://launchpad.net/${PN}/${PN}-1.5.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
+}