From f0a4b8f148e0a55943319e3bcaee20d8e23867ca Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 15 Aug 2016 16:06:16 -0400 Subject: [PATCH] x11-misc/calise: 0.5.0_p20141108 version bump --- x11-misc/calise/Manifest | 1 + x11-misc/calise/calise-0.5.0_p20141108.ebuild | 58 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 x11-misc/calise/calise-0.5.0_p20141108.ebuild diff --git a/x11-misc/calise/Manifest b/x11-misc/calise/Manifest index 6b5807c..36426ef 100644 --- a/x11-misc/calise/Manifest +++ b/x11-misc/calise/Manifest @@ -1 +1,2 @@ DIST calise-0.4.2.tar.gz 102792 SHA256 fdc380fea57a10a22e3fc3a61f57ee988b56e144db29ac1ce79e76d4e2971551 SHA512 b08722083447780dbfe6a3614cf0891eed791819adc6c434b878c55cbad6fa122d3c2042274fe9acbc0c68a2acb3ca7835422ec6d2d1f867d6fd9ec806a4f750 WHIRLPOOL 6399b583c024ec8c0a507de941d5d3ce4dff895f261bf127f7bc8583e2a15af1d8db965b04458beb11c5c829dad917973c49a8f4f3fc2da2497fcd9a88879398 +DIST calise-calise-25dbdaf40529c9d3efdc6d5773ae6a8e714e3aec.zip 139098 SHA256 473780086eb30906985ad2303edcf4a80ab15152b6df3736c82c8f463e68993e SHA512 5c2d6092e81543d0e1f18bde18261e01790ccd837e0f8443928168ceff8334926b88f6cb2a225a102b4b7204dfbbb486abe7e183746883789248d8e9c2f3242e WHIRLPOOL e022164077786ff9247b372dbe4559938ad9b81aaa2094163ee7a8bbfaba4d336efa9fb2498e287155612cd71213d9c030f5aee8758c9bad28b64b7d7aa7a631 diff --git a/x11-misc/calise/calise-0.5.0_p20141108.ebuild b/x11-misc/calise/calise-0.5.0_p20141108.ebuild new file mode 100644 index 0000000..eafa341 --- /dev/null +++ b/x11-misc/calise/calise-0.5.0_p20141108.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit distutils-r1 linux-info systemd + +MY_P="${PN}-${PN}-25dbdaf40529c9d3efdc6d5773ae6a8e714e3aec" + +DESCRIPTION="Computes ambient brightness and sets screen's correct backlight using a webcam" +HOMEPAGE="http://calise.sourceforge.net/" +SRC_URI="https://sourceforge.net/code-snapshots/git/c/ca/${PN}/${PN}.git/${MY_P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/pyxdg[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + sci-astronomy/pyephem[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/python-distutils-extra[${PYTHON_USEDEP}] + dev-util/intltool + sys-kernel/linux-headers + x11-libs/libX11" + +CONFIG_CHECK="~BACKLIGHT_CLASS_DEVICE" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + + # Add missing trailing ; to desktop file. + sed -i 's/^\(Categories=Utility\)$/\1;/' \ + share/applications/calise.desktop.in || die + + # Fix up bashisms. + sed -i 's:&>/dev/null:2>\&1 >/dev/null:' \ + other/init_scripts/init.d/${PN}d || die +} + +src_install() { + distutils-r1_src_install + + doconfd other/init_scripts/conf.d/${PN}d + doinitd other/init_scripts/init.d/${PN}d + systemd_dounit other/systemd_scripts/${PN}d.service + + install -D -m755 other/pm-utils_scripts/53${PN}d "${D}"/usr/lib/pm-utils/sleep.d/53${PN}d +} + +pkg_postinst() { + einfo "Optional runtime dependency: dev-python/PyQt4 for GUI" +} -- 2.9.3