summaryrefslogtreecommitdiff
path: root/dev-java/java-config
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/java-config')
-rw-r--r--dev-java/java-config/Manifest6
-rw-r--r--dev-java/java-config/files/java-config-2.2.0-prefix.patch15
-rw-r--r--dev-java/java-config/java-config-2.2.0-r3.ebuild39
-rw-r--r--dev-java/java-config/metadata.xml14
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/java-config/Manifest b/dev-java/java-config/Manifest
new file mode 100644
index 000000000000..00f54dbefc07
--- /dev/null
+++ b/dev-java/java-config/Manifest
@@ -0,0 +1,6 @@
+AUX java-config-2.2.0-prefix.patch 653 SHA256 4b3dcb1c157a8487c6d84116173baa3e841eb354f6f7489c1919f9cb6246a299 SHA512 591591828ddadf76b5ed65811f7ed9e1e60583c5575926edf175ebc7ed1d76562ec980ec3bb530dedc7626f841dc7d143383bad25303399eac2ad49328d63dc0 WHIRLPOOL a25a4f7d435c39141fb2829771d291aa787f6fcaa9920ac5373239f6598debf6141001048316650b0b2e5db030de0581a2b52ea9ae33963266caadb0fe488376
+DIST java-config-2.2.0.tar.bz2 51851 SHA256 2cc47541714975099886156838f1f2c584b65e0cbc75ba2348cb18d9dec85fb7 SHA512 a491cfe86bde8afadfc5b875740d79f9077526d8650ffb034fdad67a7ffa1b02646f67b1ef0eab7b0fe3ae57b5d767fa6a0d5593fe07416993d60588a8ed595a WHIRLPOOL 1ded227dcdd7f248f9a8335b07bf006ebfefc8368dd400558d3ed7ca14e22da83ee052fc33d65bb784c61d573fa7fae6295be4d023ad7652ed4704997260316e
+EBUILD java-config-2.2.0-r3.ebuild 998 SHA256 5afaff8330594ebc0690dd3557498a17749c116999046e0567798753bd3d7fa3 SHA512 67d0bb47febcb5bd7a1714b6c5de0a65883dec0bb655638adaaf044ab1917753facd52c3bbb39a35090066202471f260e216bb532ceec70b7d8fa0116be6b0f0 WHIRLPOOL d8f372817ed36f78e68f5592adcb0da78e97970f4b944b46806035dfcf7dbfe18f7540cc128030b90ea0acc1250969d59dd3b67231e0f49e2a44cf4535a957b1
+MISC ChangeLog 4324 SHA256 19d1b809ca13447203b83747377d8468c780fb15038f6b5e239ce3a258abb3c5 SHA512 d14b4f30f54242be82f2573443c83acb725ab4accdeeaac6ba29e288943f178f8bd957a564531e96a6c1ee0082d343bfde42aceda765c694d78aa4c7e4023a21 WHIRLPOOL ad128d3a30ebdf5ea020b42af690878a53cd4c84491d1ecdc37322a551c1e793c374cec9c42aac26a96dd54a5d259b2f9ba1712423c881a56521276c1f46b1fb
+MISC ChangeLog-2015 49841 SHA256 3c4b1140f73733563b79024964c1964b89aec6a87b35cc79eead44787d0f559e SHA512 289b30f8f55cd987c560bbc5f4d042d356da67cf5b92ea09df153b5fae04b58a4c7a685860174e149d11b05c30891b99576ee24291d77cb8854e870f8bcf04aa WHIRLPOOL f48cf84725027c2f1a943c5ba835e3f9a5c7a4b630b97f88504d67d39d900a7d70b20a5bf7342c3c5b8515cd2763a3400fcdb44f98bd1e9386819be72f5ce557
+MISC metadata.xml 560 SHA256 7f203cc0929c4e01e91de8f201859ed0e716477f1c67f9aaaf4ec0e32fe94afe SHA512 9bd085048548f98faa638b23333ee0cf83b870c962b1aba62fa2df897393ce37c2b2e60736c988230252f29fc42e9dbe58ab8e720f7ec05a3e0b3d4c999e2c8a WHIRLPOOL cc554c57e6ea313069d15776ccbc35edbc1635d7118db97bf0582edb05765db262306fbf18f05d8b1fb3aec860cdbe1e11eb6d91bd584a2d299517288fb4a107
diff --git a/dev-java/java-config/files/java-config-2.2.0-prefix.patch b/dev-java/java-config/files/java-config-2.2.0-prefix.patch
new file mode 100644
index 000000000000..068538a69f91
--- /dev/null
+++ b/dev-java/java-config/files/java-config-2.2.0-prefix.patch
@@ -0,0 +1,15 @@
+Wait for the java team to upstream this patch.
+Bug: 591156
+--- /setup.py 2013-02-15 07:12:09.000000000 +0900
++++ /setup.py.new 2016-08-13 16:38:22.000000000 +0900
+@@ -87,8 +87,8 @@
+ elif arch in ['hpux']:
+ defaults = '*= hp-jdk-bin'
+
+- os.mkdir(self.root + '/usr/share/java-config-2/config/')
+- with open(self.root + '/usr/share/java-config-2/config/jdk-defaults.conf', 'w') as f:
++ os.mkdir(self.root + eprefix + '/usr/share/java-config-2/config/')
++ with open(self.root + eprefix + '/usr/share/java-config-2/config/jdk-defaults.conf', 'w') as f:
+ f.write("# This files contain the default support jdk's\n")
+ f.write(defaults + "\n")
+
diff --git a/dev-java/java-config/java-config-2.2.0-r3.ebuild b/dev-java/java-config/java-config-2.2.0-r3.ebuild
new file mode 100644
index 000000000000..983ce2cb9f34
--- /dev/null
+++ b/dev-java/java-config/java-config-2.2.0-r3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# jython depends on java-config, so don't add it or things will break
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Java environment configuration query tool"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
+SRC_URI="https://dev.gentoo.org/~sera/distfiles/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? ( sys-apps/portage[${PYTHON_USEDEP}] )"
+
+# baselayout-java is added as a dep till it can be added to eclass.
+RDEPEND="
+ !dev-java/java-config-wrapper
+ sys-apps/baselayout-java
+ sys-apps/portage[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/${PN}-2.2.0-prefix.patch )
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ # This replaces the file installed by java-config-wrapper.
+ dosym java-config-2 /usr/bin/java-config
+}
+
+python_test() {
+ esetup.py test
+}
diff --git a/dev-java/java-config/metadata.xml b/dev-java/java-config/metadata.xml
new file mode 100644
index 000000000000..fb57516300d3
--- /dev/null
+++ b/dev-java/java-config/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>
+ java-config is used to configure the Java subsystem on your Gentoo
+ installation. In particular, it can be used to configure system-wide and
+ per-user default JVMs, construct classpath env vars from installed java
+ packages and be used to query for the path to various JDK tools.
+ </longdescription>
+</pkgmetadata>