summaryrefslogtreecommitdiff
path: root/media-gfx/displaycal-py3
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/displaycal-py3')
-rw-r--r--media-gfx/displaycal-py3/Manifest3
-rw-r--r--media-gfx/displaycal-py3/displaycal-py3-3.9.13_pre20240925.ebuild78
-rw-r--r--media-gfx/displaycal-py3/files/displaycal-py3-3.9.13_pre20240925-Fix-build.patch57
3 files changed, 138 insertions, 0 deletions
diff --git a/media-gfx/displaycal-py3/Manifest b/media-gfx/displaycal-py3/Manifest
index 89fcdaaa4a10..b7748da293c4 100644
--- a/media-gfx/displaycal-py3/Manifest
+++ b/media-gfx/displaycal-py3/Manifest
@@ -1,4 +1,7 @@
AUX displaycal-py3-3.9.10-python-3.11.patch 3134 BLAKE2B 3110f39ecab47eff46a97389c2164bfbb2b44f80fd30bb848856dae050738cd6590905b2b9ce603eb9d919f2811674b378b1562396b1437bea8247798868313f SHA512 98bb7ea8a0b29ffbb455f8666183489d1571bdcd1829398ce4535c7581f797582ed7c1a5035b2bdf9a0d19397ef14e5f8068ec2baf5078f64b614c901be48f33
+AUX displaycal-py3-3.9.13_pre20240925-Fix-build.patch 1802 BLAKE2B 54113c2ed486f35efc338843ce58ab4425d845dddacd38e7a017ae01acb1bb1d384503d6aec2c3ee551e9b13d0191231ded357d82b326617fc0def8a1e992dfc SHA512 253f6dfed9b3851df53a05035313f85c933bfdd96d7b14af1214f5f3005990710196a98d32fee2e8cb192520b1f5b32cfa9116ca7eb779bdea03164e55a02fbd
DIST DisplayCAL-3.9.10.tar.gz 10676033 BLAKE2B 94bfa3ac95bfc16788421fa5b9a31920c40da66d2875e4037b3b20b6792a1005ee9fea11b5325a94ffae845f56583647e42de9d4d7d96d149264a86e6d1158a6 SHA512 fc1b981925c6f4660557d8f0935a62d0112b39664b0c74cdb1a907e0e7b7e3f61ec76986fa2072f8ada1d105ebfa61bb116df75dc10f902ff545db3368634fc5
+DIST DisplayCAL-3.9.13_pre20240925.tar.gz 14027557 BLAKE2B 915ef1b74e26da9efdb2dbb70ac0920fdb773868d7cbfc9ef7be5e4d60b300fe22ff54a7d762e3ef901c0ea70e0ba073881df055fecfec38afc8df873879064b SHA512 82993dd4f922b2316954f29ec976851aecc263acbe0e01c1cc158013e04d829c0387b5440092a78bd61743cee416a3bc3cde905843dce9c8233eb18f68915184
EBUILD displaycal-py3-3.9.10-r3.ebuild 1635 BLAKE2B 21a1b93ab0c78fc50824f49e1e6a2e4704e9e4fcc6db91eef854c9d119528e5ddfbebafa597e614540aa8143d732925c311211a5d25b24f77d60f69d2c397fd7 SHA512 e85c78550a5eb370d14532aaaa33f2055f657856754b3067c83a51ea48ae5665405f067e0b979956aa5e56d689de819764858b26a76d60699189a1333791f752
+EBUILD displaycal-py3-3.9.13_pre20240925.ebuild 1903 BLAKE2B 90056c7e089bfa9e1d6b76b235af17b0fa5a958f382a32808c5ef044d0eb0f8febd11925637569436dc37e5042ab1b9c7923f7d3db2f73eb0aa416f4e13a18f8 SHA512 1ba9bd07b13f211e5562758fa63fc001d3e40cf344e697b5acfa45be1934e7813c855c6d466e6b7fce8d20b064128a8930bcf03f876ecbaf04d0e7bea50f9557
MISC metadata.xml 790 BLAKE2B aa3f32f061f4840bbc0e29c36e6154cc37b85a9fa76a92e7f69a32ccadef16fa5a9680266c35b51c3351c4f4d65e2e1659515550e2366c9c9516e8c26c049694 SHA512 d4fad45e53ac19ede7f26709878ff36b55906a4c642b1ce7ce2e49ef56a1285582700d07170f702263a3a99ea0bfa2c2cfbc842978f565291d3322fb9a6a5c0d
diff --git a/media-gfx/displaycal-py3/displaycal-py3-3.9.13_pre20240925.ebuild b/media-gfx/displaycal-py3/displaycal-py3-3.9.13_pre20240925.ebuild
new file mode 100644
index 000000000000..8602a8c66ea1
--- /dev/null
+++ b/media-gfx/displaycal-py3/displaycal-py3-3.9.13_pre20240925.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{9..12} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 xdg
+
+DESCRIPTION="Modernize the DisplayCAL code including Python 3 support"
+HOMEPAGE="https://github.com/eoyilmaz/displaycal-py3"
+
+MY_PN="DisplayCAL"
+MY_P="${MY_PN}-${PV}"
+MY_COMMIT="eda424388be5dc18f76b02f8d015d6b2ddafa174"
+SRC_URI="https://github.com/eoyilmaz/displaycal-py3/archive/${MY_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="test"
+
+PATCHES="${FILESDIR}/${P}-Fix-build.patch"
+
+DEPEND="
+ dev-python/build[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pychromecast[${PYTHON_USEDEP}]
+ dev-python/send2trash[${PYTHON_USEDEP}]
+ dev-python/zeroconf[${PYTHON_USEDEP}]
+ >=dev-python/wxpython-4.2.0[${PYTHON_USEDEP}]
+ dev-python/installer[${PYTHON_USEDEP}]
+ dev-python/certifi[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+ media-gfx/argyllcms
+ x11-libs/libXxf86vm"
+
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+ # Upstream build system is very sensitive to the build folder name
+ mv "${WORKDIR}/${PN}-${MY_COMMIT}" "${S}" || die
+}
+
+src_prepare() {
+ sed -e 's/license_file/license_files/g' -i setup.cfg || die
+
+ # remove dependency only imported if `sys.platform in ("darwin", "win32")`
+ sed -e '/certifi/d' -i setup.cfg || die
+
+ # Remove x-world MIME
+ sed -i 's|x-world/x-vrml;||g' \
+ misc/displaycal-vrml-to-x3d-converter.desktop || die
+
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Use Gentoo package name for doc folder
+ mv "${ED}/usr/share/doc/${MY_P}" "${ED}/usr/share/doc/${PF}" || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+}
diff --git a/media-gfx/displaycal-py3/files/displaycal-py3-3.9.13_pre20240925-Fix-build.patch b/media-gfx/displaycal-py3/files/displaycal-py3-3.9.13_pre20240925-Fix-build.patch
new file mode 100644
index 000000000000..6d7ad881054b
--- /dev/null
+++ b/media-gfx/displaycal-py3/files/displaycal-py3-3.9.13_pre20240925-Fix-build.patch
@@ -0,0 +1,57 @@
+diff --git a/DisplayCAL/__version__.py b/DisplayCAL/__version__.py
+new file mode 100644
+index 00000000..28eceb81
+--- /dev/null
++++ b/DisplayCAL/__version__.py
+@@ -0,0 +1,7 @@
++# generated by setup.py
++
++BUILD_DATE = "2022-11-21T22:56:25Z"
++LASTMOD = '2022-11-21T22:55:57Z'
++VERSION = (3, 9, 13)
++VERSION_BASE = (3, 9, 13)
++VERSION_STRING = '3.9.13_pre20240925'
+diff --git a/DisplayCAL/setup.py b/DisplayCAL/setup.py
+index 27425a18..43b6143b 100644
+--- a/DisplayCAL/setup.py
++++ b/DisplayCAL/setup.py
+@@ -384,9 +384,12 @@ def get_data(tgt_dir, key, pkgname=None, subkey=None, excludes=None):
+ data = []
+ for pth in files:
+ if not [exclude for exclude in excludes or [] if fnmatch(pth, exclude)]:
+- normalized_path = os.path.normpath(os.path.join(tgt_dir, os.path.dirname(pth)))
+- safe_path = [relpath(p, src_dir) for p in safe_glob(os.path.join(src_dir, pth))]
+- data.append((normalized_path, safe_path))
++ data.append(
++ (
++ os.path.normpath(os.path.join(tgt_dir, os.path.dirname(pth))),
++ safe_glob(os.path.join(src_dir, pth)),
++ )
++ )
+ return data
+
+
+@@ -659,20 +662,6 @@ def setup():
+ )
+ )
+
+- # metainfo / appdata.xml
+- data_files.append(
+- (
+- os.path.join(os.path.dirname(data), "metainfo"),
+- [
+- relpath(
+- os.path.normpath(
+- os.path.join(pydir, "..", "dist", f"{appstream_id}.appdata.xml")
+- ),
+- source_dir,
+- )
+- ],
+- )
+- )
+
+ if sys.platform not in ("darwin", "win32") or do_py2app or do_py2exe:
+ # Linux/Unix or py2app/py2exe
+--
+2.45.2
+