aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2011-09-08 16:06:26 +0000
committerRalph Sennhauser <sera@gentoo.org>2011-09-08 16:06:26 +0000
commit2a43a5719c2a827d8bc2acfb67679905eb0b6e0c (patch)
tree255981426c89125e1192bbcfe295a3dc3d394cfb
parentDon't install empty directory (diff)
downloadjava-config-2a43a5719c2a827d8bc2acfb67679905eb0b6e0c.tar.gz
java-config-2a43a5719c2a827d8bc2acfb67679905eb0b6e0c.tar.bz2
java-config-2a43a5719c2a827d8bc2acfb67679905eb0b6e0c.zip
Install configuration files into prefix
svn path=/projects/java-config-2/branches/generation3-support/; revision=8788
-rw-r--r--setup.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 9fbe7e8..dc8cfda 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,9 @@ from distutils.command.install_scripts import install_scripts
from distutils import log
import os
+def eprefix():
+ return os.getenv('EPREFIX', '')
+
class my_install_scripts(install_scripts):
"""Specialized data file install to handle our symlinks"""
install_scripts.user_options.append(('symlink-tools=', None,
@@ -55,10 +58,10 @@ setup (
('share/pixmaps/', ['data/java-icon48.png']),
('share/java-config-2/launcher', ['src/launcher.bash']),
('share/eselect/modules', glob('src/eselect/*.eselect')),
- ('/etc/java-config-2/build/', ['config/jdk.conf','config/compilers.conf']),
- ('/etc/env.d/',['config/20java-config']),
- ('/etc/profile.d/', glob('src/profile.d/*')),
- ('/etc/revdep-rebuild/', ['src/revdep-rebuild/60-java'])
+ (eprefix() + '/etc/java-config-2/build/', ['config/jdk.conf','config/compilers.conf']),
+ (eprefix() + '/etc/env.d/',['config/20java-config']),
+ (eprefix() + '/etc/profile.d/', glob('src/profile.d/*')),
+ (eprefix() + '/etc/revdep-rebuild/', ['src/revdep-rebuild/60-java'])
]
)