summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-misc/beep/beep-1.3-r2.ebuild35
-rw-r--r--app-misc/beep/files/beep-1.3-Makefile.patch4
2 files changed, 37 insertions, 2 deletions
diff --git a/app-misc/beep/beep-1.3-r2.ebuild b/app-misc/beep/beep-1.3-r2.ebuild
new file mode 100644
index 000000000000..adccf29dac63
--- /dev/null
+++ b/app-misc/beep/beep-1.3-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="The advanced PC speaker beeper"
+HOMEPAGE="http://www.johnath.com/beep"
+SRC_URI="http://www.johnath.com/beep/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE="suid"
+
+PATCHES=( "${FILESDIR}/${P}-Makefile.patch" )
+DOCS=( CHANGELOG CREDITS README )
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_install() {
+ dobin beep
+ if use suid; then
+ fowners :audio /usr/bin/beep
+ fperms 4710 /usr/bin/beep
+ else
+ fperms 0711 /usr/bin/beep
+ fi
+ unpack "./${PN}.1.gz"
+ doman "${PN}.1"
+ einstalldocs
+}
diff --git a/app-misc/beep/files/beep-1.3-Makefile.patch b/app-misc/beep/files/beep-1.3-Makefile.patch
index 6497323b9235..f4b891e8b824 100644
--- a/app-misc/beep/files/beep-1.3-Makefile.patch
+++ b/app-misc/beep/files/beep-1.3-Makefile.patch
@@ -1,5 +1,5 @@
---- /var/tmp/portage/app-misc/beep-1.2.2-r1/work/beep-1.2.2/Makefile 2002-03-29 09:37:22.000000000 -0800
-+++ /tmp/Makefile 2009-03-27 22:19:18.000000000 -0700
+--- a/Makefile 2002-03-29 09:37:22.000000000 -0800
++++ b/Makefile 2009-03-27 22:19:18.000000000 -0700
@@ -1,17 +1,18 @@
-CC=gcc
-FLAGS=-Wall