summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-09-18 09:59:10 +0100
committerSam James <sam@gentoo.org>2023-09-18 09:59:20 +0100
commitbec0e5ce38d99d789194d7b14aadf9d0e074caca (patch)
tree2c47bcd5a9c7fe52cd3a559d4ba6990e76dfa6a0 /app-misc
parentapp-misc/beep: add 1.4.12 (diff)
downloadgentoo-bec0e5ce38d99d789194d7b14aadf9d0e074caca.tar.gz
gentoo-bec0e5ce38d99d789194d7b14aadf9d0e074caca.tar.bz2
gentoo-bec0e5ce38d99d789194d7b14aadf9d0e074caca.zip
app-misc/beep: respect CC/*FLAGS
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/beep/beep-1.4.12.ebuild33
1 files changed, 11 insertions, 22 deletions
diff --git a/app-misc/beep/beep-1.4.12.ebuild b/app-misc/beep/beep-1.4.12.ebuild
index 921d9410df5d..b05797a15faf 100644
--- a/app-misc/beep/beep-1.4.12.ebuild
+++ b/app-misc/beep/beep-1.4.12.ebuild
@@ -19,28 +19,17 @@ RESTRICT="test"
src_prepare() {
default
- sed -i -e "s#-D_FORTIFY_SOURCE=2##g;" GNUmakefile || die
-}
-
-src_compile() {
- emake \
- COMPILERS=gcc \
- COMPILER_gcc="$(tc-getCC)" \
- LINKER_gcc="$(tc-getCC)" \
- CFLAGS_gcc="${CFLAGS}" \
- LDFLAGS="${LDFLAGS}" \
- CPPFLAGS_gcc="" \
- all
-}
-
-src_test() {
- emake \
- COMPILERS=gcc \
- COMPILER_gcc="$(tc-getCC)" \
- LINKER_gcc="$(tc-getCC)" \
- CFLAGS_gcc="${CFLAGS}" \
- LDFLAGS="${LDFLAGS}" \
- check
+ cat <<-EOF > local.mk || die
+ CC=$(tc-getCC)
+ CFLAGS=${CFLAGS}
+ CPPFLAGS=${CPPFLAGS}
+ LDFLAGS=${LDFLAGS}
+ EOF
+
+ sed -i \
+ -e "s#-D_FORTIFY_SOURCE=2##g;" \
+ -e '/\-Werror)/d' \
+ GNUmakefile || die
}
src_install() {