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 A05581382C5 for ; Fri, 21 May 2021 07:02:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E67FCE0875; Fri, 21 May 2021 07:02:11 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 BDD58E0875 for ; Fri, 21 May 2021 07:02:11 +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 95061340BDA for ; Fri, 21 May 2021 07:02:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7DC6737 for ; Fri, 21 May 2021 07:02:08 +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: <1621580492.fb401a9eebd3d0ad0887234e16d4329f5cb130b7.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/sun-jai-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild X-VCS-Directories: dev-java/sun-jai-bin/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: fb401a9eebd3d0ad0887234e16d4329f5cb130b7 X-VCS-Branch: master Date: Fri, 21 May 2021 07:02:08 +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: 3c2bd0ce-f032-42fd-b346-453630abe091 X-Archives-Hash: 018e4d763877f0a71817241b14bd18e3 commit: fb401a9eebd3d0ad0887234e16d4329f5cb130b7 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Wed May 19 16:26:19 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Fri May 21 07:01:32 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb401a9e dev-java/sun-jai-bin: min java 1.8 Bug: https://bugs.gentoo.org/786846 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/20884 Signed-off-by: Miroslav Šulc gentoo.org> dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild new file mode 100644 index 00000000000..1f5ba79b8b0 --- /dev/null +++ b/dev-java/sun-jai-bin/sun-jai-bin-1.1.3-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit java-pkg-2 + +MY_PV=${PV//./_} +DESCRIPTION="JAI is a class library for managing images" +HOMEPAGE="https://jai.dev.java.net/" + +BASE=https://download.java.net/media/jai/builds/release/${MY_PV} +MY_P="jai-${MY_PV}" +SRC_URI=" + !amd64? ( ${BASE}/${MY_P}-lib-linux-i586.tar.gz ) + amd64? ( ${BASE}/${MY_P}-lib-linux-amd64.tar.gz )" + +LICENSE="sun-bcla-jai" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="virtual/jre:1.8" + +RESTRICT="bindist mirror" +QA_PREBUILT="*" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + default + rm LICENSE-jai.txt || die +} + +src_compile() { :; } + +src_install() { + dodoc *.txt + + java-pkg_dojar lib/*.jar + use x86 && java-pkg_doso lib/*.so + use amd64 && java-pkg_doso lib/*.so +} + +pkg_postinst() { + elog "This ebuild now installs into /opt/${PN} and /usr/share/${PN}" + elog 'To use you need to pass the following to java' + if use x86 || use amd64; then + elog '-Djava.library.path=$(java-config -i sun-jai-bin)' + fi + elog '-classpath $(java-config -p sun-jai-bin)' +}