| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20110905.ebuild,v 1.14 2013/02/28 17:04:08 ulm Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="MicroGnuEmacs, a port from the BSDs"
|
| 10 |
HOMEPAGE="http://homepage.boetes.org/software/mg/"
|
| 11 |
SRC_URI="http://homepage.boetes.org/software/mg/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="public-domain ISC BSD"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
|
| 16 |
IUSE="livecd"
|
| 17 |
|
| 18 |
RDEPEND="sys-libs/ncurses"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
virtual/pkgconfig"
|
| 21 |
|
| 22 |
src_configure() {
|
| 23 |
# econf won't work, as this script does not accept any parameters
|
| 24 |
./configure || die "configure failed"
|
| 25 |
}
|
| 26 |
|
| 27 |
src_compile() {
|
| 28 |
emake CC="$(tc-getCC)" \
|
| 29 |
CFLAGS="${CFLAGS}" \
|
| 30 |
LDFLAGS="${LDFLAGS}" \
|
| 31 |
LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
einstall
|
| 36 |
dodoc README tutorial
|
| 37 |
}
|
| 38 |
|
| 39 |
pkg_postinst() {
|
| 40 |
if use livecd; then
|
| 41 |
[[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
|
| 42 |
fi
|
| 43 |
}
|