diff options
Diffstat (limited to 'dev-java/fec')
-rw-r--r-- | dev-java/fec/Manifest | 9 | ||||
-rw-r--r-- | dev-java/fec/fec-1.0.4-r3.ebuild | 69 | ||||
-rw-r--r-- | dev-java/fec/files/fec-1.0.4-build.patch | 4 | ||||
-rw-r--r-- | dev-java/fec/files/fec-1.0.4-libfec8path.patch | 4 | ||||
-rw-r--r-- | dev-java/fec/files/fec-1.0.4-remove-concurrent-util-imports.patch | 4 | ||||
-rw-r--r-- | dev-java/fec/files/fec-1.0.4-soname.patch | 4 |
6 files changed, 82 insertions, 12 deletions
diff --git a/dev-java/fec/Manifest b/dev-java/fec/Manifest index a2cb3a17a5d2..f09bf275cdd4 100644 --- a/dev-java/fec/Manifest +++ b/dev-java/fec/Manifest @@ -1,7 +1,8 @@ -AUX fec-1.0.4-build.patch 890 BLAKE2B 58dcca98815ecf53dfee025e1f11ca5a9a86adcfe672561a376c11d14d0635e9a858cb28a88b6f5187d03e1f5cf6412078caf1984ad58b1f46b28be0f1a9c0ea SHA512 d92960acd70d4f494e6875f1f5472d4da889c12a7bf8a232d291a557b0d17160a048290ab9dd9e90746a7954bd71681d36433d9dc422add7b9ea9ab956d8c90e -AUX fec-1.0.4-libfec8path.patch 1087 BLAKE2B 085c732b1ebf4bd8a6e6d7ddd7f5995c29177e165972360f9cec74dc8bc13f331ec32bf31f531c9efb4f63e796fd91142d87b94695ecff31cf4997e63379f3f1 SHA512 7f46eedf2eb21eff04f0cee30a0e454d4796f29a22df4c33100255133c43cce07ac95e8e7eae5957412a2ce0da626cdbfffc57c5398f9f2c56660000805a60a0 -AUX fec-1.0.4-remove-concurrent-util-imports.patch 3142 BLAKE2B 028451e332afc9ec5d5afdacc9bc75364708dc5700d8691a428fde2e7c24595dba5d1e39901555095aa4577180e884000c21bf2f55a375616de59b82244a3a14 SHA512 195d2d5ec252d9e8c83762de318393b50d08fd50c900a13489e082e6d08bcc6f85b6425dd350fe1d24e2aab5ed8753ce25dc87f35aa8754721cdf5949ad49aa6 -AUX fec-1.0.4-soname.patch 786 BLAKE2B 0037363c6a8a8506f1981980296708cc202815ecb48b0357a71ff2f7a1cb9a6a438974d35b548f10688dffa6cef736f1c24b56ef27a3b6767b63c56b4698d088 SHA512 d75e6198f2f7193fbb65b686118f597c289576726d77ce3d65e122b4d6ca1f790fb8530e42e3e174c97a4b45083f95407478499f11b457d813d06e85b5d21c1d +AUX fec-1.0.4-build.patch 894 BLAKE2B 753cee6cbca1a13ba83fba81466cee4651eafd987410295a22a75cfdc51dcfed3a5cea34cb46ebebf701896b2acdb3260a7dbd5f81f38dae8d23e6a1d266911a SHA512 7501680d8ec3aa709aa97afabae6a31f4a7797851d4954a41ba158922ee92fd84bffebc3ae5c74a1766f6e704ede146e8ff2d819ab32d39adb18eb1a7f6184ca +AUX fec-1.0.4-libfec8path.patch 1091 BLAKE2B 4e19c8615b20694f26d3ee5bd83e33ec342f34797198f10cca1a3cad86ed51ee6a603c697e50e95ba62b5200b1f24beed04adbb620ee0c49a403e24841bb2faf SHA512 91147d4022b3d9a5fe4f81d425a961c7767924b2cf309c315e663f00c679c867210e175863a49cb79fe47e686eb29b876ac8ddec1ed17b678f6affae71a2817e +AUX fec-1.0.4-remove-concurrent-util-imports.patch 3146 BLAKE2B 8716fcc73a5e1030d12709c12d15adb2462c40da5ab896806e4dc8b572fc6d952b6b09c550f1ba4511a84b9a75306804b67526ee34fac33d2f3d4bf453c807f9 SHA512 592cfd6502a000cc1ac02e534e5436cb3d621855cc682a4588a5fd6f17c8d7f4811743fa9dbcd30851221ba55ab2adb188f6dc9e32f8735651edd28e032803a6 +AUX fec-1.0.4-soname.patch 790 BLAKE2B 852ef6ec83d42a15bfb1d67b05364d15c3027a8579d5e90dab4dec4cc99273383d89f5d5174ec8a6e2ab3cb09986d3fd60f39aedec6ae2da3f893325f88756c4 SHA512 1586fc0408274fff7eb3ba2cd95cfac8a94dad9981e2e01e8e11642692d2a27068936b673364c9c2cc70ca848d364648a66c728dc41d85c605a25b7fe79e2ec3 DIST fec-1.0.4.tar.gz 449406 BLAKE2B 132bb87ff0da35b9a1830d014c46fb82209b344d159b88c6dbf36c706de668cdb2dfc10894690009e9a47f461100beaf9cf25ad1c75a3b18194e5499457bcb6b SHA512 0244de5e44ab108e921c6ca4cf341ce7b3ba807a76d24b768cfe3de71ffd525c9ebf389f9981e7eaa83fec301a65ba60ef4f51c5b3befa6c7af42b793d430343 EBUILD fec-1.0.4-r2.ebuild 1498 BLAKE2B b1d62acc07c2ca5eec3a397c871f22435238e53823a45718fd2bb0bc85403b1916944a0eac177c78207ccbd0286fa9df05d8641609ea40bbdab37d30c944941a SHA512 9248440a109bfa8245da3c114e42186fe625cee6da2d0122edf12db626609d9026ebb0dc543ab5cd5fcfa15f3a26b333f79c1af70dac67c8c1ca98bf45ccf9aa +EBUILD fec-1.0.4-r3.ebuild 1485 BLAKE2B d6a62270e9ca9c9248276c49eaba860e6f64211b52e21771a87d8f64fa5ca02c612112150495b1ff0bc09c1eb131cdd84f7a51972b52a8064b5c855388b4ec2c SHA512 d3e1b69aa3e2e50f5e5114569abbf6db4b901b93a86ef3d18cf82d7f8d02752835860dcf67b5c22ba17a04ca59744c0166caa1e07955e8b7dfaaa2fb222d6702 MISC metadata.xml 435 BLAKE2B f15bf1cf8797a940aef17b1a72884aad2859be1790129554172bbeec7ea0e2f68da81c0e5362cc7d94302bb9090bc1d0960d608335bc1a88168a3607ccb0d191 SHA512 13f1c5f833c69547926d60f4f9325624db5e82ea9b01900b00d48b38079e0cd8b1d038f6a69d784d78fa3cafa6f23e7ce57b78812b91154e0850466c2daf2ab9 diff --git a/dev-java/fec/fec-1.0.4-r3.ebuild b/dev-java/fec/fec-1.0.4-r3.ebuild new file mode 100644 index 000000000000..11b1f1df74fb --- /dev/null +++ b/dev-java/fec/fec-1.0.4-r3.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +JAVA_PKG_IUSE="doc source" + +inherit flag-o-matic toolchain-funcs java-pkg-2 java-ant-2 + +DESCRIPTION="Forward Error Correction library in Java" +HOMEPAGE="https://bitbucket.org/onionnetworks/" +SRC_URI="https://dev.gentoo.org/~monsieurp/packages/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND="dev-java/log4j:0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:*" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.8:* + app-arch/unzip" + +PATCHES=( + "${FILESDIR}"/"${P}-libfec8path.patch" + "${FILESDIR}"/"${P}-build.patch" + "${FILESDIR}"/"${P}-soname.patch" + "${FILESDIR}"/"${P}-remove-concurrent-util-imports.patch" +) + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="log4j" +EANT_BUILD_TARGET="jars" + +# There seems to be unit tests, but they are in such a state. +RESTRICT="test" + +src_prepare() { + # Apply patches. + default + + # In fact, we'll wipe tests altogether. + rm -rf tests || die + + # Get rid of bundled jars. + java-pkg_clean +} + +src_compile() { + java-pkg-2_src_compile + einfo "Sucessfully compiled Java classes!" + + cd "${S}"/src/csrc || die + append-flags -fPIC + emake CC=$(tc-getCC) CFLAGS="${CFLAGS} $(java-pkg_get-jni-cflags)" + einfo "Sucessfully compiled C files!" +} + +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 +} diff --git a/dev-java/fec/files/fec-1.0.4-build.patch b/dev-java/fec/files/fec-1.0.4-build.patch index c47eb5459045..bc776a23c825 100644 --- a/dev-java/fec/files/fec-1.0.4-build.patch +++ b/dev-java/fec/files/fec-1.0.4-build.patch @@ -1,5 +1,5 @@ ---- src/csrc/Makefile.orig 2015-10-18 14:31:56.752486000 +0000 -+++ src/csrc/Makefile 2015-10-18 14:33:11.502486000 +0000 +--- a/src/csrc/Makefile.orig 2015-10-18 14:31:56.752486000 +0000 ++++ b/src/csrc/Makefile 2015-10-18 14:33:11.502486000 +0000 @@ -28,11 +28,8 @@ -I$(JAVA_HOME)/include/linux fec-jinterf.c \ -o fec8-jinterf.o diff --git a/dev-java/fec/files/fec-1.0.4-libfec8path.patch b/dev-java/fec/files/fec-1.0.4-libfec8path.patch index 58eb89efb730..88333afd08fe 100644 --- a/dev-java/fec/files/fec-1.0.4-libfec8path.patch +++ b/dev-java/fec/files/fec-1.0.4-libfec8path.patch @@ -1,5 +1,5 @@ ---- src/com/onionnetworks/fec/Native8Code.java.orig 2015-10-18 14:27:06.160486000 +0000 -+++ src/com/onionnetworks/fec/Native8Code.java 2015-10-18 14:30:32.557486000 +0000 +--- a/src/com/onionnetworks/fec/Native8Code.java.orig 2015-10-18 14:27:06.160486000 +0000 ++++ b/src/com/onionnetworks/fec/Native8Code.java 2015-10-18 14:30:32.557486000 +0000 @@ -3,6 +3,7 @@ //import java.security.AccessController; //import sun.security.action.*; diff --git a/dev-java/fec/files/fec-1.0.4-remove-concurrent-util-imports.patch b/dev-java/fec/files/fec-1.0.4-remove-concurrent-util-imports.patch index 87a9473ed937..ff4a583dfc7b 100644 --- a/dev-java/fec/files/fec-1.0.4-remove-concurrent-util-imports.patch +++ b/dev-java/fec/files/fec-1.0.4-remove-concurrent-util-imports.patch @@ -1,5 +1,5 @@ ---- src/com/onionnetworks/fec/io/FECFile.java.orig 2015-10-18 15:38:26.000000000 +0000 -+++ src/com/onionnetworks/fec/io/FECFile.java 2015-10-18 16:06:51.159486000 +0000 +--- a/src/com/onionnetworks/fec/io/FECFile.java.orig 2015-10-18 15:38:26.000000000 +0000 ++++ b/src/com/onionnetworks/fec/io/FECFile.java 2015-10-18 16:06:51.159486000 +0000 @@ -10,7 +10,9 @@ import com.onionnetworks.fec.FECCodeFactory; import com.onionnetworks.io.RAF; diff --git a/dev-java/fec/files/fec-1.0.4-soname.patch b/dev-java/fec/files/fec-1.0.4-soname.patch index ae00449ced40..7309aa03b086 100644 --- a/dev-java/fec/files/fec-1.0.4-soname.patch +++ b/dev-java/fec/files/fec-1.0.4-soname.patch @@ -1,5 +1,5 @@ ---- src/csrc/Makefile.bak 2010-02-27 00:51:38.000000000 +1300 -+++ src/csrc/Makefile 2010-02-27 00:56:06.000000000 +1300 +--- a/src/csrc/Makefile.bak 2010-02-27 00:51:38.000000000 +1300 ++++ b/src/csrc/Makefile 2010-02-27 00:56:06.000000000 +1300 @@ -21,7 +21,8 @@ $(CC) $(CFLAGS) -DGF_BITS=8 -o fec fec8.o test.c |