mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
dev-util/tinyxxd: respect user variables and add tests
The ebuild now properly honors CC, CFLAGS, LDFLAGS, EPREFIX. Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit edo toolchain-funcs
|
||||
|
||||
DESCRIPTION="Drop-in replacement and standalone version of xxd"
|
||||
HOMEPAGE="https://github.com/xyproto/tinyxxd"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
@@ -21,8 +23,21 @@ IUSE="xxd"
|
||||
|
||||
RDEPEND="xxd? ( !dev-util/xxd !app-editors/vim-core )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-fix-flags.patch )
|
||||
|
||||
src_compile() {
|
||||
export CFLAGS LDFLAGS
|
||||
tc-export CC
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
edo ./testfiles/test13.sh
|
||||
edo ./testfiles/test14.sh
|
||||
}
|
||||
|
||||
src_install(){
|
||||
default
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
|
||||
if use xxd; then
|
||||
dosym -r /usr/bin/tinyxxd /usr/bin/xxd
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user