updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / reglookup / SConstruct.patch
blobc90d58fb92766db7b750369aa1850fe1badfa890
1 --- SConstruct.old 2011-05-09 02:49:06.986670742 +0200
2 +++ SConstruct 2011-05-09 02:50:01.947173125 +0200
3 @@ -32,7 +32,7 @@
4 # Documentation
5 # This only needs to be run during the release/packaging process
6 man_fixup = "|sed 's/.SH DESCRIPTION/\\n.SH DESCRIPTION/'"
7 -man_builder = Builder(action='docbook2x-man --to-stdout $SOURCE'
8 +man_builder = Builder(action='docbook2man --to-stdout $SOURCE'
9 + man_fixup + '| gzip -9 > $TARGET',
10 suffix = '.gz',
11 src_suffix = '.docbook')
12 @@ -43,7 +43,10 @@
13 man_reglookup_timeline = env.ManPage('doc/reglookup-timeline.1.docbook')
15 # Installation
16 -prefix='/usr/local/'
17 +if 'PREFIX' in os.environ:
18 + prefix = os.environ['PREFIX']
19 +else:
20 + prefix = '/usr/local/'
21 install_items = [prefix+'bin',
22 prefix+'lib',
23 prefix+'include/regfi',
24 @@ -58,13 +61,13 @@
25 if sys.version_info[0] == 2:
26 install_items.append('pyregfi2-install.log')
27 env.Command('pyregfi2-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'],
28 - "python pyregfi-distutils.py install | tee pyregfi2-install.log")
29 + "PREFIX='" + prefix + "' python pyregfi-distutils.py install | tee pyregfi2-install.log")
31 python_path = os.popen('which python3').read()
32 if python_path != '':
33 install_items.append('pyregfi3-install.log')
34 env.Command('pyregfi3-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'],
35 - "python3 pyregfi-distutils.py install | tee pyregfi3-install.log")
36 + "PREFIX='" + prefix + "' python3 pyregfi-distutils.py install | tee pyregfi3-install.log")
38 # API documentation
39 regfi_doc = env.Command('doc/devel/regfi/index.html',