Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/aee/files/, app-editors/aee/
Date: Sun, 09 Jul 2017 13:30:55
Message-Id: 1499607003.1c106290b02505c2af7c95058c0a1be602dc5c90.hattya@gentoo
1 commit: 1c106290b02505c2af7c95058c0a1be602dc5c90
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 9 13:30:03 2017 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 9 13:30:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c106290
7
8 app-editors/aee: new upstream release
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 app-editors/aee/Manifest | 1 +
13 app-editors/aee/aee-2.2.21.ebuild | 63 ++++++++++++++++++++
14 app-editors/aee/files/aee-ae-location.patch | 89 +++++++++++++++++++++++++++++
15 3 files changed, 153 insertions(+)
16
17 diff --git a/app-editors/aee/Manifest b/app-editors/aee/Manifest
18 index ab70d57f9d4..66df500056b 100644
19 --- a/app-editors/aee/Manifest
20 +++ b/app-editors/aee/Manifest
21 @@ -1 +1,2 @@
22 DIST aee-2.2.15b.tar.gz 184218 SHA256 7abbaffe35018f9de87c8685f9bee2ea3f261e88ce60674f1a5a9a3a0f54d752 SHA512 2810cd8f5148edb352fdaefbc823d417b9a83c8083644c8729be8595013ca8ba660bd72120db1e15915e454f5185d2d030c2f0c853b37eb83c213c1d581a640f WHIRLPOOL 3ae452544f8926fda55f3661c9890c39d6ab1dd295acba1a18edf91d010e731d7f356a679e8174f66ce7c8604c148ad1ce61d31c43a67162bdcda400b9de5961
23 +DIST aee-2.2.21.tar.gz 186304 SHA256 b8a9a20679736ec44e74faae1550b33411cc675f7c587d2316e578f97b0d3727 SHA512 c052ef97b18fa9900e9bf0c5894e05cbbf775d7de4ad4c14cb9e3e7758983c84e4768995a98398c05e30173464e6f7994e7f476522a314bc25dac5a84831155a WHIRLPOOL 7508981b4035fb80dc4fb4cb49af4a7ca552cdf6abe6427ec5bccd5d957f0e64db14083174e7671b521f772e36fc887ac0f7a2b078874888efb042a43ed0363b
24
25 diff --git a/app-editors/aee/aee-2.2.21.ebuild b/app-editors/aee/aee-2.2.21.ebuild
26 new file mode 100644
27 index 00000000000..763b9cf9190
28 --- /dev/null
29 +++ b/app-editors/aee/aee-2.2.21.ebuild
30 @@ -0,0 +1,63 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="6"
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="An easy to use text editor"
39 +#HOMEPAGE="http://mahon.cwx.net/ http://www.users.uswest.net/~hmahon/"
40 +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
41 +SRC_URI="mirror://gentoo/${P}.tar.gz"
42 +
43 +LICENSE="Artistic"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86 ~amd64-linux"
46 +IUSE="X"
47 +
48 +RDEPEND="X? ( x11-libs/libX11 )"
49 +DEPEND="${RDEPEND}"
50 +
51 +PATCHES=(
52 + "${FILESDIR}"/${PN}-ae-location.patch
53 + "${FILESDIR}"/${PN}-Wformat-security.patch
54 +)
55 +DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg )
56 +
57 +src_prepare() {
58 + sed -i \
59 + -e "s/make -/\$(MAKE) -/g" \
60 + -e "/^buildaee/s/$/ localaee/" \
61 + -e "/^buildxae/s/$/ localxae/" \
62 + Makefile
63 +
64 + sed -i \
65 + -e "s/\([\t ]\)cc /\1\\\\\$(CC) /" \
66 + -e "/CFLAGS =/s/\" >/ \\\\\$(LDFLAGS)\" >/" \
67 + -e "/other_cflag/s/ \${strip_option}//" \
68 + create.mk.{aee,xae}
69 +
70 + default
71 +}
72 +
73 +src_compile() {
74 + local target="aee"
75 + use X && target="both"
76 +
77 + emake CC="$(tc-getCC)" ${target}
78 +}
79 +
80 +src_install() {
81 + dobin ${PN}
82 + dosym ${PN} /usr/bin/rae
83 + doman ${PN}.1
84 + einstalldocs
85 +
86 + insinto /usr/share/${PN}
87 + doins help.ae
88 +
89 + if use X; then
90 + dobin xae
91 + dosym xae /usr/bin/rxae
92 + fi
93 +}
94
95 diff --git a/app-editors/aee/files/aee-ae-location.patch b/app-editors/aee/files/aee-ae-location.patch
96 new file mode 100644
97 index 00000000000..eb598cc7be3
98 --- /dev/null
99 +++ b/app-editors/aee/files/aee-ae-location.patch
100 @@ -0,0 +1,89 @@
101 +--- a/aee.1
102 ++++ b/aee.1
103 +@@ -680,7 +680,7 @@
104 + .\"
105 + .SS Initializing aee From A File
106 + .PP
107 +-\fIaee\fR checks for a file named \fIinit.ae\fR in \fI/usr/local/lib\fR,
108 ++\fIaee\fR checks for a file named \fIinit.ae\fR in \fI/usr/share/aee\fR,
109 + .I .init.ae
110 + in the user's home directory, then for \fI.init.ae\fR in the
111 + current directory. (This file may be created manually or by using the
112 +@@ -962,7 +962,7 @@
113 + .PP
114 + On-line help is provided through the 'help' command or menu item. This
115 + command uses a file with help information. By default the help file is
116 +-located in \fB/usr/local/lib/help.ae\fR, but this file may be located
117 ++located in \fB/usr/share/aee/help.ae\fR, but this file may be located
118 + in the user's home directory with the name \fB.help.ae\fR, or in the
119 + current directory with the name \fBhelp.ae\fR.
120 + .\"
121 +@@ -1019,7 +1019,7 @@
122 + .\"
123 + .SH FILES
124 + .PP
125 +-.I /usr/local/lib/init.ae
126 ++.I /usr/share/aee/init.ae
127 + .br
128 + .I $HOME/.aeeinfo
129 + .br
130 +--- a/aee.c
131 ++++ b/aee.c
132 +@@ -2628,7 +2628,7 @@
133 +
134 + char *init_name[6] = {
135 + "/usr/local/aee/init.ae",
136 +- "/usr/local/lib/init.ae",
137 ++ "/usr/share/aee/init.ae",
138 + NULL, /* to be ~/.init.ae */
139 + ".init.ae",
140 + NULL, /* to be ~/.aeerc */
141 +--- a/aee.msg
142 ++++ b/aee.msg
143 +@@ -2,7 +2,7 @@
144 + $
145 + $set 1
146 + $quote "
147 +-1 "/usr/local/lib/help.ae"
148 ++1 "/usr/share/aee/help.ae"
149 + 2 "main"
150 + 3 "modes menu"
151 + 4 "tabs to spaces "
152 +--- a/help.ae
153 ++++ b/help.ae
154 +@@ -1058,11 +1058,11 @@
155 +
156 + The file 'init.ae' may be used to set parameters and define keys to
157 + perform certain functions within ae. This file may reside in three
158 +-locations: /usr/local/lib/init.ae, .init.ae in your home directory, and
159 ++locations: /usr/share/aee/init.ae, .init.ae in your home directory, and
160 + .init.ae in the current working directory.
161 +
162 + First, aee checks for a system level initialization file, located in
163 +-/usr/local/lib. Next the user's home directory is checked for a file named
164 ++/usr/share/aee. Next the user's home directory is checked for a file named
165 + .init.ae, then the current directory. The settings from each file are read,
166 + so that the directives from the most recently read file will take precedence
167 + over previously read files. This allows, for example, the .init.ae file in
168 +--- a/help.c
169 ++++ b/help.c
170 +@@ -12,7 +12,7 @@
171 +
172 + char *help_file_list[4] = {
173 + "/usr/local/aee/help.ae",
174 +- "/usr/local/lib/help.ae",
175 ++ "/usr/share/aee/help.ae",
176 + "~/.help.ae",
177 + "help.ae"
178 + };
179 +--- a/localize.c
180 ++++ b/localize.c
181 +@@ -64,7 +64,7 @@
182 + catalog = catopen("aee", 0);
183 + #endif /* NO_CATGETS */
184 +
185 +- ae_help_file = catgetlocal( 1, "/usr/local/lib/help.ae");
186 ++ ae_help_file = catgetlocal( 1, "/usr/share/aee/help.ae");
187 + main_buffer_name = catgetlocal( 2, "main");
188 +
189 +