pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/unknown-horizons unknown-horizons: Don't check f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/150bedf1e13d
branches:  trunk
changeset: 448526:150bedf1e13d
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Mar 09 09:39:10 2021 +0000

description:
unknown-horizons: Don't check for a Linux distribution. Fixes build.

diffstat:

 games/unknown-horizons/distinfo               |   4 ++--
 games/unknown-horizons/patches/patch-setup.py |  20 +++++++++++++++++---
 2 files changed, 19 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 60d7ee6938ee -r 150bedf1e13d games/unknown-horizons/distinfo
--- a/games/unknown-horizons/distinfo   Tue Mar 09 09:01:46 2021 +0000
+++ b/games/unknown-horizons/distinfo   Tue Mar 09 09:39:10 2021 +0000
@@ -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 -r 60d7ee6938ee -r 150bedf1e13d games/unknown-horizons/patches/patch-setup.py
--- a/games/unknown-horizons/patches/patch-setup.py     Tue Mar 09 09:01:46 2021 +0000
+++ b/games/unknown-horizons/patches/patch-setup.py     Tue Mar 09 09:39:10 2021 +0000
@@ -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', )),



Home | Main Index | Thread Index | Old Index