Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/ersatz-emacs/files/, app-editors/ersatz-emacs/
Date: Tue, 27 Aug 2019 10:24:22
Message-Id: 1566901448.ece70ecf8cdc499919365e26af0c195d8597e8c5.ulm@gentoo
1 commit: ece70ecf8cdc499919365e26af0c195d8597e8c5
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 27 09:49:45 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 27 10:24:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ece70ecf
7
8 app-editors/ersatz-emacs: Bump EAPI to 7.
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
12
13 .../ersatz-emacs/ersatz-emacs-20060515-r1.ebuild | 43 ++++++++++++++++++++++
14 .../files/ersatz-emacs-20060515-gentoo.patch | 16 ++++----
15 2 files changed, 51 insertions(+), 8 deletions(-)
16
17 diff --git a/app-editors/ersatz-emacs/ersatz-emacs-20060515-r1.ebuild b/app-editors/ersatz-emacs/ersatz-emacs-20060515-r1.ebuild
18 new file mode 100644
19 index 00000000000..2506526d39d
20 --- /dev/null
21 +++ b/app-editors/ersatz-emacs/ersatz-emacs-20060515-r1.ebuild
22 @@ -0,0 +1,43 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit toolchain-funcs
29 +
30 +DESCRIPTION="A very minimal imitation of the famous GNU Emacs editor"
31 +HOMEPAGE="https://web.archive.org/web/20171126221613/http://hunter.apana.org.au/~cjb/Code/"
32 +# taken from http://hunter.apana.org.au/~cjb/Code/ersatz.tar.gz
33 +SRC_URI="mirror://gentoo/${P}.tar.gz"
34 +
35 +LICENSE="public-domain"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +DEPEND="sys-libs/ncurses:0="
40 +RDEPEND="${DEPEND}
41 + !app-editors/ee"
42 +BDEPEND="virtual/pkgconfig"
43 +
44 +S="${WORKDIR}"
45 +
46 +src_prepare() {
47 + eapply "${FILESDIR}"/${P}-gentoo.patch
48 + sed -i -e "s%/usr/local/share/%/usr/share/doc/${PF}/%" ee.1 \
49 + || die "sed failed"
50 + eapply_user
51 +}
52 +
53 +src_compile() {
54 + emake CC="$(tc-getCC)" \
55 + CFLAGS="${CFLAGS} -Wall" \
56 + LFLAGS="${LDFLAGS} $("$(tc-getPKG_CONFIG)" --libs ncurses)"
57 +}
58 +
59 +src_install() {
60 + # Note: /usr/bin/ee is "easy edit" on FreeBSD, so if this
61 + # is ever keyworded *-fbsd the binary has to be renamed.
62 + dobin ee
63 + doman ee.1
64 + dodoc ChangeLog ERSATZ.keys README
65 +}
66
67 diff --git a/app-editors/ersatz-emacs/files/ersatz-emacs-20060515-gentoo.patch b/app-editors/ersatz-emacs/files/ersatz-emacs-20060515-gentoo.patch
68 index 67c40e78924..3a31f2f116c 100644
69 --- a/app-editors/ersatz-emacs/files/ersatz-emacs-20060515-gentoo.patch
70 +++ b/app-editors/ersatz-emacs/files/ersatz-emacs-20060515-gentoo.patch
71 @@ -1,5 +1,5 @@
72 ---- display.c
73 -+++ display.c
74 +--- a/display.c
75 ++++ b/display.c
76 @@ -5,6 +5,7 @@
77 * hints that are left in the windows by the commands
78 */
79 @@ -16,8 +16,8 @@
80 int i;
81
82 (*term.t_open) ();
83 ---- line.c
84 -+++ line.c
85 +--- a/line.c
86 ++++ b/line.c
87 @@ -47,7 +47,6 @@
88 {
89 LINE *lp;
90 @@ -35,8 +35,8 @@
91 char *nbufp;
92
93 if (kused == ksize)
94 ---- tcap.c
95 -+++ tcap.c
96 +--- a/tcap.c
97 ++++ b/tcap.c
98 @@ -2,6 +2,7 @@
99
100 #define termdef 1 /* don't define "term" external */
101 @@ -45,8 +45,8 @@
102 #include <stdio.h> /* puts(3), snprintf(3) */
103 #include "estruct.h"
104 #include "edef.h"
105 ---- termio.c
106 -+++ termio.c
107 +--- a/termio.c
108 ++++ b/termio.c
109 @@ -5,6 +5,7 @@
110 */