---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
@@ -1,5 +1,5 @@
all:
- gcc -Wall -g -o mouseemu mouseemu.c
--- /dev/null
+--- a/mouseemu.init.gentoo
++++ b/mouseemu.init.gentoo
+@@ -1,4 +1,4 @@
+-#!/sbin/runscript
++#!/sbin/openrc-run
+ # Copyright 1999-2004 Gentoo Technologies, Inc.
+ # Distributed under the terms of the GNU General Public License v2
+
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-inherit eutils
+EAPI=6
DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads"
HOMEPAGE="http://geekounet.org/powerbook/"
SRC_URI="http://geekounet.org/powerbook/files/${PN}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ppc"
IUSE=""
-DEPEND=""
-src_unpack() {
- unpack ${A}
- mv "${WORKDIR}/${PN}" "${WORKDIR}/${P}"
- epatch "${FILESDIR}"/${P}-fix.diff
-}
+DEPEND=""
-src_compile() {
- emake || die
-}
+S=${WORKDIR}/${PN}
+PATCHES=( "${FILESDIR}"/${P}-fix.diff )
src_install() {
dosbin mouseemu
- dodoc README COPYING
+ einstalldocs
+
newinitd mouseemu.init.gentoo mouseemu
insinto /etc
doins mouseemu.conf
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-inherit eutils
+EAPI=6
DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads"
HOMEPAGE="http://geekounet.org/powerbook/"
DEPEND=""
S=${WORKDIR}/${PN}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-0.13-fix.patch
- epatch "${FILESDIR}"/${PN}-0.15-build.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.13-fix.patch
+ "${FILESDIR}"/${PN}-0.15-build.patch
+ "${FILESDIR}"/${PN}-0.15-openrc.patch
+)
src_install() {
- dosbin mouseemu || die
- dodoc README
+ dosbin mouseemu
+ einstalldocs
+
newinitd mouseemu.init.gentoo mouseemu
insinto /etc
doins mouseemu.conf