dev-java/fec: Clean up old.

Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
Patrice Clement
2015-11-01 15:16:56 +00:00
parent ee028a9a17
commit 9c73bdbf43
3 changed files with 0 additions and 89 deletions

View File

@@ -1,2 +1 @@
DIST fec-1.0.4.tar.bz2 611131 SHA256 978d0ef609ec334ea85e3f70e46a94f6c2cc04393b590a2addfc74e03634b8dd SHA512 45e33fc4b71fcd78a7c5310f2b58df8b83a988500d0de7efebbeade712f5c93d57bbe63fd7dc148ccb1cc6418fc9c79e27be6fe0512e2294c289b192c01ab871 WHIRLPOOL cef5de5b24ddc33f6a85581cd149d3c5887f8f49843df5918158d137b263a58b888149fe68e293bc697db0b7b74e3952fabc1842f8b8f80932de379f2c7bf0d2
DIST fec-1.0.4.tar.gz 449406 SHA256 b33f5558f53e1abd9a4e58b5898cd605607698f22679f577f5fdf6cb1a2dd48a SHA512 0244de5e44ab108e921c6ca4cf341ce7b3ba807a76d24b768cfe3de71ffd525c9ebf389f9981e7eaa83fec301a65ba60ef4f51c5b3befa6c7af42b793d430343 WHIRLPOOL 3179b18a341b65b6cd295cf5f716887f8c90f03f81017444468dd57220afa4c4e58c5112fd4ef898d4f7fd7a307eb5846ffed6bead8d13fedfc30dc41fbb23d5

View File

@@ -1,61 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
JAVA_PKG_IUSE="doc source"
inherit flag-o-matic java-pkg-2 java-ant-2 toolchain-funcs
DESCRIPTION="Forword error correction libs"
HOMEPAGE="http://www.onionnetworks.com/developers/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
COMMON_DEPEND="dev-java/log4j
dev-java/concurrent-util"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEPEND}"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEPEND}"
EANT_BUILD_TARGET="jars"
src_unpack() {
unpack ${A}
cd "${S}" || die
sed -i -e 's/build.compiler=jikes/#build.compiler=jikes/g' build.properties || die
sed -i -e 's/test.lib/lib/g' build.properties || die
epatch "${FILESDIR}"/${P}-{libfec8path,build,soname}.patch
eant clean
cd lib || die
rm -v *.jar || die
java-pkg_jar-from log4j
java-pkg_jar-from concurrent-util concurrent.jar concurrent-jaxed.jar
cd "${S}" || die
unzip -q common-20020926.zip || die
cd common-20020926 || die
eant clean
cp -r src/com ../src/ || die
}
src_compile() {
java-pkg-2_src_compile
cd "${S}"/src/csrc
append-flags -fPIC
emake CC=$(tc-getCC) CFLAGS="${CFLAGS} $(java-pkg_get-jni-cflags)" || die
}
#there seem to be unit tests, but they are in such a state.
src_install() {
java-pkg_newjar lib/onion-${PN}.jar ${PN}.jar
use doc && java-pkg_dojavadoc javadoc
use source && java-pkg_dosrc src/com
dolib.so src/csrc/libfec{8,16}.so || die
}

View File

@@ -1,27 +0,0 @@
--- src/com/onionnetworks/fec/Native8Code.java 2002-09-30 20:19:24.000000000 +0200
+++ src/com/onionnetworks/fec/Native8Code.java.new 2008-03-24 01:38:35.000000000 +0100
@@ -3,6 +3,7 @@
//import java.security.AccessController;
//import sun.security.action.*;
import com.onionnetworks.util.*;
+import java.io.File;
/**
* This class is the frontend for the JNI wrapper for the C implementation of
@@ -21,13 +22,9 @@
private int code;
static {
- String path = NativeDeployer.getLibraryPath
- (Native8Code.class.getClassLoader(),"fec8");
- if (path != null) {
- System.load(path);
- } else {
- System.out.println("Unable to find native library for fec8");
- }
+ File path = new File("/usr/lib/libfec8.so");
+ System.out.println("Loading FEC lib ["+path.getAbsolutePath()+']');
+ System.load(path.getAbsolutePath());
}
public Native8Code(int k, int n) {