pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/unknown-horizons



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Mar  9 09:39:11 UTC 2021

Modified Files:
        pkgsrc/games/unknown-horizons: distinfo
        pkgsrc/games/unknown-horizons/patches: patch-setup.py

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/unknown-horizons/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/unknown-horizons/patches/patch-setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/unknown-horizons/distinfo
diff -u pkgsrc/games/unknown-horizons/distinfo:1.1 pkgsrc/games/unknown-horizons/distinfo:1.2
--- pkgsrc/games/unknown-horizons/distinfo:1.1  Wed Aug  7 12:07:35 2019
+++ pkgsrc/games/unknown-horizons/distinfo      Tue Mar  9 09:39:10 2021
@@ -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

Index: pkgsrc/games/unknown-horizons/patches/patch-setup.py
diff -u pkgsrc/games/unknown-horizons/patches/patch-setup.py:1.1 pkgsrc/games/unknown-horizons/patches/patch-setup.py:1.2
--- pkgsrc/games/unknown-horizons/patches/patch-setup.py:1.1    Wed Aug  7 12:07:35 2019
+++ pkgsrc/games/unknown-horizons/patches/patch-setup.py        Tue Mar  9 09:39:11 2021
@@ -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