1 |
commit: 5a99ff2528f404f260d13f20e66bf427beda006f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 26 10:24:29 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 26 10:27:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a99ff25 |
7 |
|
8 |
sys-apps/mouseemu: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
sys-apps/mouseemu/files/mouseemu-0.15-build.patch | 4 ++-- |
13 |
sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch | 8 ++++++++ |
14 |
sys-apps/mouseemu/mouseemu-0.12.ebuild | 20 ++++++++------------ |
15 |
sys-apps/mouseemu/mouseemu-0.15.ebuild | 21 ++++++++++----------- |
16 |
4 files changed, 28 insertions(+), 25 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/mouseemu/files/mouseemu-0.15-build.patch b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch |
19 |
index 882d66fa775..ad4deae7bf2 100644 |
20 |
--- a/sys-apps/mouseemu/files/mouseemu-0.15-build.patch |
21 |
+++ b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch |
22 |
@@ -1,5 +1,5 @@ |
23 |
---- Makefile |
24 |
-+++ Makefile |
25 |
+--- a/Makefile |
26 |
++++ b/Makefile |
27 |
@@ -1,5 +1,5 @@ |
28 |
all: |
29 |
- gcc -Wall -g -o mouseemu mouseemu.c |
30 |
|
31 |
diff --git a/sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch b/sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..fdd7e457863 |
34 |
--- /dev/null |
35 |
+++ b/sys-apps/mouseemu/files/mouseemu-0.15-openrc.patch |
36 |
@@ -0,0 +1,8 @@ |
37 |
+--- a/mouseemu.init.gentoo |
38 |
++++ b/mouseemu.init.gentoo |
39 |
+@@ -1,4 +1,4 @@ |
40 |
+-#!/sbin/runscript |
41 |
++#!/sbin/openrc-run |
42 |
+ # Copyright 1999-2004 Gentoo Technologies, Inc. |
43 |
+ # Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
|
46 |
diff --git a/sys-apps/mouseemu/mouseemu-0.12.ebuild b/sys-apps/mouseemu/mouseemu-0.12.ebuild |
47 |
index ba8f60d6ee4..2b972aee53f 100644 |
48 |
--- a/sys-apps/mouseemu/mouseemu-0.12.ebuild |
49 |
+++ b/sys-apps/mouseemu/mouseemu-0.12.ebuild |
50 |
@@ -1,30 +1,26 @@ |
51 |
-# Copyright 1999-2007 Gentoo Foundation |
52 |
+# Copyright 1999-2017 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
|
55 |
-inherit eutils |
56 |
+EAPI=6 |
57 |
|
58 |
DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads" |
59 |
HOMEPAGE="http://geekounet.org/powerbook/" |
60 |
SRC_URI="http://geekounet.org/powerbook/files/${PN}.tar.gz" |
61 |
+ |
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="-* ppc" |
65 |
IUSE="" |
66 |
-DEPEND="" |
67 |
|
68 |
-src_unpack() { |
69 |
- unpack ${A} |
70 |
- mv "${WORKDIR}/${PN}" "${WORKDIR}/${P}" |
71 |
- epatch "${FILESDIR}"/${P}-fix.diff |
72 |
-} |
73 |
+DEPEND="" |
74 |
|
75 |
-src_compile() { |
76 |
- emake || die |
77 |
-} |
78 |
+S=${WORKDIR}/${PN} |
79 |
+PATCHES=( "${FILESDIR}"/${P}-fix.diff ) |
80 |
|
81 |
src_install() { |
82 |
dosbin mouseemu |
83 |
- dodoc README COPYING |
84 |
+ einstalldocs |
85 |
+ |
86 |
newinitd mouseemu.init.gentoo mouseemu |
87 |
insinto /etc |
88 |
doins mouseemu.conf |
89 |
|
90 |
diff --git a/sys-apps/mouseemu/mouseemu-0.15.ebuild b/sys-apps/mouseemu/mouseemu-0.15.ebuild |
91 |
index b16337e1b1b..2770a221525 100644 |
92 |
--- a/sys-apps/mouseemu/mouseemu-0.15.ebuild |
93 |
+++ b/sys-apps/mouseemu/mouseemu-0.15.ebuild |
94 |
@@ -1,7 +1,7 @@ |
95 |
-# Copyright 1999-2006 Gentoo Foundation |
96 |
+# Copyright 1999-2017 Gentoo Foundation |
97 |
# Distributed under the terms of the GNU General Public License v2 |
98 |
|
99 |
-inherit eutils |
100 |
+EAPI=6 |
101 |
|
102 |
DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads" |
103 |
HOMEPAGE="http://geekounet.org/powerbook/" |
104 |
@@ -15,17 +15,16 @@ IUSE="" |
105 |
DEPEND="" |
106 |
|
107 |
S=${WORKDIR}/${PN} |
108 |
- |
109 |
-src_unpack() { |
110 |
- unpack ${A} |
111 |
- cd "${S}" |
112 |
- epatch "${FILESDIR}"/${PN}-0.13-fix.patch |
113 |
- epatch "${FILESDIR}"/${PN}-0.15-build.patch |
114 |
-} |
115 |
+PATCHES=( |
116 |
+ "${FILESDIR}"/${PN}-0.13-fix.patch |
117 |
+ "${FILESDIR}"/${PN}-0.15-build.patch |
118 |
+ "${FILESDIR}"/${PN}-0.15-openrc.patch |
119 |
+) |
120 |
|
121 |
src_install() { |
122 |
- dosbin mouseemu || die |
123 |
- dodoc README |
124 |
+ dosbin mouseemu |
125 |
+ einstalldocs |
126 |
+ |
127 |
newinitd mouseemu.init.gentoo mouseemu |
128 |
insinto /etc |
129 |
doins mouseemu.conf |