aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/depend-java-query')
-rwxr-xr-xsrc/depend-java-query16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/depend-java-query b/src/depend-java-query
index 04414f2..394b7e3 100755
--- a/src/depend-java-query
+++ b/src/depend-java-query
@@ -1,5 +1,5 @@
-#!/@GENTOO_PORTAGE_EPREFIX@usr/bin/python -E
-# -*- coding: UTF-8 -*-
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
# Copyright 2004-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
@@ -15,7 +15,8 @@ import sys
from optparse import OptionParser, make_option, OptionValueError
def version(option, opt, value, parser):
- printer._print("%H%BJava Dep Query Utility %GVersion @PACKAGE_VERSION@")
+ import java_config_2
+ printer._print(f"%H%BJava Dep Query Utility %GVersion {java_config_2.version}")
raise SystemExit()
def nocolor(option, opt, value, parser):
@@ -62,15 +63,16 @@ def parse_depend_string(option, opt, value, parse):
if __name__ == '__main__':
global printer, manager, verman
+ import java_config_2
printer = OutputFormatter(True, True)
- manager = EnvironmentManager(os.getenv('ROOT', ''), os.getenv('EPREFIX', '@GENTOO_PORTAGE_EPREFIX@'))
+ manager = EnvironmentManager(os.getenv('ROOT', ''), java_config_2.eprefix)
verman = VersionManager(manager)
usage = "depend-java-query [options]\n\n"
- usage += "Java Dep Query Utility Version @PACKAGE_VERSION@\n"
- usage += "Copyright 2004-2013 Gentoo Foundation\n"
+ usage += f"Java Dep Query Utility Version {java_config_2.version}\n"
+ usage += "Copyright 2004-2023 Gentoo Authors\n"
usage += "Distributed under the terms of the GNU General Public License v2\n"
- usage += "Please contact the Gentoo Java Herd <java@gentoo.org> with problems."
+ usage += "Please contact the Gentoo Java Project <java@gentoo.org> with problems."
options_list = [
make_option ("-V", "--version", action="callback", callback=version, help="Print version information"),