summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-libs/rohc/Manifest6
-rw-r--r--net-libs/rohc/rohc-1.5.1.ebuild78
2 files changed, 81 insertions, 3 deletions
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
index af867a0..0907437 100644
--- a/net-libs/rohc/Manifest
+++ b/net-libs/rohc/Manifest
@@ -1,3 +1,3 @@
-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
+DIST rohc-1.5.1.tar.bz2 694175 SHA256 d36dca6ad1ed1762012cae9c7e360704c85c3272300d48e46d61151a2c084766 WHIRLPOOL e293421c306271e810d5bd18a941505db9ba810c8c1f200d9a2b589f3fd3d83cfc53086ea5e57507ff963baecdcf93af5bf72977d0dad0560206a85017efd35c
+DIST rohc-doc-1.5.1.tar.bz2 6948496 SHA256 8838ee0e2df885c6034bc04d2284d0a5c6f1a853b18c7413ce2a85729f13d29f WHIRLPOOL fa5275ecd4fecc2608a0724598b695d4d6dcbea52c0ff50f5d850c6614cec73429f47209c31592db5470af5a09b39d4e2ccd3df38bdac95c753e20dcb5698663
+DIST rohc-tests-1.5.1.tar.bz2 40196580 SHA256 f35d1adf282d72ab761f4540e51ce358dbb3510da115fd1533649aa0cca0052d WHIRLPOOL ad1ad6a55dd09be97bb8023ac75a6cc3d2b143e76db4809cce3c8be74fcbe0141ffe25c21f48b33633b8fd5bc4eae1f2775c4c93e5dd4cd7a7d6fe8e1339cc47
diff --git a/net-libs/rohc/rohc-1.5.1.ebuild b/net-libs/rohc/rohc-1.5.1.ebuild
new file mode 100644
index 0000000..94d3e41
--- /dev/null
+++ b/net-libs/rohc/rohc-1.5.1.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
+}