Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/ng/files/, app-editors/ng/
Date: Tue, 04 Apr 2017 23:09:05
Message-Id: 1491347311.707659e3a7320c5e46d0383f74d626d2fe2dee38.monsieurp@gentoo
1 commit: 707659e3a7320c5e46d0383f74d626d2fe2dee38
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 4 23:00:22 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 4 23:08:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=707659e3
7
8 app-editors/ng: EAPI 6 bump.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-editors/ng/files/ng-1.5beta1-ncurses.patch | 6 +--
13 app-editors/ng/ng-1.5_beta1-r2.ebuild | 70 ++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+), 3 deletions(-)
15
16 diff --git a/app-editors/ng/files/ng-1.5beta1-ncurses.patch b/app-editors/ng/files/ng-1.5beta1-ncurses.patch
17 index 5395ba94ea7..6808d911152 100644
18 --- a/app-editors/ng/files/ng-1.5beta1-ncurses.patch
19 +++ b/app-editors/ng/files/ng-1.5beta1-ncurses.patch
20 @@ -1,6 +1,6 @@
21 ---- configure.orig 2004-05-12 09:26:44.000000000 +0900
22 -+++ configure 2004-05-12 09:27:06.000000000 +0900
23 -@@ -1077,3 +1077,3 @@
24 +--- a/configure 2004-05-12 09:26:44.000000000 +0900
25 ++++ b/configure 2004-05-12 09:27:06.000000000 +0900
26 +@@ -1077,3+1077,3 @@
27 rm -f conftest*
28 -test "$ac_cv_search_tgetstr" = "no" && for i in curses ncurses termlib; do
29 +test "$ac_cv_search_tgetstr" = "no" && for i in ncurses termlib; do
30
31 diff --git a/app-editors/ng/ng-1.5_beta1-r2.ebuild b/app-editors/ng/ng-1.5_beta1-r2.ebuild
32 new file mode 100644
33 index 00000000000..637538b3379
34 --- /dev/null
35 +++ b/app-editors/ng/ng-1.5_beta1-r2.ebuild
36 @@ -0,0 +1,70 @@
37 +# Copyright 1999-2017 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +inherit autotools
43 +
44 +MY_P="${P/_beta/beta}"
45 +
46 +DESCRIPTION="Emacs like micro editor Ng -- based on mg2a"
47 +HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/"
48 +SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
49 +
50 +LICENSE="Emacs"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~ppc ~x86"
53 +IUSE="canna"
54 +
55 +RDEPEND="
56 + sys-libs/ncurses:0=
57 + !dev-java/nailgun
58 + canna? ( app-i18n/canna )"
59 +
60 +DEPEND="
61 + ${RDEPEND}
62 + sys-apps/sed"
63 +
64 +S="${WORKDIR}/${MY_P}"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/${MY_P}-ncurses.patch"
68 + "${FILESDIR}/${MY_P}-configure.patch"
69 +)
70 +
71 +src_prepare() {
72 + default
73 +
74 + sed -i -e "/NO_BACKUP/s/undef/define/" config.h || die "sed failed"
75 + pushd sys/unix > /dev/null || die
76 + eautoconf
77 + popd > /dev/null || die
78 + cp sys/unix/configure . || die
79 +}
80 +
81 +src_configure() {
82 + econf $(use_enable canna)
83 +}
84 +
85 +src_compile() {
86 + emake CC="$(tc-getCC)"
87 +}
88 +
89 +src_install() {
90 + dobin ng
91 + dodoc docs/* MANIFEST dot.ng
92 +
93 + insinto /usr/share/ng
94 + doins bin/*
95 +
96 + insinto /etc/skel
97 + newins dot.ng .ng
98 +}
99 +
100 +pkg_postinst() {
101 + elog
102 + elog "If you want to use user Config"
103 + elog "cp /etc/skel/.ng ~/.ng"
104 + elog "and edit your .ng configuration file."
105 + elog
106 +}