Diff hddled-0.3 with a hddled-0.3-r1

/usr/portage/app-misc/hddled/hddled-0.3-r1.ebuild 2023-10-09 14:52:28.800368333 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
inherit toolchain-funcs flag-o-matic
7 7

  
8 8
DESCRIPTION="Show hard disk activity using the scroll lock LED"
9 9
HOMEPAGE="http://members.optusnet.com.au/foonly/whirlpool/code/"
......
18 18
DEPEND="X? ( x11-libs/libX11 )"
19 19
RDEPEND="${DEPEND}"
20 20

  
21
src_prepare() {
22
	default
21
PATCHES=(
22
	"${FILESDIR}/${PN}-0.3-fix-missing-temp_failure_retry.patch"
23
)
23 24

  
25
src_prepare() {
24 26
	mv ${P}.c ${PN}.c || die
27
	default
25 28
}
26 29

  
27 30
src_compile() {
28
	$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ${PN} ${PN}.c ${LDFLAGS} || die
31
	if use elibc_musl ; then
32
		append-libs -largp
33
	fi
34

  
35
	$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ${PN} ${PN}.c ${LDFLAGS} ${LIBS} || die
29 36

  
30 37
	if use X ; then
31
		$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DX -lX11 -o x${PN} ${PN}.c ${LDFLAGS} || die
38
		$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -DX -lX11 -o x${PN} ${PN}.c ${LDFLAGS} ${LIBS} || die
32 39
	fi
33 40
}
34 41

  
Thank you!