summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Jäger <pascal.jaeger@leimstift.de>2023-09-02 10:01:47 +0200
committerSam James <sam@gentoo.org>2023-09-18 09:52:12 +0100
commit1542c0c4c2cdb3c5ab89be4022662134665d4d41 (patch)
tree854f72e0209b7ac91309cf0e968ba53b4d1d1a21 /app-misc/beep
parentdev-util/debugedit: Fix build on musl 1.2.4 (diff)
downloadgentoo-1542c0c4c2cdb3c5ab89be4022662134665d4d41.tar.gz
gentoo-1542c0c4c2cdb3c5ab89be4022662134665d4d41.tar.bz2
gentoo-1542c0c4c2cdb3c5ab89be4022662134665d4d41.zip
app-misc/beep: add 1.4.12
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/32558 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/beep')
-rw-r--r--app-misc/beep/Manifest1
-rw-r--r--app-misc/beep/beep-1.4.12.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/beep/Manifest b/app-misc/beep/Manifest
index 935857b3de7d..a8a624692527 100644
--- a/app-misc/beep/Manifest
+++ b/app-misc/beep/Manifest
@@ -1 +1,2 @@
+DIST beep-1.4.12.tar.gz 89172 BLAKE2B 06f21cf3c40389acca50e6e420af4e738b7484e096bb689345fedb37684b15733dbb38e8a5d0d360f23e020cebe9ba321984ee43f41b0ad980648414ddbb9375 SHA512 18fed77bc4820ecc84ac12e903d516d5228fa2038df1788cc68db76e40b3c47a271911cc45bc48ce94e3f215803c5c05cb6c08ebb47ae6d7fcf1e0bc1ac169cd
DIST beep-1.4.9.tar.gz 83154 BLAKE2B 073169ccb4919c17c0291951834fea682c87021f18562629013293432292750f6d6b3235e8882fa9cf26c9e055e1283cfa629c2e88e0f87a301b238c38380498 SHA512 46e6066cb4d9ad4a0c55a03bf5a2163426648ce3831fe1f7bafa2f02d0e407b50c52e58cc2b123c346df96e92b73d2458b473c3fb001d9a0d1470b7cf38cc35b
diff --git a/app-misc/beep/beep-1.4.12.ebuild b/app-misc/beep/beep-1.4.12.ebuild
new file mode 100644
index 000000000000..921d9410df5d
--- /dev/null
+++ b/app-misc/beep/beep-1.4.12.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fcaps toolchain-funcs
+
+DESCRIPTION="Advanced PC speaker beeper"
+HOMEPAGE="https://github.com/spkr-beep/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"
+
+# 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"
+
+ fperms 0711 /usr/bin/beep
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ fcaps cap_dac_override,cap_sys_tty_config "${EROOT}/usr/bin/beep"
+}