|
19 | 19 | _package_name = 'catalyst' |
20 | 20 | _maintainer_name, _maintainer_email = _parseaddr(__maintainer__) |
21 | 21 |
|
| 22 | +# establish the eprefix, initially set so eprefixify can |
| 23 | +# set it on install |
| 24 | +EPREFIX = "@GENTOO_PORTAGE_EPREFIX@" |
| 25 | +# check and set it if it wasn't |
| 26 | +if "GENTOO_PORTAGE_EPREFIX" in EPREFIX: |
| 27 | + EPREFIX = '' |
22 | 28 |
|
23 | 29 | def _posix_path(path): |
24 | 30 | """Convert a native path to a POSIX path |
@@ -48,12 +54,18 @@ def _files(prefix, root): |
48 | 54 | yield (install_directory, file_source_paths) |
49 | 55 |
|
50 | 56 |
|
51 | | -_data_files = [('/etc/catalyst', ['etc/catalyst.conf','etc/catalystrc']), |
52 | | - ('/usr/share/man/man1', ['files/catalyst.1']), |
53 | | - ('/usr/share/man/man5', ['files/catalyst-config.5', 'files/catalyst-spec.5']) |
| 57 | +_data_files = [ |
| 58 | + (_os.path.join(_os.sep, EPREFIX.lstrip(_os.sep), 'etc/catalyst'), |
| 59 | + ['etc/catalyst.conf','etc/catalystrc']), |
| 60 | + (_os.path.join(_os.sep, EPREFIX.lstrip(_os.sep), 'usr/share/man/man1'), |
| 61 | + ['files/catalyst.1']), |
| 62 | + (_os.path.join(_os.sep, EPREFIX.lstrip(_os.sep), 'usr/share/man/man5'), |
| 63 | + ['files/catalyst-config.5', 'files/catalyst-spec.5']) |
54 | 64 | ] |
55 | | -_data_files.extend(_files('share/catalyst/livecd', 'livecd')) |
56 | | -_data_files.extend(_files('share/catalyst/targets', 'targets')) |
| 65 | +_data_files.extend(_files(_os.path.join(_os.sep, EPREFIX.lstrip(_os.sep), |
| 66 | + 'usr/share/catalyst/livecd'), 'livecd')) |
| 67 | +_data_files.extend(_files(_os.path.join(_os.sep, EPREFIX.lstrip(_os.sep), |
| 68 | + 'usr/share/catalyst/targets'), 'targets')) |
57 | 69 |
|
58 | 70 |
|
59 | 71 | class set_version(_Command): |
|
0 commit comments