pkgsrc-Changes archive

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

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   rhialto
Date:           Sun Jan 26 12:55:01 UTC 2020

Modified Files:
        pkgsrc/finance/moneyguru: Makefile distinfo
        pkgsrc/geography/qgis: Makefile
        pkgsrc/sysutils/dupeguru: Makefile distinfo
Added Files:
        pkgsrc/finance/moneyguru/patches: patch-Makefile patch-build.py
        pkgsrc/sysutils/dupeguru/patches: patch-Makefile patch-build.py

Log Message:
Adjust to python-versioned py-qt5 and/or x11/py-qt5-qscintilla files.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/finance/moneyguru/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/finance/moneyguru/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/finance/moneyguru/patches/patch-Makefile \
    pkgsrc/finance/moneyguru/patches/patch-build.py
cvs rdiff -u -r1.82 -r1.83 pkgsrc/geography/qgis/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/sysutils/dupeguru/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/dupeguru/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/dupeguru/patches/patch-Makefile \
    pkgsrc/sysutils/dupeguru/patches/patch-build.py

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

Modified files:

Index: pkgsrc/finance/moneyguru/Makefile
diff -u pkgsrc/finance/moneyguru/Makefile:1.24 pkgsrc/finance/moneyguru/Makefile:1.25
--- pkgsrc/finance/moneyguru/Makefile:1.24      Sat Nov  2 16:08:47 2019
+++ pkgsrc/finance/moneyguru/Makefile   Sun Jan 26 12:55:00 2020
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2019/11/02 16:08:47 rillig Exp $
+# $NetBSD: Makefile,v 1.25 2020/01/26 12:55:00 rhialto Exp $
 
 DISTNAME=      moneyguru-src-2.11.0
 PKGNAME=       ${DISTNAME:S/-src//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    finance
 MASTER_SITES=  https://download.hardcoded.net/
 
@@ -40,8 +40,10 @@ BASE_ARCH=   ${MACHINE_ARCH}
 
 PLIST_SUBST+=  BASE_ARCH=${BASE_ARCH:Q}
 
+MAKE_ENV+=     PYVERSSUFFIX=${PYVERSSUFFIX}
+
 do-build:
-       cd ${WRKSRC} && ${PYTHONBIN} build.py
+       cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${PYTHONBIN} build.py
        ${CHMOD} +x ${WRKSRC}/run.py
 
 do-install:

Index: pkgsrc/finance/moneyguru/distinfo
diff -u pkgsrc/finance/moneyguru/distinfo:1.10 pkgsrc/finance/moneyguru/distinfo:1.11
--- pkgsrc/finance/moneyguru/distinfo:1.10      Mon Sep  4 14:45:43 2017
+++ pkgsrc/finance/moneyguru/distinfo   Sun Jan 26 12:55:00 2020
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.10 2017/09/04 14:45:43 wiz Exp $
+$NetBSD: distinfo,v 1.11 2020/01/26 12:55:00 rhialto Exp $
 
 SHA1 (moneyguru-src-2.11.0.tar.gz) = f3c787c45f5057d8f348a0c37b2da010f4444057
 RMD160 (moneyguru-src-2.11.0.tar.gz) = 8e04b57bd3100ce28fb003c528000463f9d0eb87
 SHA512 (moneyguru-src-2.11.0.tar.gz) = fae1c8140ed36f3bd33a7533938ba59bffeda898932c005c5a5e115d6108dc43a6f53cc65608340fd5501945b13604d136b8ac083d2daa3876bdc070d619c022
 Size (moneyguru-src-2.11.0.tar.gz) = 2658749 bytes
+SHA1 (patch-Makefile) = 1dced1ca961e74e5adcb2f7013dee04efd78d44e
+SHA1 (patch-build.py) = e7084efd4ba8543c4fd5f93cddde7a840bf19d27

Index: pkgsrc/geography/qgis/Makefile
diff -u pkgsrc/geography/qgis/Makefile:1.82 pkgsrc/geography/qgis/Makefile:1.83
--- pkgsrc/geography/qgis/Makefile:1.82 Sat Jan 18 21:49:33 2020
+++ pkgsrc/geography/qgis/Makefile      Sun Jan 26 12:55:01 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.82 2020/01/18 21:49:33 jperkin Exp $
+# $NetBSD: Makefile,v 1.83 2020/01/26 12:55:01 rhialto Exp $
 
 DISTNAME=      qgis-3.8.3
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    geography
 MASTER_SITES=  https://qgis.org/downloads/
 EXTRACT_SUFX=  .tar.bz2
@@ -36,11 +36,18 @@ SUBST_CLASSES+=                     xapple
 SUBST_STAGE.xapple=            pre-configure
 SUBST_MESSAGE.xapple=          Disabling APPLE App in cmake scripts
 xapple_FIND_CMD=               cd ${WRKSRC} && \
-       find . -name '*.cmake' -o -name CMakeLists.txt
+                               find . -name '*.cmake' -o -name CMakeLists.txt
 SUBST_FILES.xapple=            ${xapple_FIND_CMD:sh}
 SUBST_SED.xapple+=             -e 's,APPLE,XAPPLE,'
 SUBST_SED.xapple+=             -e 's,MACOSX_BUNDLE ,,'
 
+SUBST_CLASSES+=                        pyqt
+SUBST_STAGE.pyqt=              pre-configure
+SUBST_MESSAGE.pyqt=            Use correct python version for PyQt5 programs
+SUBST_FILES.pyqt=              cmake/PyQtMacros.cmake
+SUBST_SED.pyqt+=               -e '/^SET/s,pyuic5,&-${PYVERSSUFFIX},'
+SUBST_SED.pyqt+=               -e '/^SET/s,pyrcc5,&-${PYVERSSUFFIX},'
+
 CMAKE_ARGS+=   -DWITH_QTWEBKIT=FALSE
 CMAKE_ARGS+=   -DQWT_DIR=${QWT_DIR}
 # Useful for package development:

Index: pkgsrc/sysutils/dupeguru/Makefile
diff -u pkgsrc/sysutils/dupeguru/Makefile:1.7 pkgsrc/sysutils/dupeguru/Makefile:1.8
--- pkgsrc/sysutils/dupeguru/Makefile:1.7       Mon Nov  4 21:28:44 2019
+++ pkgsrc/sysutils/dupeguru/Makefile   Sun Jan 26 12:55:00 2020
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.7 2019/11/04 21:28:44 rillig Exp $
+# $NetBSD: Makefile,v 1.8 2020/01/26 12:55:00 rhialto Exp $
 
 DISTNAME=      dupeguru-src-4.0.3
 PKGNAME=       ${DISTNAME:S/-src//}
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    sysutils
 MASTER_SITES=  https://download.hardcoded.net/
 
@@ -29,10 +29,12 @@ USE_TOOLS=          gmake pax
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 REPLACE_PYTHON+=               qt/run_template.py
 
+MAKE_ENV+=     PYVERSSUFFIX=${PYVERSSUFFIX}
+
 INSTALLATION_DIRS=     bin share/applications share/dupeguru
 
 do-build:
-       cd ${WRKSRC} && ${PYTHONBIN} build.py
+       cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${PYTHONBIN} build.py
        ${CHMOD} +x ${WRKSRC}/run.py
 
 do-install:

Index: pkgsrc/sysutils/dupeguru/distinfo
diff -u pkgsrc/sysutils/dupeguru/distinfo:1.2 pkgsrc/sysutils/dupeguru/distinfo:1.3
--- pkgsrc/sysutils/dupeguru/distinfo:1.2       Wed Mar 14 17:11:26 2018
+++ pkgsrc/sysutils/dupeguru/distinfo   Sun Jan 26 12:55:00 2020
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.2 2018/03/14 17:11:26 wiz Exp $
+$NetBSD: distinfo,v 1.3 2020/01/26 12:55:00 rhialto Exp $
 
 SHA1 (dupeguru-src-4.0.3.tar.gz) = a794780e187a36d45c384395e9bd8c2b8f5018bf
 RMD160 (dupeguru-src-4.0.3.tar.gz) = 5cd2b7f93276fcd8f09b699cfec5246f7dc5abed
 SHA512 (dupeguru-src-4.0.3.tar.gz) = dc8a5a122ad1d3d235825a498fb75b192566d3b5a33382ebb0002a361428af5cc453b143002ea3f57a9cb6ee30ce49f0b9f5a54bce2a90364fb1b92e102a289a
 Size (dupeguru-src-4.0.3.tar.gz) = 686580 bytes
+SHA1 (patch-Makefile) = 809ee7de40622a0e348df60b1251f2bed3c49b97
+SHA1 (patch-build.py) = 074a9adb4e48c07b637abe9183d49ece7d5520dc
 SHA1 (patch-hscommon_sphinxgen.py) = cd558d14733d394e7adf2b6b0c826dda5eed689f
 SHA1 (patch-qt_platform.py) = e97e226b53f57f8c4e9bf21f4726e024bb0b2d67

Added files:

Index: pkgsrc/finance/moneyguru/patches/patch-Makefile
diff -u /dev/null pkgsrc/finance/moneyguru/patches/patch-Makefile:1.1
--- /dev/null   Sun Jan 26 12:55:01 2020
+++ pkgsrc/finance/moneyguru/patches/patch-Makefile     Sun Jan 26 12:55:01 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2020/01/26 12:55:01 rhialto Exp $
+
+pyrcc5 is python-version-specific.
+
+--- Makefile.orig      2017-08-23 23:26:50.000000000 +0000
++++ Makefile
+@@ -71,7 +71,7 @@ endif
+       $(VENV_PYTHON) build.py --doc
+ 
+ qt/mg_rc.py : qt/mg.qrc
+-      pyrcc5 qt/mg.qrc > qt/mg_rc.py
++      pyrcc5-${PYVERSSUFFIX} qt/mg.qrc > qt/mg_rc.py
+ 
+ i18n: $(mofiles)
+ 
Index: pkgsrc/finance/moneyguru/patches/patch-build.py
diff -u /dev/null pkgsrc/finance/moneyguru/patches/patch-build.py:1.1
--- /dev/null   Sun Jan 26 12:55:01 2020
+++ pkgsrc/finance/moneyguru/patches/patch-build.py     Sun Jan 26 12:55:01 2020
@@ -0,0 +1,19 @@
+$NetBSD: patch-build.py,v 1.1 2020/01/26 12:55:01 rhialto Exp $
+
+pyrcc5 is python-version-specific.
+
+--- build.py.orig      2017-08-23 23:26:50.000000000 +0000
++++ build.py
+@@ -81,9 +81,10 @@ def clean():
+ def build_qt(dev):
+     qrc_path = op.join('qt', 'mg.qrc')
+     pyrc_path = op.join('qt', 'mg_rc.py')
+-    ret = print_and_do("pyrcc5 {} > {}".format(qrc_path, pyrc_path))
++    pyrcc5 = "pyrcc5-" + os.environ["PYVERSSUFFIX"]
++    ret = print_and_do(pyrcc5 +" {} > {}".format(qrc_path, pyrc_path))
+     if ret != 0:
+-        raise RuntimeError("pyrcc5 call failed with code {}. Aborting build".format(ret))
++        raise RuntimeError(pyrcc5 + " call failed with code {}. Aborting build".format(ret))
+     build_help()
+ 
+ def build_help():

Index: pkgsrc/sysutils/dupeguru/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/dupeguru/patches/patch-Makefile:1.1
--- /dev/null   Sun Jan 26 12:55:01 2020
+++ pkgsrc/sysutils/dupeguru/patches/patch-Makefile     Sun Jan 26 12:55:00 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2020/01/26 12:55:00 rhialto Exp $
+
+pyrcc5 is python-version-specific.
+
+--- Makefile.orig      2016-11-25 01:04:31.000000000 +0000
++++ Makefile
+@@ -54,7 +54,7 @@ build/help : | env
+       ./env/bin/python build.py --doc
+ 
+ qt/dg_rc.py : qt/dg.qrc
+-      pyrcc5 qt/dg.qrc > qt/dg_rc.py
++      pyrcc5-${PYVERSSUFFIX} qt/dg.qrc > qt/dg_rc.py
+ 
+ i18n: $(mofiles)
+ 
Index: pkgsrc/sysutils/dupeguru/patches/patch-build.py
diff -u /dev/null pkgsrc/sysutils/dupeguru/patches/patch-build.py:1.1
--- /dev/null   Sun Jan 26 12:55:01 2020
+++ pkgsrc/sysutils/dupeguru/patches/patch-build.py     Sun Jan 26 12:55:00 2020
@@ -0,0 +1,16 @@
+$NetBSD: patch-build.py,v 1.1 2020/01/26 12:55:00 rhialto Exp $
+
+pyrcc5 is python-version-specific.
+
+--- build.py.orig      2016-11-25 01:04:31.000000000 +0000
++++ build.py
+@@ -164,7 +164,8 @@ def build_qt(dev):
+     print("Building localizations")
+     build_localizations('qt')
+     print("Building Qt stuff")
+-    print_and_do("pyrcc5 {0} > {1}".format(op.join('qt', 'dg.qrc'), op.join('qt', 'dg_rc.py')))
++    pyrcc5 = "pyrcc5-" + os.environ["PYVERSSUFFIX"]
++    print_and_do(pyrcc5 +" {0} > {1}".format(op.join('qt', 'dg.qrc'), op.join('qt', 'dg_rc.py')))
+     fix_qt_resource_file(op.join('qt', 'dg_rc.py'))
+     build_help()
+     print("Creating the run.py file")



Home | Main Index | Thread Index | Old Index