From a4d727cb7a72164ad132be3b393c587fec84b02f Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 4 Jul 2023 21:42:01 -0400 Subject: [PATCH] dispcalGUI: update to 3.9.11, replace with python3 fork --- srcpkgs/DisplayCAL/template | 25 +++++++++++++++++++ srcpkgs/dispcalGUI | 1 + srcpkgs/dispcalGUI/patches/error.patch | 33 -------------------------- srcpkgs/dispcalGUI/template | 25 ------------------- srcpkgs/dispcalGUI/update | 1 - 5 files changed, 26 insertions(+), 59 deletions(-) create mode 100644 srcpkgs/DisplayCAL/template create mode 120000 srcpkgs/dispcalGUI delete mode 100644 srcpkgs/dispcalGUI/patches/error.patch delete mode 100644 srcpkgs/dispcalGUI/template delete mode 100644 srcpkgs/dispcalGUI/update diff --git a/srcpkgs/DisplayCAL/template b/srcpkgs/DisplayCAL/template new file mode 100644 index 00000000000000..962d66e29bf68a --- /dev/null +++ b/srcpkgs/DisplayCAL/template @@ -0,0 +1,25 @@ +# Template file for 'DisplayCAL' +pkgname=DisplayCAL +version=3.9.11 +revision=1 +build_style=python3-module +hostmakedepends="python3" +makedepends="python3-devel libXxf86vm-devel libXinerama-devel libXrandr-devel" +depends="python3-dbus python3-numpy wxPython argyllcms" +short_desc="Display Calibration and Characterization" +maintainer="lemmi " +license="GPL-3.0-or-later" +homepage="https://github.com/eoyilmaz/displaycal-py3" +distfiles="https://github.com/eoyilmaz/displaycal-py3/archive/refs/tags/${version}.tar.gz" +checksum=7769d19551c228d797fd98cb2469730cee84ff27bd0bf5d0463e191753921a5e + +pre_configure() { + vsed -i misc/displaycal-vrml-to-x3d-converter.desktop \ + -e 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' +} + +dispcalGUI_package() { + build_style=meta + short_desc+=" (transitional dummy package)" + depends="${sourcepkg}>=${version}_${revision}" +} diff --git a/srcpkgs/dispcalGUI b/srcpkgs/dispcalGUI new file mode 120000 index 00000000000000..7b2ae7fe8eb1eb --- /dev/null +++ b/srcpkgs/dispcalGUI @@ -0,0 +1 @@ +DisplayCAL \ No newline at end of file diff --git a/srcpkgs/dispcalGUI/patches/error.patch b/srcpkgs/dispcalGUI/patches/error.patch deleted file mode 100644 index 169fc528b138ee..00000000000000 --- a/srcpkgs/dispcalGUI/patches/error.patch +++ /dev/null @@ -1,33 +0,0 @@ -Reason: error(3) does not exist on musl, and on glibc the signature -is (int, int, char*, ...) and not (char*, ...). -Therefore the current code either results in garbled output or -doesn't work at all. Replace it with a simple printf. - ---- ---- a/DisplayCAL/RealDisplaySizeMM.c 2018-07-25 16:47:01.000000000 +0200 -+++ b/DisplayCAL/RealDisplaySizeMM.c 2018-07-25 16:47:01.000000000 +0200 -@@ -822,13 +822,13 @@ - sprintf(desc1, "_ICC_PROFILE_%d",disps[ndisps]->uscreen); - - if ((disps[ndisps]->icc_atom = XInternAtom(mydisplay, desc1, False)) == None) -- error("Unable to intern atom '%s'",desc1); -+ fprintf(stderr, "Unable to intern atom '%s'",desc1); - - debugrr2((errout,"Root atom '%s'\n",desc1)); - - /* Create the atom of the output that may contain the associated ICC profile */ - if ((disps[ndisps]->icc_out_atom = XInternAtom(mydisplay, "_ICC_PROFILE", False)) == None) -- error("Unable to intern atom '%s'","_ICC_PROFILE"); -+ fprintf(stderr, "Unable to intern atom '%s'","_ICC_PROFILE"); - - /* Grab the EDID from the output */ - { -@@ -993,7 +993,7 @@ - sprintf(desc1, "_ICC_PROFILE_%d",disps[i]->uscreen); - - if ((disps[i]->icc_atom = XInternAtom(mydisplay, desc1, False)) == None) -- error("Unable to intern atom '%s'",desc1); -+ fprintf(stderr, "Unable to intern atom '%s'",desc1); - - /* See if we can locate the EDID of the monitor for this screen */ - for (j = 0; j < 2; j++) { diff --git a/srcpkgs/dispcalGUI/template b/srcpkgs/dispcalGUI/template deleted file mode 100644 index 05086b97e5a26c..00000000000000 --- a/srcpkgs/dispcalGUI/template +++ /dev/null @@ -1,25 +0,0 @@ -# Template file for 'dispcalGUI' -pkgname=dispcalGUI -version=3.8.9.3 -revision=5 -_name="DisplayCAL" -build_style=python2-module -hostmakedepends="python" -makedepends="python-devel libXxf86vm-devel libXinerama-devel libXrandr-devel" -depends="python-dbus python-numpy wxPython argyllcms" -short_desc="Display Calibration and Characterization" -maintainer="lemmi " -license="GPL-3.0-or-later" -homepage="https://displaycal.net/" -changelog="https://displaycal.net/CHANGES.html" -distfiles="${SOURCEFORGE_SITE}/dispcalgui/${_name}-${version}.tar.gz" -checksum=7c34dfbd9f66f24f1d4c88de4a5a0de688aad719f095874b6259637d30893bea - -pre_configure() { - sed -i 's|MimeType=model/vrml;x-world/x-vrml;|MimeType=model/vrml;|' misc/displaycal-vrml-to-x3d-converter.desktop -} - -post_install() { - find ${DESTDIR}/usr/ -exec chmod a+r \{\} + - find ${DESTDIR}/usr/ -type d -exec chmod a+x \{\} + -} diff --git a/srcpkgs/dispcalGUI/update b/srcpkgs/dispcalGUI/update deleted file mode 100644 index 6942393945c360..00000000000000 --- a/srcpkgs/dispcalGUI/update +++ /dev/null @@ -1 +0,0 @@ -pkgname="${_name}"