You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.1 KiB
65 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
4 years ago
|
inherit autotools toolchain-funcs
|
||
7 years ago
|
|
||
|
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"
|
||
3 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
7 years ago
|
|
||
|
LICENSE="Emacs"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="amd64 ppc x86"
|
||
7 years ago
|
|
||
|
RDEPEND="
|
||
|
sys-libs/ncurses:0=
|
||
3 years ago
|
!dev-java/nailgun"
|
||
|
DEPEND="${RDEPEND}"
|
||
7 years ago
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/${MY_P}-ncurses.patch"
|
||
|
"${FILESDIR}/${MY_P}-configure.patch"
|
||
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
sed -i -e "/NO_BACKUP/s/undef/define/" config.h || die "sed failed"
|
||
|
pushd sys/unix > /dev/null || die
|
||
|
eautoconf
|
||
|
popd > /dev/null || die
|
||
|
cp sys/unix/configure . || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
3 years ago
|
econf --disable-canna
|
||
7 years ago
|
}
|
||
|
|
||
|
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
|
||
|
}
|