summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/fec')
-rw-r--r--dev-java/fec/ChangeLog10
-rw-r--r--dev-java/fec/fec-1.0.3.ebuild59
-rw-r--r--dev-java/fec/files/build.xml29
-rw-r--r--dev-java/fec/metadata.xml10
4 files changed, 108 insertions, 0 deletions
diff --git a/dev-java/fec/ChangeLog b/dev-java/fec/ChangeLog
new file mode 100644
index 000000000000..fee8132606f3
--- /dev/null
+++ b/dev-java/fec/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/fec
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/fec/ChangeLog,v 1.1 2009/01/24 18:27:35 tommy Exp $
+
+*fec-1.0.3 (24 Jan 2009)
+
+ 24 Jan 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> +files/build.xml,
+ +fec-1.0.3.ebuild:
+ Initial commit. Fixes bug 238020
+
diff --git a/dev-java/fec/fec-1.0.3.ebuild b/dev-java/fec/fec-1.0.3.ebuild
new file mode 100644
index 000000000000..404ccef0d31d
--- /dev/null
+++ b/dev-java/fec/fec-1.0.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/fec/fec-1.0.3.ebuild,v 1.1 2009/01/24 18:27:35 tommy Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Forword error correction libs"
+HOMEPAGE="http://www.onionnetworks.com/developers/"
+SRC_URI="http://www.onionnetworks.com/downloads/${P}.zip"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ dev-java/log4j
+ dev-java/concurrent-util"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ cp "${FILESDIR}"/build.xml src/ || die
+ epatch "${FILESDIR}"/libfec8path.patch
+ sed -i -e 's/build.compiler=jikes/#build.compiler=jikes/g' build.properties || die
+ eant clean
+ cd lib || die
+ rm -rf * || die
+ java-pkg_jar-from --build-only log4j
+ java-pkg_jar-from --build-only concurrent-util concurrent.jar concurrent-jaxed.jar
+
+ cd "${S}" || die
+ unzip -q common-20020926.zip || die
+ cd common-20020926 || die
+ sed -i -e 's/build.compiler=jikes/#build.compiler=jikes/g' build.properties || die
+ eant clean
+ cd lib || die
+ rm -f *jar || die
+}
+
+src_compile() {
+ cd common-20020926 || die
+ eant
+ cp lib/onion-common.jar "${S}"/lib/ || die
+ cd "${S}" || die
+ eant
+ cd src || die
+ eant jar $(use_doc)
+}
+
+src_install() {
+ java-pkg_dojar src/${PN}.jar
+ use doc && java-pkg_dojavadoc src/docs
+ use source && java-pkg_dosrc src/com
+}
diff --git a/dev-java/fec/files/build.xml b/dev-java/fec/files/build.xml
new file mode 100644
index 000000000000..de128ab68a4e
--- /dev/null
+++ b/dev-java/fec/files/build.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="fec" default="jar" basedir=".">
+ <target name="init">
+ <mkdir dir="build"/>
+ <mkdir dir="docs"/>
+ </target>
+ <target name="compile" depends="init">
+ <javac srcdir="." destdir="build">
+ <classpath path="../lib/onion-common.jar"/>
+ <classpath path="../lib/log4j.jar"/>
+ <classpath path="../lib/concurrent-jaxed.jar"/>
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar jarfile="fec.jar" basedir="build"/>
+ </target>
+
+ <target name="javadoc" depends="init">
+ <javadoc destdir="docs">
+ <classpath path="../lib/onion-common.jar"/>
+ <classpath path="../lib/log4j.jar"/>
+ <classpath path="../lib/concurrent-jaxed.jar"/>
+ <fileset dir=".">
+ <include name="**/*.java"/>
+ </fileset>
+ </javadoc>
+ </target>
+</project>
diff --git a/dev-java/fec/metadata.xml b/dev-java/fec/metadata.xml
new file mode 100644
index 000000000000..21237a6e3ed0
--- /dev/null
+++ b/dev-java/fec/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>tommy@gentoo.org</email>
+ <name>Thomas Sachau (Tommy[D])</name>
+ </maintainer>
+ <herd>java</herd>
+</pkgmetadata>
+