diff options
author | Sam James <sam@gentoo.org> | 2021-04-19 04:22:57 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-19 04:30:57 +0000 |
commit | 187c45574184de77c25933fe34dfedfb7002abec (patch) | |
tree | 204bce6df0ad5c3f2821b9559dda241c2da99beb /app-misc | |
parent | app-misc/cdargs: port to EAPI 7, remove HTML from patch(!) (diff) | |
download | gentoo-187c45574184de77c25933fe34dfedfb7002abec.tar.gz gentoo-187c45574184de77c25933fe34dfedfb7002abec.tar.bz2 gentoo-187c45574184de77c25933fe34dfedfb7002abec.zip |
app-misc/hddled: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/hddled/hddled-0.3.ebuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app-misc/hddled/hddled-0.3.ebuild b/app-misc/hddled/hddled-0.3.ebuild index 97557da00d47..2e4b5b8cf0bb 100644 --- a/app-misc/hddled/hddled-0.3.ebuild +++ b/app-misc/hddled/hddled-0.3.ebuild @@ -1,13 +1,14 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 inherit toolchain-funcs DESCRIPTION="Show hard disk activity using the scroll lock LED" HOMEPAGE="http://members.optusnet.com.au/foonly/whirlpool/code/" SRC_URI="mirror://gentoo/${P}.c.xz" +S="${WORKDIR}" LICENSE="Unlicense" SLOT="0" @@ -17,22 +18,23 @@ IUSE="X" DEPEND="X? ( x11-libs/libX11 )" RDEPEND="${DEPEND}" -S=${WORKDIR} +src_prepare() { + default -src_unpack() { - unpack ${A} mv ${P}.c ${PN}.c || die } src_compile() { - $(tc-getCC) ${CFLAGS} -o ${PN} ${PN}.c ${LDFLAGS} || die + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ${PN} ${PN}.c ${LDFLAGS} || die + if use X ; then - $(tc-getCC) ${CFLAGS} -DX -lX11 -o x${PN} ${PN}.c ${LDFLAGS} || die + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DX -lX11 -o x${PN} ${PN}.c ${LDFLAGS} || die fi } src_install() { dobin ${PN} + if use X ; then dobin x${PN} elog "X version was renamed to x${PN}" |