diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/redshift |
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/redshift')
-rw-r--r-- | x11-misc/redshift/Manifest | 5 | ||||
-rw-r--r-- | x11-misc/redshift/metadata.xml | 18 | ||||
-rw-r--r-- | x11-misc/redshift/redshift-1.11-r1.ebuild | 86 |
3 files changed, 109 insertions, 0 deletions
diff --git a/x11-misc/redshift/Manifest b/x11-misc/redshift/Manifest new file mode 100644 index 000000000000..52eb3164ee45 --- /dev/null +++ b/x11-misc/redshift/Manifest @@ -0,0 +1,5 @@ +DIST redshift-1.11.tar.gz 543804 SHA256 a89cee0dc822fa2bfda0703d8ecedeccc08da3aebdf1880593f28da81c3dc879 SHA512 bcdb4c120efec3955f4f91f1290db0679e987e25d6610bd90ee8540a96bb11338e36b10680736490ea0b7e9eca5bc195b51767a5badf0b80495dc3da44c4ed8c WHIRLPOOL c8bb70fde237bc7fc841d9272c029fe92c7ad564711a377a578cb6c126ae5a24d2756d3df3dc2de8053738301170040284c65a5e1da66fb29755a8e4a4bf5f17 +EBUILD redshift-1.11-r1.ebuild 1930 SHA256 ba603bd673955c5ff273e932ca49a98746d05d6894e971482194defbf9ad8787 SHA512 4ef6dd14ff5fc6ed77eaffde1d8ff31a3c8a3f042c5d3f21cd4a79424136397685d537780649f712755ff77a2a2a85a0c0d40f76f89afd563bdcd882cd11099f WHIRLPOOL b34c46968e997eafc3507542b395c4b351f5922bb19029bbc910b5e63ea1645349d98673ebac814ccb921082565912f029e07c4f66900de56d288995a7ec3fac +MISC ChangeLog 3858 SHA256 eec83d4d1bd3db69c9a654c8093ab51c348d5b6b8720780d2342af8cbe0f2d1e SHA512 9f6c956392b872781e4a46808593fd50a5a703ae00315dc5ad6d337d2ab80c1fb0903904baa5ed05790cb67a6f55f750759c6c47f2b24546de11a124d327bcc0 WHIRLPOOL e88a7ccc0b4b3e149a4951d9faa39e9187b8d3f47983a4a2a373bdbd125fc6252cf1b93c853014170056e282205c436d17b2f95749772c18db352f669c8cf43c +MISC ChangeLog-2015 5462 SHA256 1afe863ffd2837a7c818dc886beadf7f05051a1a270af53ea81c131fe304c126 SHA512 e456b75e9c8a68d7a71f37773f0d6c468bb5e51a6dd2e3d6d8f96a9550555909b8ebf10fdc6a0a57d6a05598d87861954ba27caae89b285ed75f7de1e8b51ac9 WHIRLPOOL 3f95cae2890b567b965046c4c49fe82272f4e90e8b6203a62c6a7b88eecb2c1a345caee48d15f02e7462774f6562b7a5e97e76a8256938071669f474202fdb76 +MISC metadata.xml 679 SHA256 ca6150279798b6b6f8f7995045e1fd31650624dcc958b40ee832fd53c76ce740 SHA512 45aa40561fbf6b96d68f46f1773eebfdfa60c07a6e3cb85272523f7e7663b10bfe55ede7c95a3377acee87e40dbb9a0c771c6c53352f9a81629e9bc6e30f56d7 WHIRLPOOL 0d72cce1090431f4b4e87cabb2c14470fed083f4294a6f0d18023bfd63ffb3f870e355fa3f0400cd6a18d351d0a92bc1ab335d2a49fbf7fa4e75293db5e0a409 diff --git a/x11-misc/redshift/metadata.xml b/x11-misc/redshift/metadata.xml new file mode 100644 index 000000000000..53984fc30ef2 --- /dev/null +++ b/x11-misc/redshift/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sping@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>desktop-misc@gentoo.org</email> + <name>Gentoo Desktop Miscellaneous Project</name> + </maintainer> + <use> + <flag name="appindicator">Enable usage of <pkg>dev-libs/libappindicator</pkg> to export menu options in to unity and KDE 5</flag> + <flag name="geoclue">Control dependency on <pkg>app-misc/geoclue</pkg></flag> + </use> + <upstream> + <remote-id type="github">jonls/redshift</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/redshift/redshift-1.11-r1.ebuild b/x11-misc/redshift/redshift-1.11-r1.ebuild new file mode 100644 index 000000000000..f41d95dbc2ff --- /dev/null +++ b/x11-misc/redshift/redshift-1.11-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python3_{4,5,6} ) + +inherit 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 x86" +IUSE="appindicator geoclue gtk nls" + +COMMON_DEPEND=">=x11-libs/libX11-1.4 + x11-libs/libXxf86vm + x11-libs/libxcb + x11-libs/libdrm + 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 ) + appindicator? ( dev-libs/libappindicator ) +" +REQUIRED_USE="gtk? ( ${PYTHON_REQUIRED_USE} )" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use gtk && python_setup + + econf \ + --disable-silent-rules \ + $(use_enable nls) \ + --enable-drm \ + --enable-randr \ + --enable-vidmode \ + --disable-wingdi \ + \ + --disable-corelocation \ + --disable-geoclue \ + $(use_enable geoclue geoclue2) \ + \ + $(use_enable gtk gui) \ + --with-systemduserunitdir="$(systemd_get_userunitdir)" \ + --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 + fi +} + +pkg_preinst() { + use gtk && gnome2_icon_savelist +} + +pkg_postinst() { + use gtk && gnome2_icon_cache_update +} + +pkg_postrm() { + use gtk && gnome2_icon_cache_update +} |