summaryrefslogtreecommitdiff
path: root/databases/luma/patches/patch-setup.py
blob: a1a769caeb811b2e0c6123cb68c58dc5de5ae67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-setup.py,v 1.2 2014/08/20 19:39:02 wiz Exp $

Handle all non-Windows the same for pkgsrc,
in particular do not handle OS X differently.

Fix script name in install rule.
https://sourceforge.net/p/luma/bugs/47/

--- setup.py.orig	2011-05-25 12:32:02.000000000 +0000
+++ setup.py
@@ -146,7 +146,7 @@ if sys.platform.lower().startswith('win'
     )
 
 # Mac OS X
-elif sys.platform.lower().startswith('darwin'):
+elif sys.platform.lower().startswith('darwin_not_in_pkgsrc'):
     # TODO: add Mac OS X spesifics. (py2app?)
 
     # Create the Nroff man page for mac.
@@ -159,7 +159,7 @@ elif sys.platform.lower().startswith('da
     )
 
 # Linux
-elif sys.platform.lower().startswith('linux'):
+else:
     # Include the application icon in various sizes, so that icon themers
     # can change this as per the iconthemeing standards defined by
     # freedesktop.org
@@ -183,7 +183,7 @@ elif sys.platform.lower().startswith('li
 
     _extras = dict(
         data_files=_data_files,
-        scripts=['bin/luma']
+        scripts=['luma/luma.py']
     )
 
 if __name__ == '__main__':