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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 883EF13835A for ; Sat, 29 May 2021 09:27:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4DC9E0855; Sat, 29 May 2021 09:27:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD9F9E0855 for ; Sat, 29 May 2021 09:27:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B77A5340E56 for ; Sat, 29 May 2021 09:27:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 18F1178B for ; Sat, 29 May 2021 09:27:48 +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: <1622280463.fe00273a40c467a5acc1f2f9f99384c5b93a8160.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/jabref/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/jabref/jabref-2.10-r6.ebuild X-VCS-Directories: app-text/jabref/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: fe00273a40c467a5acc1f2f9f99384c5b93a8160 X-VCS-Branch: master Date: Sat, 29 May 2021 09:27:48 +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: 48a6631f-8353-4257-bc7f-e99aea2f1f64 X-Archives-Hash: 59b5e64d4ef132a16227dbaeeee03f17 commit: fe00273a40c467a5acc1f2f9f99384c5b93a8160 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Fri May 28 09:20:21 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sat May 29 09:27:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe00273a app-text/jabref: fix broken build with jdk-11 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21021 Signed-off-by: Miroslav Šulc gentoo.org> app-text/jabref/jabref-2.10-r6.ebuild | 84 +++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/app-text/jabref/jabref-2.10-r6.ebuild b/app-text/jabref/jabref-2.10-r6.ebuild new file mode 100644 index 00000000000..6a4ad246402 --- /dev/null +++ b/app-text/jabref/jabref-2.10-r6.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_ANT_REWRITE_CLASSPATH="true" + +inherit desktop java-pkg-2 java-ant-2 java-utils-2 + +MY_PV="${PV/_beta/b}" + +DESCRIPTION="Java GUI for managing BibTeX and other bibliographies" +HOMEPAGE="https://www.jabref.org/" +SRC_URI="mirror://sourceforge/${PN}/JabRef-${MY_PV}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="doc" + +COMMON_DEP=" + dev-java/antlr:0 + dev-java/antlr:3 + dev-java/fontbox:1.7 + dev-java/jempbox:1.7 + dev-java/log4j:0 + dev-java/spin:0 + dev-java/microba:0 + >=dev-java/glazedlists-1.8.0:0 + " + +DEPEND=" + virtual/jdk:1.8 + ${COMMON_DEP}" + +RDEPEND=" + virtual/jre:1.8 + ${COMMON_DEP}" + +S="${WORKDIR}/${PN}-${MY_PV}" + +src_prepare() { + default + + # If we cleanup it complains about missing jarbundler + # BUILD FAILED + # taskdef class net.sourceforge.jarbundler.JarBundler cannot be found +# java-pkg_clean + + # Remove bundled dependencies. + rm lib/antlr*.jar || die + rm lib/fontbox*.jar || die + rm lib/jempbox*.jar || die + rm lib/spin.jar || die + rm lib/microba.jar || die + rm lib/glazedlists*.jar || die + + # Remove unjarlib target (do this only once we have removed all + # bundled dependencies in lib). + #sed -i -e 's:depends="build, unjarlib":depends="build":' build.xml + + # Fix license file copy operation for microba bundled lib. + sed -i -e 's:^.*microba-license.*::' build.xml +} + +src_compile() { + local EXTERNAL_JARS="antlr,antlr-3,fontbox-1.7,jempbox-1.7,log4j,spin,microba,glazedlists" + local CLASSPATH="$(java-pkg_getjars --with-dependencies ${EXTERNAL_JARS})" + eant \ + -Dgentoo.classpath=${CLASSPATH} \ + jars \ + $(usex doc docs "") +} + +src_install() { + java-pkg_newjar build/lib/JabRef-${MY_PV}.jar + + use doc && java-pkg_dojavadoc build/docs/API + dodoc src/txt/README + + java-pkg_dolauncher ${PN} --main net.sf.jabref.JabRef + newicon src/images/JabRef-icon-48.png JabRef-icon.png + make_desktop_entry ${PN} JabRef JabRef-icon Office +}