summaryrefslogtreecommitdiff
path: root/dev-java/fec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-08 12:38:45 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-08 12:38:45 +0100
commit14866757225815b9374acfc8453518951e0f910d (patch)
tree3fc69d84de25c5d40515dc05fdf5c5934ed69955 /dev-java/fec
parentb8c7370a682e4e29cda623222d17a790c01c3642 (diff)
gentoo auto-resync : 08:08:2024 - 12:38:45
Diffstat (limited to 'dev-java/fec')
-rw-r--r--dev-java/fec/Manifest1
-rw-r--r--dev-java/fec/fec-1.0.4-r5.ebuild64
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/fec/Manifest b/dev-java/fec/Manifest
index e755e664a6b3..4b736c1b8b08 100644
--- a/dev-java/fec/Manifest
+++ b/dev-java/fec/Manifest
@@ -4,4 +4,5 @@ AUX fec-1.0.4-remove-concurrent-util-imports.patch 3146 BLAKE2B 8716fcc73a5e1030
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-r4.ebuild 1545 BLAKE2B a79eb3864e6a6af9ec3d80314d246b4d06a040f6d08ffaa5ad5cf539a928320bd7dd55caefd598744078b74fe01406648405b8e16fc083d5ec67a7826703154f SHA512 53b032dfe28bddce60b3af59a9c41e6241478574f40820cfcbe2f4ecacf8bcf0de00c9fec4d3f83b70843d4bc189853304960e3d98e84384cb216112633b092b
+EBUILD fec-1.0.4-r5.ebuild 1567 BLAKE2B ce1f459c5baf27e4666c2fc326a61df3c74118ec5f18a376ddffcba81769958ff85cae56d04486b530c0c0f35132e7cd60b84611dfc39997c1e632309cc51d15 SHA512 8cced82ee80ea14f4769ae04e0d65fc70fe77eaca776a3a789bf23c5cb8c7e3f2bdd001a2108db6a27cdd8cda9d2693466b7b8701a3195b1912dae5bdee06b70
MISC metadata.xml 318 BLAKE2B 463fade62b1a73b7fc75e7bd39e0e8f2d6d2450225af9001519bd14aeb48cf6bb8914f33b075388c683869d282f41ab2a1b2eba634ad43ac5c57d21be965dd22 SHA512 2434a4abc9ba27242e805fde38b3bce7785b44c3c9f9f89dcb8cec0b08776c0a4d64e0c9a3be0d86fd600256c8523d4020a3702b753b8f7b3770e6a73983ac7a
diff --git a/dev-java/fec/fec-1.0.4-r5.ebuild b/dev-java/fec/fec-1.0.4-r5.ebuild
new file mode 100644
index 000000000000..e55373ea5fdb
--- /dev/null
+++ b/dev-java/fec/fec-1.0.4-r5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+
+inherit flag-o-matic toolchain-funcs java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Forward Error Correction library in Java"
+HOMEPAGE="https://github.com/hyphanet/contrib/blob/master/README"
+SRC_URI="https://dev.gentoo.org/~monsieurp/packages/${P}.tar.gz"
+S="${WORKDIR}/${P}"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+CP_DEPEND="dev-java/log4j-12-api:2"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+DEPEND="${CP_DEPEND}
+ >=virtual/jdk-1.8:*"
+
+PATCHES=(
+ "${FILESDIR}"/"${P}-libfec8path.patch"
+ "${FILESDIR}"/"${P}-build.patch"
+ "${FILESDIR}"/"${P}-soname.patch"
+ "${FILESDIR}"/"${P}-remove-concurrent-util-imports.patch"
+)
+
+JAVA_RESOURCE_DIRS="bin"
+JAVA_SRC_DIR="src"
+
+src_prepare() {
+ default #780585
+ java-pkg-2_src_prepare
+ java-pkg_clean
+
+ # tests have never been enabled on this package. anyway, keeping this
+ # package with sources hosted in dev-space is only a workaround until
+ # we have a solution for bug #936539. the time for bothering with tests
+ # should be saved for that part.
+ #
+ # for the time being we keep removing the tests like before.
+ rm -rf tests || die
+}
+
+src_compile() {
+ java-pkg-simple_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-simple_src_install
+ dolib.so src/csrc/libfec{8,16}.so
+}