summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-09-23 10:35:22 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-09-23 10:35:48 +0900
commitbcac37d4fa122fd21148d66dca71c56cdc1222f1 (patch)
tree262f471b555f7ebb8d34084523cc4a913a83bfc7 /dev-java/java-config
parentwww-client/chromium: linux_use_bundled_binutils=false (diff)
downloadgentoo-bcac37d4fa122fd21148d66dca71c56cdc1222f1.tar.gz
gentoo-bcac37d4fa122fd21148d66dca71c56cdc1222f1.tar.bz2
gentoo-bcac37d4fa122fd21148d66dca71c56cdc1222f1.zip
dev-java/java-config: Prefix support.
Bug: 591156 Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-java/java-config')
-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.ebuild2
2 files changed, 17 insertions, 0 deletions
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
index 6d97d040b328..4fa2962084ca 100644
--- a/dev-java/java-config/java-config-2.2.0-r3.ebuild
+++ b/dev-java/java-config/java-config-2.2.0-r3.ebuild
@@ -26,6 +26,8 @@ RDEPEND="
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