diff options
author | nia <nia@pkgsrc.org> | 2021-03-09 09:39:10 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-03-09 09:39:10 +0000 |
commit | d33ce4e891d297544b9e18d2bd3f495a10399399 (patch) | |
tree | 0fc2d8dc315fb445e49d53d80455b488013d2911 /games | |
parent | 819fb5ec29a821a90e298706076ba837907a2713 (diff) | |
download | pkgsrc-d33ce4e891d297544b9e18d2bd3f495a10399399.tar.gz |
unknown-horizons: Don't check for a Linux distribution. Fixes build.
Diffstat (limited to 'games')
-rw-r--r-- | games/unknown-horizons/distinfo | 4 | ||||
-rw-r--r-- | games/unknown-horizons/patches/patch-setup.py | 20 |
2 files changed, 19 insertions, 5 deletions
diff --git a/games/unknown-horizons/distinfo b/games/unknown-horizons/distinfo index f6f42f3090b..88e9802d0f0 100644 --- a/games/unknown-horizons/distinfo +++ b/games/unknown-horizons/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.1 2019/08/07 12:07:35 nia Exp $ +$NetBSD: distinfo,v 1.2 2021/03/09 09:39:10 nia Exp $ SHA1 (unknown-horizons-2019.1.tar.gz) = 84480614147a84bfc275c546fc970542ebee9cac RMD160 (unknown-horizons-2019.1.tar.gz) = a502b658984e2c7ac5b4779c7db94efc311446fe SHA512 (unknown-horizons-2019.1.tar.gz) = 87ae37442ee0b80130c7a75c7eeb7c0ef6c50f3e6b2616db32e6381ace5068729ab7086edefc00eefd3b89e85f9a05fb6c4d05f2a2adc46fa928e5c2a29b72db Size (unknown-horizons-2019.1.tar.gz) = 266260509 bytes SHA1 (patch-run__uh.py) = e8a975797f6c76928abdb7d2706cded3cd7c80f7 -SHA1 (patch-setup.py) = c6c44518d7f821f526422399e49ba7750a460666 +SHA1 (patch-setup.py) = b3a93a1b71dc856091582b785c240a1450659bb7 diff --git a/games/unknown-horizons/patches/patch-setup.py b/games/unknown-horizons/patches/patch-setup.py index e7d1a77e290..4a132a12f3e 100644 --- a/games/unknown-horizons/patches/patch-setup.py +++ b/games/unknown-horizons/patches/patch-setup.py @@ -1,10 +1,24 @@ -$NetBSD: patch-setup.py,v 1.1 2019/08/07 12:07:35 nia Exp $ +$NetBSD: patch-setup.py,v 1.2 2021/03/09 09:39:11 nia Exp $ -Install man pages to PKGMANDIR. +- On NetBSD platform.dist() is not defined. Always install to + the same binary directory anyway, for consistency. +- Install man pages to PKGMANDIR. --- setup.py.orig 2019-01-12 15:15:42.000000000 +0000 +++ setup.py -@@ -54,7 +54,7 @@ data = [ +@@ -39,10 +39,7 @@ from horizons.ext import polib + # Ensure we are in the correct directory + os.chdir(os.path.realpath(os.path.dirname(__file__))) + +-if platform.dist()[0].lower() in ('debian', 'ubuntu'): +- executable_path = 'games' +-else: +- executable_path = 'bin' ++executable_path = 'bin' + + + # this trick is for setting RELEASE_VERSION if the code is cloned from git repository +@@ -54,7 +51,7 @@ data = [ (executable_path, ('unknown-horizons', )), ('share/pixmaps', ('content/packages/unknown-horizons.xpm', )), ('share/unknown-horizons', ('content/settings-template.xml', )), |