summaryrefslogtreecommitdiff
path: root/app-misc/hddled
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /app-misc/hddled
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'app-misc/hddled')
-rw-r--r--app-misc/hddled/Manifest2
-rw-r--r--app-misc/hddled/hddled-0.3.ebuild16
2 files changed, 10 insertions, 8 deletions
diff --git a/app-misc/hddled/Manifest b/app-misc/hddled/Manifest
index aa853a189c27..f801cd73d61e 100644
--- a/app-misc/hddled/Manifest
+++ b/app-misc/hddled/Manifest
@@ -1,3 +1,3 @@
DIST hddled-0.3.c.xz 3108 BLAKE2B eb7f2ab61d1969fe0f6ee3a8bebd7346b5cabcbb8a432a9c8c802289dc022efab09e2ca627915c9d2aacaeac8e6519524b9d77d34141850de7693778e825fba8 SHA512 9f535557aff78d3c9693a8d34810a768e8306de73841ba0d0a928a5d205a8a5faf632a9bf51db8763b5d8d2b3de73ee6f06af62f1a0025b0912c7c18133cdf19
-EBUILD hddled-0.3.ebuild 769 BLAKE2B 2b974309f60b7e4d288ffe8b6d6daaba58536dfa49dff4a53824b84920b66776818cd6a19227401ed4cde8899c3cbaa9aefd7902c5d18da46a0096a3a8ddd2ef SHA512 6126294072c6f224c8a44cf6c1218c22937a433155d116e81ab028565eb758d39b60f4a20e2c0dc8fc4c95ede2dbc56916009b98fda841156d4dbb24e8c9ec49
+EBUILD hddled-0.3.ebuild 791 BLAKE2B 96af6b998f1b8f932826bd45f5d0c25e9c7a43fafe3378c16e6fa5335bbe0eaa8b15056556b6246bcc3d3ee75f51a7c0ee13e902f896c98bef73411d1f00f49f SHA512 30e94d507f881511744a8e5af258130b713c02186f944026e134ffc7631c204f5d70ed00253651aec48b4d1b9064e53531f0e79312f727c1ff5c2d3d67dcf353
MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84
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}"