1 |
commit: 94c0dd1173d7f0ee764c2f3f30658aae7fd012a5 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 21 21:50:52 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 21 21:50:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94c0dd11 |
7 |
|
8 |
app-text/o3read: Port to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
.../files/o3read-0.0.4-fix-buildsystem.patch | 36 ++++++++++++++++++++++ |
14 |
app-text/o3read/o3read-0.0.4.ebuild | 18 +++++------ |
15 |
2 files changed, 43 insertions(+), 11 deletions(-) |
16 |
|
17 |
diff --git a/app-text/o3read/files/o3read-0.0.4-fix-buildsystem.patch b/app-text/o3read/files/o3read-0.0.4-fix-buildsystem.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..63dcf95c0de |
20 |
--- /dev/null |
21 |
+++ b/app-text/o3read/files/o3read-0.0.4-fix-buildsystem.patch |
22 |
@@ -0,0 +1,36 @@ |
23 |
+--- a/Makefile |
24 |
++++ b/Makefile |
25 |
+@@ -2,8 +2,6 @@ |
26 |
+ PACKAGE = o3read |
27 |
+ VERSION = 0.0.4 |
28 |
+ |
29 |
+-CC = gcc |
30 |
+-CFLAGS = -Wall -ansi -pedantic -O -g |
31 |
+ PREFIX = /usr/local |
32 |
+ BINDIR = $(PREFIX)/bin |
33 |
+ MANDIR = $(PREFIX)/man/man1 |
34 |
+@@ -16,20 +14,13 @@ |
35 |
+ |
36 |
+ all: $(BINS) |
37 |
+ |
38 |
+-utf8tolatin1: utf8tolatin1.o |
39 |
+- $(CC) -o utf8tolatin1 utf8tolatin1.o |
40 |
++o3totxt: o3read.o |
41 |
+ |
42 |
+-o3totxt: o3totxt.o o3read.o |
43 |
+- $(CC) -o o3totxt o3totxt.o o3read.o |
44 |
++o3tohtml: o3read.o |
45 |
+ |
46 |
+-o3tohtml: o3tohtml.o o3read.o |
47 |
+- $(CC) -o o3tohtml o3tohtml.o o3read.o |
48 |
++o3tosiag: o3read.o |
49 |
+ |
50 |
+-o3tosiag: o3tosiag.o o3read.o |
51 |
+- $(CC) -o o3tosiag o3tosiag.o o3read.o |
52 |
+- |
53 |
+-o3read: main.o o3read.o |
54 |
+- $(CC) -o o3read main.o o3read.o |
55 |
++o3read: main.o |
56 |
+ |
57 |
+ dist: |
58 |
+ rm -rf $(PACKAGE)-$(VERSION) |
59 |
|
60 |
diff --git a/app-text/o3read/o3read-0.0.4.ebuild b/app-text/o3read/o3read-0.0.4.ebuild |
61 |
index 9b39421c063..4cf54987a0c 100644 |
62 |
--- a/app-text/o3read/o3read-0.0.4.ebuild |
63 |
+++ b/app-text/o3read/o3read-0.0.4.ebuild |
64 |
@@ -1,7 +1,7 @@ |
65 |
-# Copyright 1999-2012 Gentoo Foundation |
66 |
+# Copyright 1999-2020 Gentoo Authors |
67 |
# Distributed under the terms of the GNU General Public License v2 |
68 |
|
69 |
-EAPI=4 |
70 |
+EAPI=7 |
71 |
|
72 |
inherit toolchain-funcs |
73 |
|
74 |
@@ -12,20 +12,16 @@ SRC_URI="http://siag.nu/pub/${PN}/${P}.tar.gz" |
75 |
LICENSE="GPL-2" |
76 |
SLOT="0" |
77 |
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" |
78 |
-IUSE="" |
79 |
+RESTRICT="test" |
80 |
|
81 |
-RESTRICT=test |
82 |
+PATCHES=( "${FILESDIR}"/${P}-fix-buildsystem.patch ) |
83 |
|
84 |
-src_prepare() { |
85 |
- sed \ |
86 |
- -e 's:-o:$(LDFLAGS) -o:g' \ |
87 |
- -e '/^CC/d' \ |
88 |
- -e '/^CFLAGS/g' \ |
89 |
- -i Makefile || die |
90 |
+src_configure() { |
91 |
tc-export CC |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
dobin o3read o3totxt o3tohtml utf8tolatin1 |
96 |
- doman o3read.1 o3tohtml.1 o3totxt.1 utf8tolatin1.1 |
97 |
+ einstalldocs |
98 |
+ doman *.1 |
99 |
} |