Use tr to handle differences between unzip implementations.diff -r1.36 -r1.37 pkgsrc/databases/luma/Makefile
(jperkin)
@@ -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 | |||
3 | DISTNAME= luma-3.0.7 | 3 | DISTNAME= luma-3.0.7 | |
4 | CATEGORIES= databases | 4 | CATEGORIES= databases | |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=luma/} | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=luma/} | |
6 | EXTRACT_SUFX= .zip | 6 | EXTRACT_SUFX= .zip | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://luma.sourceforge.net/ | 9 | HOMEPAGE= http://luma.sourceforge.net/ | |
10 | COMMENT= LDAP browser | 10 | COMMENT= LDAP browser | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | REPLACE_PYTHON= luma/luma.py | 13 | REPLACE_PYTHON= luma/luma.py | |
14 | INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PYSITELIB}/luma/plugins/browser | 14 | INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PYSITELIB}/luma/plugins/browser | |
15 | 15 | |||
16 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-qt3-base, py-ldap | 16 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-qt3-base, py-ldap | |
17 | 17 | |||
18 | SUBST_CLASSES+= luma | 18 | SUBST_CLASSES+= luma | |
19 | SUBST_STAGE.luma= pre-configure | 19 | SUBST_STAGE.luma= pre-configure | |
20 | SUBST_FILES.luma= luma/luma.py | 20 | SUBST_FILES.luma= luma/luma.py | |
21 | SUBST_SED.luma= -e "s|@PATH@|${PREFIX}/${PYSITELIB}/luma|" | 21 | SUBST_SED.luma= -e "s|@PATH@|${PREFIX}/${PYSITELIB}/luma|" | |
22 | SUBST_MESSAGE.luma= Adding library path to luma. | 22 | SUBST_MESSAGE.luma= Adding library path to luma. | |
23 | 23 | |||
24 | post-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 | |
25 | pre-build: | 31 | pre-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/ | |
31 | post-install: | 37 | post-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" |
@@ -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 | |||
3 | SHA1 (luma-3.0.7.zip) = 6b82ddc1ac5948b02a2843c3a4dd76cf6c797494 | 3 | SHA1 (luma-3.0.7.zip) = 6b82ddc1ac5948b02a2843c3a4dd76cf6c797494 | |
4 | RMD160 (luma-3.0.7.zip) = 30577b1afae57734c4e1b7fdff0dfc4fd7543001 | 4 | RMD160 (luma-3.0.7.zip) = 30577b1afae57734c4e1b7fdff0dfc4fd7543001 | |
5 | Size (luma-3.0.7.zip) = 815984 bytes | 5 | Size (luma-3.0.7.zip) = 815984 bytes | |
6 | SHA1 (patch-luma_luma.py) = fc0639d17d1b6fcdd97f1c8193b363ee748a6672 | 6 | SHA1 (patch-luma_luma.py) = fc8e0a171303cc85a5ef7c51d802480ffac8ee6e | |
7 | SHA1 (patch-setup.py) = 55809b4ccc654d6a8c75cc3c12f490718caf265f | 7 | SHA1 (patch-setup.py) = 3e6864a9f1d4a9a88ed47b431717ed37093b9024 |
@@ -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 | |||
3 | Adding luma library path to search path. | 3 | Adding luma library path to search path. | |
4 | Remove some variables that should be set by __init__.py, but aren't; | 4 | Remove some variables that should be set by __init__.py, but aren't; | |
5 | don't know why. | 5 | don'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 |
@@ -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 | |||
3 | Handle all non-Windows the same for pkgsrc, | 3 | Handle all non-Windows the same for pkgsrc, | |
4 | in particular do not handle OS X differently. | 4 | in particular do not handle OS X differently. | |
5 | 5 | |||
6 | Fix script name in install rule. | 6 | Fix script name in install rule. | |
7 | https://sourceforge.net/p/luma/bugs/47/ | 7 | https://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__': |