Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/fec/
Date: Wed, 24 Nov 2021 09:21:28
Message-Id: 1637745680.41bbe5884bcfa838abc4cac54cbfd3955181c05d.fordfrog@gentoo
1 commit: 41bbe5884bcfa838abc4cac54cbfd3955181c05d
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 24 09:21:20 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 24 09:21:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41bbe588
7
8 dev-java/fec: removed obsolete 1.0.4-r2
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 dev-java/fec/fec-1.0.4-r2.ebuild | 69 ----------------------------------------
14 1 file changed, 69 deletions(-)
15
16 diff --git a/dev-java/fec/fec-1.0.4-r2.ebuild b/dev-java/fec/fec-1.0.4-r2.ebuild
17 deleted file mode 100644
18 index b925d176c372..000000000000
19 --- a/dev-java/fec/fec-1.0.4-r2.ebuild
20 +++ /dev/null
21 @@ -1,69 +0,0 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -JAVA_PKG_IUSE="doc source"
27 -
28 -inherit flag-o-matic toolchain-funcs java-pkg-2 java-ant-2
29 -
30 -DESCRIPTION="Forward Error Correction library in Java"
31 -HOMEPAGE="https://bitbucket.org/onionnetworks/"
32 -SRC_URI="https://dev.gentoo.org/~monsieurp/packages/${P}.tar.gz"
33 -
34 -LICENSE="BSD-2"
35 -SLOT="0"
36 -KEYWORDS="amd64 x86"
37 -IUSE=""
38 -
39 -CDEPEND="dev-java/log4j:0"
40 -
41 -RDEPEND="
42 - ${CDEPEND}
43 - >=virtual/jre-1.6"
44 -
45 -DEPEND="
46 - ${CDEPEND}
47 - >=virtual/jdk-1.6
48 - app-arch/unzip"
49 -
50 -PATCHES=(
51 - "${FILESDIR}"/"${P}-libfec8path.patch"
52 - "${FILESDIR}"/"${P}-build.patch"
53 - "${FILESDIR}"/"${P}-soname.patch"
54 - "${FILESDIR}"/"${P}-remove-concurrent-util-imports.patch"
55 -)
56 -
57 -JAVA_ANT_REWRITE_CLASSPATH="yes"
58 -EANT_GENTOO_CLASSPATH="log4j"
59 -EANT_BUILD_TARGET="jars"
60 -
61 -# There seems to be unit tests, but they are in such a state.
62 -RESTRICT="test"
63 -
64 -java_prepare() {
65 - # In fact, we'll wipe tests altogether.
66 - rm -rf tests || die
67 -
68 - # Apply patches.
69 - epatch "${PATCHES[@]}"
70 -
71 - # Get rid of bundled jars.
72 - java-pkg_clean
73 -}
74 -
75 -src_compile() {
76 - java-pkg-2_src_compile
77 - einfo "Sucessfully compiled Java classes!"
78 -
79 - cd "${S}"/src/csrc || die
80 - append-flags -fPIC
81 - emake CC=$(tc-getCC) CFLAGS="${CFLAGS} $(java-pkg_get-jni-cflags)"
82 - einfo "Sucessfully compiled C files!"
83 -}
84 -
85 -src_install() {
86 - java-pkg_newjar "lib/onion-${PN}.jar" "${PN}.jar"
87 - use doc && java-pkg_dojavadoc javadoc
88 - use source && java-pkg_dosrc src/com
89 - dolib.so src/csrc/libfec{8,16}.so
90 -}