/[gentoo-x86]/app-editors/mg/mg-20110905.ebuild
Gentoo

Contents of /app-editors/mg/mg-20110905.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sat May 25 14:30:16 2013 UTC (15 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

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.15 2013/03/20 17:20:50 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 }

  ViewVC Help
Powered by ViewVC 1.1.20