mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
app-misc/afetch: respect CFLAGS/LDFLAGS
Closes: https://bugs.gentoo.org/780762 Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit savedconfig toolchain-funcs
|
inherit savedconfig
|
||||||
|
|
||||||
DESCRIPTION="Simple system info written in C"
|
DESCRIPTION="Simple system info written in C"
|
||||||
HOMEPAGE="https://github.com/13-CF/afetch/"
|
HOMEPAGE="https://github.com/13-CF/afetch/"
|
||||||
@@ -14,16 +14,13 @@ SLOT="0"
|
|||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="savedconfig"
|
IUSE="savedconfig"
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake CC="$(tc-getCC)" DESTDIR="${ED}" PREFIX="${EPREFIX}"/usr afetch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
sed -e '/^CFLAGS/d' -e 's/LDFLAGS =/LDFLAGS +=/' -i Makefile || die
|
||||||
restore_config src/config.h
|
restore_config src/config.h
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
emake DESTDIR="${D}" PREFIX="/usr" install
|
||||||
save_config src/config.h
|
save_config src/config.h
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user