commit: 187c45574184de77c25933fe34dfedfb7002abec Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Apr 19 04:22:57 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Apr 19 04:30:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=187c4557
app-misc/hddled: port to EAPI 7 Signed-off-by: Sam James <sam <AT> gentoo.org> app-misc/hddled/hddled-0.3.ebuild | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app-misc/hddled/hddled-0.3.ebuild b/app-misc/hddled/hddled-0.3.ebuild index 97557da00d4..2e4b5b8cf0b 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}"
