Sat Sep 27 09:46:24 2014 UTC ()
Use tr to handle differences between unzip implementations.


(jperkin)
diff -r1.36 -r1.37 pkgsrc/databases/luma/Makefile
diff -r1.8 -r1.9 pkgsrc/databases/luma/distinfo
diff -r1.2 -r1.3 pkgsrc/databases/luma/patches/patch-luma_luma.py
diff -r1.3 -r1.4 pkgsrc/databases/luma/patches/patch-setup.py

cvs diff -r1.36 -r1.37 pkgsrc/databases/luma/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/databases/luma/Attic/Makefile 2014/09/24 12:49:38 1.36
+++ pkgsrc/databases/luma/Attic/Makefile 2014/09/27 09:46:24 1.37
@@ -1,36 +1,42 @@ @@ -1,36 +1,42 @@
1# $NetBSD: Makefile,v 1.36 2014/09/24 12:49:38 jperkin Exp $ 1# $NetBSD: Makefile,v 1.37 2014/09/27 09:46:24 jperkin Exp $
2 2
3DISTNAME= luma-3.0.7 3DISTNAME= luma-3.0.7
4CATEGORIES= databases 4CATEGORIES= databases
5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=luma/} 5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=luma/}
6EXTRACT_SUFX= .zip 6EXTRACT_SUFX= .zip
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://luma.sourceforge.net/ 9HOMEPAGE= http://luma.sourceforge.net/
10COMMENT= LDAP browser 10COMMENT= LDAP browser
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13REPLACE_PYTHON= luma/luma.py 13REPLACE_PYTHON= luma/luma.py
14INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PYSITELIB}/luma/plugins/browser 14INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PYSITELIB}/luma/plugins/browser
15 15
16PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-qt3-base, py-ldap 16PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-qt3-base, py-ldap
17 17
18SUBST_CLASSES+= luma 18SUBST_CLASSES+= luma
19SUBST_STAGE.luma= pre-configure 19SUBST_STAGE.luma= pre-configure
20SUBST_FILES.luma= luma/luma.py 20SUBST_FILES.luma= luma/luma.py
21SUBST_SED.luma= -e "s|@PATH@|${PREFIX}/${PYSITELIB}/luma|" 21SUBST_SED.luma= -e "s|@PATH@|${PREFIX}/${PYSITELIB}/luma|"
22SUBST_MESSAGE.luma= Adding library path to luma. 22SUBST_MESSAGE.luma= Adding library path to luma.
23 23
 24post-extract:
 25 for f in ${WRKSRC}/luma/luma.py ${WRKSRC}/setup.py; do \
 26 ${TR} -d '\r' < $${f} > $${f}.new; \
 27 ${MV} $${f}.new $${f}; \
 28 done
 29
24# world-writeable files 30# world-writeable files
25pre-build: 31pre-build:
26 ${CHMOD} 0644 ${WRKSRC}/data/icons/*/*.{png,svg} 32 ${CHMOD} 0644 ${WRKSRC}/data/icons/*/*.{png,svg}
27 ${CHMOD} 0644 ${WRKSRC}/data/*.desktop 33 ${CHMOD} 0644 ${WRKSRC}/data/*.desktop
28 34
29# some templates are not installed, do it manually 35# some templates are not installed, do it manually
30# https://sourceforge.net/p/luma/bugs/48/ 36# https://sourceforge.net/p/luma/bugs/48/
31post-install: 37post-install:
32 ${MV} ${DESTDIR}${PREFIX}/share/man/man1/luma.1.gz ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 38 ${MV} ${DESTDIR}${PREFIX}/share/man/man1/luma.1.gz ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
33 ${CP} -R ${WRKSRC}/luma/plugins/browser/templates ${DESTDIR}${PREFIX}/${PYSITELIB}/luma/plugins/browser/templates 39 ${CP} -R ${WRKSRC}/luma/plugins/browser/templates ${DESTDIR}${PREFIX}/${PYSITELIB}/luma/plugins/browser/templates
34 40
35.include "../../databases/py-ldap/buildlink3.mk" 41.include "../../databases/py-ldap/buildlink3.mk"
36.include "../../lang/python/application.mk" 42.include "../../lang/python/application.mk"

cvs diff -r1.8 -r1.9 pkgsrc/databases/luma/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/databases/luma/Attic/distinfo 2014/09/24 12:49:38 1.8
+++ pkgsrc/databases/luma/Attic/distinfo 2014/09/27 09:46:24 1.9
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.8 2014/09/24 12:49:38 jperkin Exp $ 1$NetBSD: distinfo,v 1.9 2014/09/27 09:46:24 jperkin Exp $
2 2
3SHA1 (luma-3.0.7.zip) = 6b82ddc1ac5948b02a2843c3a4dd76cf6c797494 3SHA1 (luma-3.0.7.zip) = 6b82ddc1ac5948b02a2843c3a4dd76cf6c797494
4RMD160 (luma-3.0.7.zip) = 30577b1afae57734c4e1b7fdff0dfc4fd7543001 4RMD160 (luma-3.0.7.zip) = 30577b1afae57734c4e1b7fdff0dfc4fd7543001
5Size (luma-3.0.7.zip) = 815984 bytes 5Size (luma-3.0.7.zip) = 815984 bytes
6SHA1 (patch-luma_luma.py) = fc0639d17d1b6fcdd97f1c8193b363ee748a6672 6SHA1 (patch-luma_luma.py) = fc8e0a171303cc85a5ef7c51d802480ffac8ee6e
7SHA1 (patch-setup.py) = 55809b4ccc654d6a8c75cc3c12f490718caf265f 7SHA1 (patch-setup.py) = 3e6864a9f1d4a9a88ed47b431717ed37093b9024

cvs diff -r1.2 -r1.3 pkgsrc/databases/luma/patches/Attic/patch-luma_luma.py (expand / switch to unified diff)

--- pkgsrc/databases/luma/patches/Attic/patch-luma_luma.py 2014/09/24 12:49:38 1.2
+++ pkgsrc/databases/luma/patches/Attic/patch-luma_luma.py 2014/09/27 09:46:24 1.3
@@ -1,30 +1,30 @@ @@ -1,30 +1,30 @@
1$NetBSD: patch-luma_luma.py,v 1.2 2014/09/24 12:49:38 jperkin Exp $ 1$NetBSD: patch-luma_luma.py,v 1.3 2014/09/27 09:46:24 jperkin Exp $
2 2
3Adding luma library path to search path. 3Adding luma library path to search path.
4Remove some variables that should be set by __init__.py, but aren't; 4Remove some variables that should be set by __init__.py, but aren't;
5don't know why. 5don't know why.
6 6
7--- luma/luma.py.orig 2011-05-24 23:09:06.000000000 +0000 7--- luma/luma.py.orig 2011-05-24 23:09:06.000000000 +0000
8+++ luma/luma.py 8+++ luma/luma.py
9@@ -30,6 +30,8 @@ import StringIO 9@@ -30,6 +30,8 @@ import StringIO
10 import sys  10 import sys
11 import traceback  11 import traceback
12  12
13+sys.path.append("@PATH@")  13+sys.path.append("@PATH@")
14+  14+
15 failed = 0  15 failed = 0
16  16
17 if sys.version_info < (2,6):  17 if sys.version_info < (2,6):
18@@ -161,9 +163,9 @@ def startApplication(argv, verbose=False 18@@ -161,9 +163,9 @@ def startApplication(argv, verbose=False
19 #QApplication.setStyle(QStyleFactory.create("plastique"))  19 #QApplication.setStyle(QStyleFactory.create("plastique"))
20 #QApplication.setPalette(QApplication.style().standardPalette())  20 #QApplication.setPalette(QApplication.style().standardPalette())
21  21
22- app.setOrganizationName(appinfo.ORGNAME)  22- app.setOrganizationName(appinfo.ORGNAME)
23- app.setApplicationName(appinfo.APPNAME)  23- app.setApplicationName(appinfo.APPNAME)
24- app.setApplicationVersion(appinfo.VERSION)  24- app.setApplicationVersion(appinfo.VERSION)
25+ #app.setOrganizationName(appinfo.ORGNAME)  25+ #app.setOrganizationName(appinfo.ORGNAME)
26+ #app.setApplicationName(appinfo.APPNAME)  26+ #app.setApplicationName(appinfo.APPNAME)
27+ #app.setApplicationVersion(appinfo.VERSION)  27+ #app.setApplicationVersion(appinfo.VERSION)
28 app.setWindowIcon(QIcon(':/icons/128/luma'))  28 app.setWindowIcon(QIcon(':/icons/128/luma'))
29  29
30 # Setup the logging mechanism  30 # Setup the logging mechanism

cvs diff -r1.3 -r1.4 pkgsrc/databases/luma/patches/Attic/patch-setup.py (expand / switch to unified diff)

--- pkgsrc/databases/luma/patches/Attic/patch-setup.py 2014/09/24 12:49:38 1.3
+++ pkgsrc/databases/luma/patches/Attic/patch-setup.py 2014/09/27 09:46:24 1.4
@@ -1,37 +1,37 @@ @@ -1,37 +1,37 @@
1$NetBSD: patch-setup.py,v 1.3 2014/09/24 12:49:38 jperkin Exp $ 1$NetBSD: patch-setup.py,v 1.4 2014/09/27 09:46:24 jperkin Exp $
2 2
3Handle all non-Windows the same for pkgsrc, 3Handle all non-Windows the same for pkgsrc,
4in particular do not handle OS X differently. 4in particular do not handle OS X differently.
5 5
6Fix script name in install rule. 6Fix script name in install rule.
7https://sourceforge.net/p/luma/bugs/47/ 7https://sourceforge.net/p/luma/bugs/47/
8 8
9--- setup.py.orig 2011-05-25 12:32:02.000000000 +0000 9--- setup.py.orig 2011-05-25 12:32:02.000000000 +0000
10+++ setup.py 10+++ setup.py
11@@ -146,7 +146,7 @@ if sys.platform.lower().startswith('win' 11@@ -146,7 +146,7 @@ if sys.platform.lower().startswith('win'
12 )  12 )
13  13
14 # Mac OS X  14 # Mac OS X
15-elif sys.platform.lower().startswith('darwin'):  15-elif sys.platform.lower().startswith('darwin'):
16+elif sys.platform.lower().startswith('darwin_not_in_pkgsrc'):  16+elif sys.platform.lower().startswith('darwin_not_in_pkgsrc'):
17 # TODO: add Mac OS X spesifics. (py2app?)  17 # TODO: add Mac OS X spesifics. (py2app?)
18  18
19 # Create the Nroff man page for mac.  19 # Create the Nroff man page for mac.
20@@ -159,7 +159,7 @@ elif sys.platform.lower().startswith('da 20@@ -159,7 +159,7 @@ elif sys.platform.lower().startswith('da
21 )  21 )
22  22
23 # Linux  23 # Linux
24-elif sys.platform.lower().startswith('linux'):  24-elif sys.platform.lower().startswith('linux'):
25+else:  25+else:
26 # Include the application icon in various sizes, so that icon themers  26 # Include the application icon in various sizes, so that icon themers
27 # can change this as per the iconthemeing standards defined by  27 # can change this as per the iconthemeing standards defined by
28 # freedesktop.org  28 # freedesktop.org
29@@ -183,7 +183,7 @@ elif sys.platform.lower().startswith('li 29@@ -183,7 +183,7 @@ elif sys.platform.lower().startswith('li
30  30
31 _extras = dict(  31 _extras = dict(
32 data_files=_data_files,  32 data_files=_data_files,
33- scripts=['bin/luma']  33- scripts=['bin/luma']
34+ scripts=['luma/luma.py']  34+ scripts=['luma/luma.py']
35 )  35 )
36  36
37 if __name__ == '__main__':  37 if __name__ == '__main__':