Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 484956 | Differences between
and this patch

Collapse All | Expand All

(-)a/setup.py (-4 / +6 lines)
Lines 8-14 from distutils.cmd import Command Link Here
8
from distutils.command.build import build
8
from distutils.command.build import build
9
from distutils.command.install import install
9
from distutils.command.install import install
10
from distutils.command.sdist import sdist
10
from distutils.command.sdist import sdist
11
import fileinput, os, subprocess, sys, unittest
11
import fileinput, os, subprocess, sys, tempfile, unittest
12
12
13
13
14
class jc_build(build):
14
class jc_build(build):
Lines 87-96 class jc_install(install): Link Here
87
		elif arch in ['hpux']:
87
		elif arch in ['hpux']:
88
			defaults = '*= hp-jdk-bin'
88
			defaults = '*= hp-jdk-bin'
89
89
90
		os.mkdirs(self.root + '/usr/share/java-config-2/config/')
90
		with tempfile.NamedTemporaryFile(mode='w', delete=False) as f:
91
		with open(self.root + '/usr/share/java-config-2/config/jdk-defaults.conf', 'w') as f:
92
			f.write("# This files contain the default support jdk's\n")
91
			f.write("# This files contain the default support jdk's\n")
93
			f.write(defaults + "\n")
92
			f.write(defaults + "\n")
93
		confdir = self.root + '/usr/share/java-config-2/config/'
94
		self.mkpath(confdir)
95
		self.copy_file(f.name, confdir + 'jdk-defaults.conf', preserve_mode=0)
96
		os.remove(f.name)
94
97
95
98
96
class jc_sdist(sdist):
99
class jc_sdist(sdist):
97
- 

Return to bug 484956