aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-12-30 12:58:44 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-12-30 12:58:44 +0000
commit98eedf91c0f73adb4a7728dbb502f3bfe096d058 (patch)
tree86bde6b341aeb1d035311352c48e3a88c917e65c /setup.py
parentEselect modules are now part of eselect-java. (diff)
downloadjava-config-98eedf91c0f73adb4a7728dbb502f3bfe096d058.tar.gz
java-config-98eedf91c0f73adb4a7728dbb502f3bfe096d058.tar.bz2
java-config-98eedf91c0f73adb4a7728dbb502f3bfe096d058.zip
Desktop files, icons, env.d and profile.d files as well as revdep-rebuild
control file and finally run-java-tool are now part of baselayout-java. Remove some java-config-1 remenmants as well. svn path=/projects/java-config-2/trunk/; revision=9131
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py40
1 files changed, 1 insertions, 39 deletions
diff --git a/setup.py b/setup.py
index 99f4946..d3ba2cf 100644
--- a/setup.py
+++ b/setup.py
@@ -1,39 +1,8 @@
#!/usr/bin/env python
-from distutils.command.install_scripts import install_scripts
-from distutils import log
-import os
-
-class my_install_scripts(install_scripts):
- """Specialized data file install to handle our symlinks"""
- install_scripts.user_options.append(('symlink-tools=', None,
- 'List of files to symlink to run-java-tool in script directory'))
-
- def initialize_options(self):
- install_scripts.initialize_options(self)
- self.symlink_tools = None
-
- def finalize_options(self):
- install_scripts.finalize_options(self)
- self.ensure_string_list('symlink_tools')
-
- def run(self):
- install_scripts.run(self)
- for tool in self.symlink_tools:
- s = self.install_dir + '/' + tool
- log.info("symbolically linking %s -> %s" % ('run-java-tool', s))
- if not self.dry_run:
- # os.symlink fails to overwrite existing files
- if os.path.exists(s):
- os.remove(s)
- # copy_file is not able to handle relative symlinks with --root
- os.symlink('run-java-tool', s)
-
from distutils.core import setup
-from glob import glob
setup (
- cmdclass={'install_scripts': my_install_scripts},
name = 'java-config',
version = '2.1.12',
description = 'java enviroment configuration tool',
@@ -48,18 +17,11 @@ setup (
url = 'http://www.gentoo.org',
packages = ['java_config_2'],
package_dir = { 'java_config_2' : 'src/java_config_2' },
- scripts = ['src/java-config-2','src/depend-java-query','src/run-java-tool', 'src/gjl'],
+ scripts = ['src/java-config-2','src/depend-java-query','src/gjl'],
data_files = [
- ('share/java-config-2/pym/java_config/', glob('src/java_config/*')),
- ('share/applications/', ['data/javaws.desktop']),
- ('share/icons/hicolor/48x48/mimetypes/', ['data/application-x-java-jnlp-file.png']),
- ('share/pixmaps/', ['data/java-icon48.png']),
('share/java-config-2/launcher', ['src/launcher.bash']),
('/etc/java-config-2/', ['config/virtuals']),
('/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'])
]
)