summaryrefslogtreecommitdiff
path: root/net-libs
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2010-11-10 14:44:15 -0500
committerJames Cloos <cloos@jhcloos.com>2010-11-10 14:44:15 -0500
commit895c01b29ab83bf9e2b97ed5abc45ca565a68e75 (patch)
tree4e18acb20cfcf7bf49d6b2af7e572180f1e0de5a /net-libs
parent4c734ac0f791826dc4f885f47d5039c8aea5f0c7 (diff)
Add net-libs/rohc
Ebuild comes from http://bugs.gentoo.org/show_bug.cgi?id=311619
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/rohc/ChangeLog32
-rw-r--r--net-libs/rohc/Manifest5
-rw-r--r--net-libs/rohc/metadata.xml56
-rw-r--r--net-libs/rohc/rohc-1.3.1.ebuild78
4 files changed, 171 insertions, 0 deletions
diff --git a/net-libs/rohc/ChangeLog b/net-libs/rohc/ChangeLog
new file mode 100644
index 0000000..0213a54
--- /dev/null
+++ b/net-libs/rohc/ChangeLog
@@ -0,0 +1,32 @@
+# ChangeLog for net-libs/rohc
+# Copyright 2010 Didier Barvaux; Distributed under the GPL v2
+
+*rohc-1.3.1 (05 Jun 2010)
+
+ 05 Jun 2010; Didier Barvaux <didier@barvaux.org>
+ metadata.xml,
+ -rohc-1.3.0.ebuild:
+ +rohc-1.3.1.ebuild:
+ Convert to EAPI2.
+ Add doc USE flag in ebuild and its description in metadata.xml.
+ Build and install HTML documentation for library API if USE="doc".
+ Build and install performance graphs if USE="doc".
+ Do not install NEWS since it is not used by the project to announce news.
+ Add comments in ebuild to explain the different build steps.
+
+*rohc-1.3.0 (09 Apr 2010)
+
+ 04 Apr 2010; Didier Barvaux <didier@barvaux.org>
+ metadata.xml,
+ rohc-1.3.0.ebuild:
+ Make ebuild die if unpacking tests archive fails.
+ Keyworded ~amd64.
+ Describe the test use flag in metadata.
+ Thanks to Pavel for pointing these problems out.
+
+ 27 Mar 2010; Didier Barvaux <didier@barvaux.org>
+ +metadata.xml,
+ +ChangeLog,
+ +rohc-1.3.0.ebuild:
+ Initial import.
+
diff --git a/net-libs/rohc/Manifest b/net-libs/rohc/Manifest
new file mode 100644
index 0000000..2d0a421
--- /dev/null
+++ b/net-libs/rohc/Manifest
@@ -0,0 +1,5 @@
+DIST rohc-1.3.1.tar.bz2 945711 RMD160 24b1e1c558e8004be5ad193e271966befb2ac2ac SHA1 c87d9dfbef47bd270362c2af37568332d649829f SHA256 60827cafecb0c219b239e7241a0da3af3ffe8316182f23850f4fb727bb8ea8fc
+DIST rohc-tests-1.3.1.tar.bz2 39294595 RMD160 d05ad02ed5a849ed390eee1b657346e7f75071d1 SHA1 f749a60db9375fd2073647d2fda12bbe6e866d40 SHA256 6c844a4bfca1c65fee5e42d9db177fc0dd7ddbb8b79b14d26390b8b7843e22b9
+EBUILD rohc-1.3.1.ebuild 2052 RMD160 f3f1df794af3622d1f1349680aa844f4880abd26 SHA1 f7c418199eff802191e6cb427c6cba1306422719 SHA256 7e479643853097f51fcee1f37d686787db48aa47afa5140b171486abac70f05e
+MISC ChangeLog 983 RMD160 e350ba2cd1e7dd13bad67ece969dc8773ea98af2 SHA1 fcfb38dab06e0bd871b186fe6d7e213760c322d0 SHA256 c912e8f5684cd5c93cac7187a251a966fd0bb377ed6ac8504b21c1647fa02ff7
+MISC metadata.xml 2250 RMD160 e031b0794c1c93d059c16293032b24614b0476a7 SHA1 78ca832058e2cd9250b72a15381333f83ab136eb SHA256 d37a9e3c9c3dcba4bbedeab163eec0a647af94c12c0d781e798bad7b53f28b81
diff --git a/net-libs/rohc/metadata.xml b/net-libs/rohc/metadata.xml
new file mode 100644
index 0000000..58785a7
--- /dev/null
+++ b/net-libs/rohc/metadata.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+
+ <longdescription lang="en">
+ The ROHC library is an opensource and efficient library that implements
+ the RObust Header Compression (ROHC) protocol as defined by the IETF in
+ RFC 3095.
+ The ROHC protocol is a highly robust and efficient header compression
+ scheme for RTP/UDP/IP, UDP/IP, UDP-Lite/IP, ESP/IP and IP-only streams.
+ Both IPv4 and IPv6 headers are supported.
+ </longdescription>
+ <longdescription lang="fr">
+ La bibliothèque ROHC est une implémentation libre et efficace du protocole
+ RObust Header Compression (ROHC) défini par l'IETF dans la RFC 3095.
+ Le protocole ROHC est un algorithme extrêmement robuste et efficace de
+ compression d'entêtes pour les flux RTP/UDP/IP, UDP/IP, UDP-Lite/IP, ESP/IP
+ et IP seuls. Les entêtes IPv4 and IPv6 sont toutes les deux supportées.
+ </longdescription>
+
+ <use>
+ <flag name="debug">Enable verbose output in the ROHC library</flag>
+ <flag name="doc">
+ Generate HTML documentation of the ROHC library API and performance
+ graphs for the ROHC library. It requires <pkg>app-doc/doxygen</pkg>
+ with USE="latex" and <pkg>sci-visualization/gnuplot</pkg>.
+ </flag>
+ <flag name="rtp-bit-type">Enable support for non-standard RTP bit type support</flag>
+ <flag name="test">
+ Build and run library tests. It requires <pkg>net-libs/libpcap</pkg>.
+ </flag>
+ </use>
+
+ <herd>no-herd</herd>
+ <maintainer>
+ <name>Default assignee for orphaned packages</name>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <name>Didier Barvaux</name>
+ <email>didier@barvaux.org</email>
+ <description lang="en">Proxy maintainer and upstream developer. Please CC him on bugs.</description>
+ </maintainer>
+
+ <upstream>
+ <doc>http://www.tech.viveris.com/docs/rohc/</doc>
+ <changelog>http://bazaar.launchpad.net/%7Edidier-barvaux/rohc/main/annotate/head%3A/ChangeLog</changelog>
+ <bugs-to>https://bugs.launchpad.net/rohc</bugs-to>
+ <maintainer status="active">
+ <name>Didier Barvaux</name>
+ <email>didier@barvaux.org</email>
+ <description lang="en">main upstream developper</description>
+ </maintainer>
+ </upstream>
+
+</pkgmetadata>
diff --git a/net-libs/rohc/rohc-1.3.1.ebuild b/net-libs/rohc/rohc-1.3.1.ebuild
new file mode 100644
index 0000000..daee257
--- /dev/null
+++ b/net-libs/rohc/rohc-1.3.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="http://launchpad.net/${PN}/1.3.x/${PV}/+download/${P}.tar.bz2
+ test? ( http://launchpad.net/${PN}/1.3.x/${PV}/+download/${PN}-tests-${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
+}
+