app-misc/beep: bump to v1.4.9
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 25 Mar 2020 17:30:47 +0000 (18:30 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 25 Mar 2020 17:30:59 +0000 (18:30 +0100)
Bug: https://bugs.gentoo.org/659338
Closes: https://bugs.gentoo.org/684600
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
app-misc/beep/Manifest
app-misc/beep/beep-1.4.9.ebuild [new file with mode: 0644]

index 39eda21e98a610e79cc7a56bb82031a165e964a5..72bbfc63254e2128c80766e2c88a9f3941a57f1d 100644 (file)
@@ -1 +1,2 @@
 DIST beep-1.3.tar.gz 19344 BLAKE2B 4f9cf12f6983eeb53502fd85e5e1d428e1c1af481f8f424f6ae18cbe104462e8fdcc96670a72daa8a8a0d1430d00824d8795b4db53437e7bb7320cddfd84cfd3 SHA512 3f71146202208fa0c0cda360d125dd972ea003cf8cd62da21d67eb544c92f7b82640e7ce7c3835cbc65c75909a882edfa54dbd8d8b748d6f243711ea331477fd
+DIST beep-1.4.9.tar.gz 83154 BLAKE2B 073169ccb4919c17c0291951834fea682c87021f18562629013293432292750f6d6b3235e8882fa9cf26c9e055e1283cfa629c2e88e0f87a301b238c38380498 SHA512 46e6066cb4d9ad4a0c55a03bf5a2163426648ce3831fe1f7bafa2f02d0e407b50c52e58cc2b123c346df96e92b73d2458b473c3fb001d9a0d1470b7cf38cc35b
diff --git a/app-misc/beep/beep-1.4.9.ebuild b/app-misc/beep/beep-1.4.9.ebuild
new file mode 100644 (file)
index 0000000..ff9de15
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Advanced PC speaker beeper"
+HOMEPAGE="https://github.com/spkr-beep"
+SRC_URI="https://github.com/spkr-beep/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE="suid"
+
+# Tests require a speaker
+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
+}
+
+src_install() {
+       dobin beep
+       doman "${PN}.1"
+
+       if use suid ; then
+               fowners :audio /usr/bin/beep
+               fperms 4710 /usr/bin/beep
+       else
+               fperms 0711 /usr/bin/beep
+       fi
+
+       einstalldocs
+}