From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-laptop/i8kutils/i8kutils-1.33-r1.ebuild | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 app-laptop/i8kutils/i8kutils-1.33-r1.ebuild (limited to 'app-laptop/i8kutils/i8kutils-1.33-r1.ebuild') diff --git a/app-laptop/i8kutils/i8kutils-1.33-r1.ebuild b/app-laptop/i8kutils/i8kutils-1.33-r1.ebuild new file mode 100644 index 000000000000..cf870ed7fd3b --- /dev/null +++ b/app-laptop/i8kutils/i8kutils-1.33-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit systemd toolchain-funcs + +DESCRIPTION="Dell Inspiron and Latitude utilities" +HOMEPAGE="http://packages.debian.org/sid/i8kutils" +SRC_URI="mirror://debian/pool/main/i/${PN}/${P/-/_}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="examples tk" + +DEPEND="tk? ( dev-lang/tk )" +RDEPEND="${DEPEND}" + +DOCS=( README.i8kutils ) + +src_prepare() { + sed \ + -e '/^CC/d' \ + -e '/^CFLAGS/d' \ + -e 's: -g : $(LDFLAGS) :g' \ + -i Makefile || die + + tc-export CC +} + +src_install() { + dobin i8kbuttons i8kctl + doman i8kbuttons.1 i8kctl.1 + dosym /usr/bin/i8kctl /usr/bin/i8kfan + + use examples && dodoc -r examples + + newinitd "${FILESDIR}"/i8k.init-r1 i8k + newconfd "${FILESDIR}"/i8k.conf i8k + + if use tk; then + dobin i8kmon + doman i8kmon.1 + dodoc i8kmon.conf + systemd_dounit "${FILESDIR}"/i8kmon.service + else + cat >> "${ED}"/etc/conf.d/i8k <<- EOF + # i8kmon disabled because the package was installed without USE=tk + NOMON=1 + EOF + fi + +} -- cgit v1.2.3