From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DF8B91382C5 for ; Sun, 28 Mar 2021 00:57:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EDCAE041F; Sun, 28 Mar 2021 00:57:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28494E041F for ; Sun, 28 Mar 2021 00:57:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E2F8D340D87 for ; Sun, 28 Mar 2021 00:57:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E10C5D2 for ; Sun, 28 Mar 2021 00:57:11 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1616892791.d72033bcc282785c1a4b9ce4872e67e7b2d9aea3.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/redshift/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/redshift/redshift-1.12-r4.ebuild X-VCS-Directories: x11-misc/redshift/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: d72033bcc282785c1a4b9ce4872e67e7b2d9aea3 X-VCS-Branch: master Date: Sun, 28 Mar 2021 00:57:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ff99eef0-eba2-4b7a-a0ad-47e680b7d5ab X-Archives-Hash: 21f8ff496cd0ff193b0a8a2b91cfb572 commit: d72033bcc282785c1a4b9ce4872e67e7b2d9aea3 Author: Sebastian Pipping gentoo org> AuthorDate: Sun Mar 28 00:53:11 2021 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Sun Mar 28 00:53:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72033bc x11-misc/redshift: Fix compile for Clang Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.17, Repoman-3.0.2 x11-misc/redshift/redshift-1.12-r4.ebuild | 90 +++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) 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 00000000000..e7421556801 --- /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 eutils 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 +}