diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /x11-misc/redshift | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'x11-misc/redshift')
-rw-r--r-- | x11-misc/redshift/Manifest | 4 | ||||
-rw-r--r-- | x11-misc/redshift/redshift-1.12-r3.ebuild | 4 | ||||
-rw-r--r-- | x11-misc/redshift/redshift-1.12-r4.ebuild | 90 | ||||
-rw-r--r-- | x11-misc/redshift/redshift-1.12-r5.ebuild | 93 |
4 files changed, 188 insertions, 3 deletions
diff --git a/x11-misc/redshift/Manifest b/x11-misc/redshift/Manifest index e0123488b1c3..5611724f1855 100644 --- a/x11-misc/redshift/Manifest +++ b/x11-misc/redshift/Manifest @@ -1,3 +1,5 @@ DIST redshift-1.12.tar.gz 659019 BLAKE2B 09339a57fee192e3428ba4387cbea498f2f9f97eb75a418588cdda3289cfa7b7fada4cb299e983e9e6d2ffe3822c8235082e67bdfa542716b6dee9fc853a8dc1 SHA512 6763f6964b577fc146191af1c67a283a60df5bbdd3a74bfc94f66d5f9f3bef8835a479c6ec8a648b650b83a0e245928884a0f628606ace8c3f58d8319d35036f -EBUILD redshift-1.12-r3.ebuild 1962 BLAKE2B bc23252d309128bd8fdb779de0dda0b9f134fc94ffdf1048a009d6b6a4f2542916413e42574ff7501c6e53f909691efae2f6f803830b96b23df0172a5e0ea9a4 SHA512 6f99d5f613d7bfb5b5b95403c7fda042aece00e769e4377efeb2ec23a5079045a641aeaa34b8d4269311caf190479ecc13ae2a88fb1ef475d4ae471f627d1eba +EBUILD redshift-1.12-r3.ebuild 1955 BLAKE2B 9d6cbed8b116f5173c284fa6a58bb616ff00ac9af35c15945bf0615b2aeb90ee8084bb240e6a9ebe8c5cb79f846c58aeae35ed86cfd9bc7a3130f6ff3a437a9c SHA512 01007093bc7e4a841bb3eb66975c51d6f4e2a1b5ad664acf1885d26aa4914d8d4633f10e2d8cb051b1ebd07add545db4fa817d409b6761b6903d7c87af43f487 +EBUILD redshift-1.12-r4.ebuild 2032 BLAKE2B 6b3d47a74a0a93c8086b1db87a561467bcd238dd7af2e5551ce1576fb9e8758966694584590211ac377051b6b64c21f3221996a880902553b81cb7b3fa51c0d6 SHA512 b63ea2755fed84e4d5612ba13a36812e4b13b313cffbfa4a023a90158a9c6a04f009c0d70804380481b1fce805ce9809fc0a809f24fcff90245e6bd6de3f2d51 +EBUILD redshift-1.12-r5.ebuild 2117 BLAKE2B 0069596b439d23a6dd5a8a560b0c1097d8a156b4e5bbbaeeab71cb3280c5faf61b328b1e7aed8550fb2be8aef84050b531e6104029dfb4a61fbaa1560bbe4861 SHA512 3952dcf3f122b68843e4814dba639acb3c145ef0be2dca333edcdaac7c672eddd1acc716c4a91a6507c3615af560ec31e1624d2f075c753b13a96be8506a1231 MISC metadata.xml 521 BLAKE2B 48e57eaa040e23149fc74d4c0ea8a3f729ee821c4327c97d1b6d7c918217dd9c7fda01f550e30fc3860363363385deab066b783de7bb84d56b94bf86b11fbe36 SHA512 cac6d1cfa17f2ed7f697d39a56c5e322ffa70dec91db7319976ca459ac4250f52bd863236817dc26c5b13a6d68bd9db6146963a5ef9b261d607e5171970bd959 diff --git a/x11-misc/redshift/redshift-1.12-r3.ebuild b/x11-misc/redshift/redshift-1.12-r3.ebuild index 77d0ecae90f1..9a6d3445dca0 100644 --- a/x11-misc/redshift/redshift-1.12-r3.ebuild +++ b/x11-misc/redshift/redshift-1.12-r3.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 PYTHON_COMPAT=( python3_{7,8,9} ) -inherit systemd autotools eutils gnome2-utils python-r1 +inherit systemd autotools gnome2-utils python-r1 DESCRIPTION="A screen color temperature adjusting software" HOMEPAGE="http://jonls.dk/redshift/" diff --git a/x11-misc/redshift/redshift-1.12-r4.ebuild b/x11-misc/redshift/redshift-1.12-r4.ebuild new file mode 100644 index 000000000000..82c613726fe4 --- /dev/null +++ b/x11-misc/redshift/redshift-1.12-r4.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit flag-o-matic systemd autotools gnome2-utils python-r1 + +DESCRIPTION="A screen color temperature adjusting software" +HOMEPAGE="http://jonls.dk/redshift/" +SRC_URI="https://github.com/jonls/redshift/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="appindicator geoclue gtk nls" + +COMMON_DEPEND=">=x11-libs/libX11-1.4 + x11-libs/libXxf86vm + x11-libs/libxcb + x11-libs/libdrm + appindicator? ( dev-libs/libappindicator:3[introspection] ) + geoclue? ( app-misc/geoclue:2.0 dev-libs/glib:2 ) + gtk? ( ${PYTHON_DEPS} )" +RDEPEND="${COMMON_DEPEND} + gtk? ( dev-python/pygobject[${PYTHON_USEDEP}] + x11-libs/gtk+:3[introspection] + dev-python/pyxdg[${PYTHON_USEDEP}] )" +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.50 + nls? ( sys-devel/gettext ) +" +REQUIRED_USE="gtk? ( ${PYTHON_REQUIRED_USE} )" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use gtk && python_setup + + # Fix compile for Clang (bug #732438) + append-cflags -fPIE + + econf \ + $(use_enable nls) \ + --enable-drm \ + --enable-randr \ + --enable-vidmode \ + --disable-wingdi \ + \ + --disable-corelocation \ + $(use_enable geoclue geoclue2) \ + \ + $(use_enable gtk gui) \ + --with-systemduserunitdir="$(systemd_get_userunitdir)" \ + --enable-apparmor \ + --disable-quartz \ + --disable-ubuntu +} + +_impl_specific_src_install() { + emake DESTDIR="${D}" pythondir="$(python_get_sitedir)" \ + -C src/redshift-gtk install +} + +src_install() { + emake DESTDIR="${D}" UPDATE_ICON_CACHE=/bin/true install + + if use gtk; then + python_foreach_impl _impl_specific_src_install + python_replicate_script "${D}"/usr/bin/redshift-gtk + dosym redshift-gtk /usr/bin/gtk-redshift + + python_foreach_impl python_optimize + fi +} + +pkg_preinst() { + use gtk && gnome2_icon_savelist +} + +pkg_postinst() { + use gtk && gnome2_icon_cache_update +} + +pkg_postrm() { + use gtk && gnome2_icon_cache_update +} diff --git a/x11-misc/redshift/redshift-1.12-r5.ebuild b/x11-misc/redshift/redshift-1.12-r5.ebuild new file mode 100644 index 000000000000..edd82c298964 --- /dev/null +++ b/x11-misc/redshift/redshift-1.12-r5.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit flag-o-matic systemd autotools gnome2-utils python-r1 + +DESCRIPTION="A screen color temperature adjusting software" +HOMEPAGE="http://jonls.dk/redshift/" +SRC_URI="https://github.com/jonls/redshift/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="appindicator geoclue gtk nls" + +COMMON_DEPEND=">=x11-libs/libX11-1.4 + x11-libs/libXxf86vm + x11-libs/libxcb + x11-libs/libdrm + appindicator? ( dev-libs/libappindicator:3[introspection] ) + geoclue? ( app-misc/geoclue:2.0 dev-libs/glib:2 ) + gtk? ( ${PYTHON_DEPS} )" +RDEPEND="${COMMON_DEPEND} + gtk? ( dev-python/pygobject[${PYTHON_USEDEP}] + x11-libs/gtk+:3[introspection] + dev-python/pyxdg[${PYTHON_USEDEP}] )" +DEPEND="${COMMON_DEPEND} + >=dev-util/intltool-0.50 + nls? ( sys-devel/gettext ) +" +REQUIRED_USE="gtk? ( ${PYTHON_REQUIRED_USE} )" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use gtk && python_setup + + # Fix compile for Clang (bug #732438) + append-cflags -fPIE + + econf \ + $(use_enable nls) \ + --enable-drm \ + --enable-randr \ + --enable-vidmode \ + --disable-wingdi \ + \ + --disable-corelocation \ + $(use_enable geoclue geoclue2) \ + \ + $(use_enable gtk gui) \ + --with-systemduserunitdir="$(systemd_get_userunitdir)" \ + --enable-apparmor \ + --disable-quartz \ + --disable-ubuntu +} + +_impl_specific_src_install() { + emake DESTDIR="${D}" pythondir="$(python_get_sitedir)" \ + -C src/redshift-gtk install +} + +src_install() { + emake DESTDIR="${D}" UPDATE_ICON_CACHE=/bin/true install + + if use gtk; then + python_foreach_impl _impl_specific_src_install + python_replicate_script "${D}"/usr/bin/redshift-gtk + dosym redshift-gtk /usr/bin/gtk-redshift + + python_foreach_impl python_optimize + + # https://bugs.gentoo.org/784281 + mv "${D}"/usr/share/{appdata,metainfo}/ || die + fi +} + +pkg_preinst() { + use gtk && gnome2_icon_savelist +} + +pkg_postinst() { + use gtk && gnome2_icon_cache_update +} + +pkg_postrm() { + use gtk && gnome2_icon_cache_update +} |