forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng-1.5_beta1-r1.ebuild
63 lines (48 loc) · 1.14 KB
/
ng-1.5_beta1-r1.ebuild
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils autotools
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="~amd64 ~ppc ~x86"
IUSE="canna"
RDEPEND=">=sys-libs/ncurses-5.0
!dev-java/nailgun
canna? ( app-i18n/canna )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4.0"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}/${MY_P}-ncurses.patch"
epatch "${FILESDIR}/${MY_P}-configure.patch"
sed -i -e "/NO_BACKUP/s/undef/define/" config.h || die "sed failed"
pushd sys/unix || die
eautoconf
popd
cp sys/unix/configure . || die
}
src_configure() {
econf $(use_enable canna)
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dobin ng
dodoc docs/* MANIFEST dot.ng
insinto /usr/share/ng
doins bin/*
insinto /etc/skel
newins dot.ng .ng
}
pkg_postinst() {
elog
elog "If you want to use user Config"
elog "cp /etc/skel/.ng ~/.ng"
elog "and edit your .ng configuration file."
elog
}