app-misc/beep: decompress man page and install it.
authorPatrice Clement <monsieurp@gentoo.org>
Wed, 31 May 2017 20:22:51 +0000 (22:22 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 31 May 2017 20:24:08 +0000 (22:24 +0200)
Gentoo-Bug: https://bugs.gentoo.org/619930

Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-misc/beep/beep-1.3-r2.ebuild [new file with mode: 0644]
app-misc/beep/files/beep-1.3-Makefile.patch

diff --git a/app-misc/beep/beep-1.3-r2.ebuild b/app-misc/beep/beep-1.3-r2.ebuild
new file mode 100644 (file)
index 0000000..adccf29
--- /dev/null
@@ -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
+}
index 6497323b9235c5cb61b3ec148a90512dddb777bf..f4b891e8b824a7e5f891d4dd12a4fd50639650fc 100644 (file)
@@ -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