Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/xvt/, x11-terms/xvt/files/
Date: Thu, 31 May 2018 12:57:20
Message-Id: 1527771424.f24ab2d290da6f8a530e2b3aff17c14b714517bc.bman@gentoo
1 commit: f24ab2d290da6f8a530e2b3aff17c14b714517bc
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 31 00:04:46 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Thu May 31 12:57:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f24ab2d2
7
8 x11-terms/xvt: bump EAPI and drop flag-o-matic eclass
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 x11-terms/xvt/files/xvt-int-main.patch | 4 ++--
13 x11-terms/xvt/files/xvt-makefile.patch | 4 ++--
14 x11-terms/xvt/files/xvt-ttyinit-svr4pty.diff | 4 ++--
15 x11-terms/xvt/xvt-2.1-r3.ebuild | 23 +++++++++++++----------
16 4 files changed, 19 insertions(+), 16 deletions(-)
17
18 diff --git a/x11-terms/xvt/files/xvt-int-main.patch b/x11-terms/xvt/files/xvt-int-main.patch
19 index 81baa76ce5e..a0874e45f41 100644
20 --- a/x11-terms/xvt/files/xvt-int-main.patch
21 +++ b/x11-terms/xvt/files/xvt-int-main.patch
22 @@ -1,5 +1,5 @@
23 ---- xvt-1.0/xvt.c.orig 2009-09-04 15:49:13.000000000 +0200
24 -+++ xvt-1.0/xvt.c 2009-09-04 15:49:13.000000000 +0200
25 +--- a/xvt.c
26 ++++ b/xvt.c
27 @@ -41,9 +41,9 @@
28 #endif /* UKC_LOCATIONS */
29
30
31 diff --git a/x11-terms/xvt/files/xvt-makefile.patch b/x11-terms/xvt/files/xvt-makefile.patch
32 index 368fdeeb00b..b147d9d8c2b 100644
33 --- a/x11-terms/xvt/files/xvt-makefile.patch
34 +++ b/x11-terms/xvt/files/xvt-makefile.patch
35 @@ -1,5 +1,5 @@
36 ---- xvt-1.0/Makefile.orig 2009-09-04 15:45:08.000000000 +0200
37 -+++ xvt-1.0/Makefile 2009-09-04 15:46:00.000000000 +0200
38 +--- a/Makefile
39 ++++ b/Makefile
40 @@ -27,7 +27,7 @@
41 #ARCH=AIX3
42 #ARCH=ULTRIX
43
44 diff --git a/x11-terms/xvt/files/xvt-ttyinit-svr4pty.diff b/x11-terms/xvt/files/xvt-ttyinit-svr4pty.diff
45 index a858250c1d8..1cc370b94d7 100644
46 --- a/x11-terms/xvt/files/xvt-ttyinit-svr4pty.diff
47 +++ b/x11-terms/xvt/files/xvt-ttyinit-svr4pty.diff
48 @@ -1,5 +1,5 @@
49 ---- ttyinit.c 2004-08-24 18:51:18.510722064 +0100
50 -+++ ttyinit.c.new 2004-08-24 18:50:30.539014872 +0100
51 +--- a/ttyinit.c
52 ++++ b/ttyinit.c
53 @@ -46,6 +46,7 @@
54 #include <pwd.h>
55 #include <errno.h>
56
57 diff --git a/x11-terms/xvt/xvt-2.1-r3.ebuild b/x11-terms/xvt/xvt-2.1-r3.ebuild
58 index 51aaecb8326..1c3076cf225 100644
59 --- a/x11-terms/xvt/xvt-2.1-r3.ebuild
60 +++ b/x11-terms/xvt/xvt-2.1-r3.ebuild
61 @@ -1,9 +1,9 @@
62 # Copyright 1999-2018 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64
65 -EAPI="2"
66 +EAPI=6
67
68 -inherit eutils flag-o-matic toolchain-funcs
69 +inherit toolchain-funcs
70
71 DESCRIPTION="A tiny vt100 terminal emulator for X"
72 HOMEPAGE="ftp://ftp.x.org/R5contrib/xvt-1.0.README"
73 @@ -21,27 +21,30 @@ DEPEND="${RDEPEND}
74
75 S=${WORKDIR}/${PN}-1.0
76
77 -src_prepare() {
78 +PATCHES=(
79 # this brings the distribution upto version 2.1
80 - epatch "${WORKDIR}"/${P}.diff
81 + "${WORKDIR}"/${P}.diff
82
83 # fix #61393
84 - epatch "${FILESDIR}/${PN}-ttyinit-svr4pty.diff"
85 + "${FILESDIR}/${PN}-ttyinit-svr4pty.diff"
86
87 # CFLAGS, CC #241554
88 - epatch "${FILESDIR}/${PN}-makefile.patch"
89 + "${FILESDIR}/${PN}-makefile.patch"
90
91 # int main, not void main
92 - epatch "${FILESDIR}/${PN}-int-main.patch"
93 + "${FILESDIR}/${PN}-int-main.patch"
94
95 # fix segfault (bug #363883)
96 - epatch "${FILESDIR}/${PN}-pts.patch"
97 + "${FILESDIR}/${PN}-pts.patch"
98 +)
99
100 +src_prepare() {
101 + default
102 tc-export CC
103 }
104
105 src_install() {
106 - dobin xvt || die "dobin failed"
107 + dobin xvt
108 doman xvt.1
109 - dodoc README
110 + einstalldocs
111 }