From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A550159C9B for ; Thu, 8 Aug 2024 08:23:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0C7BE2C98; Thu, 8 Aug 2024 08:23:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AB8CAE2C98 for ; Thu, 8 Aug 2024 08:23:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A70B734308F for ; Thu, 8 Aug 2024 08:23:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07E211B9A for ; Thu, 8 Aug 2024 08:23:16 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1723105323.de14a5bf006456c0a655c7f8b0a660b058dee9ba.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/fec/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/fec/fec-1.0.4-r5.ebuild X-VCS-Directories: dev-java/fec/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: de14a5bf006456c0a655c7f8b0a660b058dee9ba X-VCS-Branch: master Date: Thu, 8 Aug 2024 08:23:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6ef2fb9a-8e7e-4356-a605-8f8bd6000fe4 X-Archives-Hash: fa2ff29a5992e96db37b031daab61b70 commit: de14a5bf006456c0a655c7f8b0a660b058dee9ba Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Sat Aug 3 09:53:09 2024 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Thu Aug 8 08:22:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de14a5bf dev-java/fec: 1.0.4-r5 rewrite with java-pkg-simple Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37470 Signed-off-by: Miroslav Šulc gentoo.org> dev-java/fec/fec-1.0.4-r5.ebuild | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) 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 +}