blob: 9e05e9d23c193fb84663939df20475bbab3d0d90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/ng/ng-1.5_beta1.ebuild,v 1.8 2005/07/08 17:52:24 dholm Exp $
inherit eutils
MY_P=${P/_beta/beta}
DESCRIPTION="Emacs like micro editor Ng -- based on mg2a"
HOMEPAGE="http://tt.sakura.ne.jp/~amura/ng/"
SRC_URI="http://tt.sakura.ne.jp/~amura/archives/ng/${MY_P}.tar.gz"
LICENSE="Emacs"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE="canna"
RDEPEND="virtual/libc
>=sys-libs/ncurses-5.0
canna? ( app-i18n/canna )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4.0"
PROVIDE="virtual/editor"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${MY_P}.tar.gz
cd ${S}
epatch "${FILESDIR}/${MY_P}-ncurses.patch"
}
src_compile() {
local myconf
if use canna; then
myconf="--enable-canna"
fi
econf ${myconf} || die
sed -i -e "s/^#undef NO_BACKUP/#define NO_BACKUP/" config.h \
|| die "sed failed"
emake || die
}
src_install() {
dobin ng || die
dodoc docs/* MANIFEST dot.ng
insinto /usr/share/ng
doins bin/*
insinto /etc/skel
newins dot.ng .ng
}
pkg_postinst() {
einfo
einfo "If you want to use user Config"
einfo "cp /etc/skel/.ng ~/.ng"
einfo "and edit your .ng configuration file."
einfo
}
|