diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-25 18:30:47 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-25 18:30:59 +0100 |
commit | 57f54cc39bb49a0f898b74644607658d950f514d (patch) | |
tree | 373c9c6f4f4df7cd2de6948e2feebbcad1cf95ca /app-misc | |
parent | sys-kernel/gentoo-sources: Linux patch 5.4.28 (diff) | |
download | gentoo-57f54cc39bb49a0f898b74644607658d950f514d.tar.gz gentoo-57f54cc39bb49a0f898b74644607658d950f514d.tar.bz2 gentoo-57f54cc39bb49a0f898b74644607658d950f514d.zip |
app-misc/beep: bump to v1.4.9
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>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/beep/Manifest | 1 | ||||
-rw-r--r-- | app-misc/beep/beep-1.4.9.ebuild | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/beep/Manifest b/app-misc/beep/Manifest index 39eda21e98a6..72bbfc63254e 100644 --- a/app-misc/beep/Manifest +++ b/app-misc/beep/Manifest @@ -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 index 000000000000..ff9de1529578 --- /dev/null +++ b/app-misc/beep/beep-1.4.9.ebuild @@ -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 +} |