1 |
commit: 1cddea63e92eb4d6acf7a633a84cfd17ad45dc26 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 8 12:31:31 2021 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 12:31:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cddea63 |
7 |
|
8 |
app-editors/ng: update to EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
12 |
|
13 |
app-editors/ng/metadata.xml | 8 ++++---- |
14 |
app-editors/ng/ng-1.5_beta1-r3.ebuild | 33 ++++++++++++++++----------------- |
15 |
2 files changed, 20 insertions(+), 21 deletions(-) |
16 |
|
17 |
diff --git a/app-editors/ng/metadata.xml b/app-editors/ng/metadata.xml |
18 |
index 1d892a124fa..a94766977fa 100644 |
19 |
--- a/app-editors/ng/metadata.xml |
20 |
+++ b/app-editors/ng/metadata.xml |
21 |
@@ -1,8 +1,8 @@ |
22 |
<?xml version="1.0" encoding="UTF-8"?> |
23 |
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
24 |
<pkgmetadata> |
25 |
-<maintainer type="project"> |
26 |
- <email>cjk@g.o</email> |
27 |
- <name>Cjk</name> |
28 |
-</maintainer> |
29 |
+ <maintainer type="project"> |
30 |
+ <email>cjk@g.o</email> |
31 |
+ <name>Cjk</name> |
32 |
+ </maintainer> |
33 |
</pkgmetadata> |
34 |
|
35 |
diff --git a/app-editors/ng/ng-1.5_beta1-r3.ebuild b/app-editors/ng/ng-1.5_beta1-r3.ebuild |
36 |
index 428dbda5a7d..9c71c540e8b 100644 |
37 |
--- a/app-editors/ng/ng-1.5_beta1-r3.ebuild |
38 |
+++ b/app-editors/ng/ng-1.5_beta1-r3.ebuild |
39 |
@@ -1,7 +1,7 @@ |
40 |
# Copyright 1999-2021 Gentoo Authors |
41 |
# Distributed under the terms of the GNU General Public License v2 |
42 |
|
43 |
-EAPI=6 |
44 |
+EAPI="7" |
45 |
|
46 |
inherit autotools toolchain-funcs |
47 |
|
48 |
@@ -9,30 +9,29 @@ MY_P="${P/_beta/beta}" |
49 |
|
50 |
DESCRIPTION="Emacs like micro editor Ng -- based on mg2a" |
51 |
HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/" |
52 |
-SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz" |
53 |
-S="${WORKDIR}/${MY_P}" |
54 |
+SRC_URI="http://tt.sakura.ne.jp/~amura/archives/${PN}/${MY_P}.tar.gz" |
55 |
|
56 |
LICENSE="Emacs" |
57 |
SLOT="0" |
58 |
KEYWORDS="amd64 ppc x86" |
59 |
|
60 |
-RDEPEND=" |
61 |
- sys-libs/ncurses:0= |
62 |
- !dev-java/nailgun" |
63 |
+RDEPEND="sys-libs/ncurses:0=" |
64 |
DEPEND="${RDEPEND}" |
65 |
+S="${WORKDIR}/${MY_P}" |
66 |
|
67 |
PATCHES=( |
68 |
- "${FILESDIR}/${MY_P}-ncurses.patch" |
69 |
- "${FILESDIR}/${MY_P}-configure.patch" |
70 |
+ "${FILESDIR}"/${MY_P}-ncurses.patch |
71 |
+ "${FILESDIR}"/${MY_P}-configure.patch |
72 |
) |
73 |
|
74 |
src_prepare() { |
75 |
default |
76 |
|
77 |
- sed -i -e "/NO_BACKUP/s/undef/define/" config.h || die "sed failed" |
78 |
- pushd sys/unix > /dev/null || die |
79 |
+ sed -i "/NO_BACKUP/s/undef/define/" config.h |
80 |
+ cd sys/unix || die |
81 |
+ mv configure.{in,ac} || die |
82 |
eautoconf |
83 |
- popd > /dev/null || die |
84 |
+ cd - >/dev/null || die |
85 |
cp sys/unix/configure . || die |
86 |
} |
87 |
|
88 |
@@ -45,20 +44,20 @@ src_compile() { |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
- dobin ng |
93 |
- dodoc docs/* MANIFEST dot.ng |
94 |
+ dobin ${PN} |
95 |
+ dodoc docs/* MANIFEST dot.${PN} |
96 |
|
97 |
- insinto /usr/share/ng |
98 |
+ insinto /usr/share/${PN} |
99 |
doins bin/* |
100 |
|
101 |
insinto /etc/skel |
102 |
- newins dot.ng .ng |
103 |
+ newins {dot,}.${PN} |
104 |
} |
105 |
|
106 |
pkg_postinst() { |
107 |
elog |
108 |
elog "If you want to use user Config" |
109 |
- elog "cp /etc/skel/.ng ~/.ng" |
110 |
- elog "and edit your .ng configuration file." |
111 |
+ elog "cp /etc/skel/.${PN} ~/.${PN}" |
112 |
+ elog "and edit your .${PN} configuration file." |
113 |
elog |
114 |
} |