/[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.11 - (hide annotations) (download)
Tue Jul 24 16:29:30 2012 UTC (2 years, 1 month ago) by ulm
Branch: MAIN
Changes since 1.10: +2 -2 lines
Add ~amd64-fbsd keyword, bug 384639.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 ranger 1.10 # Copyright 1999-2012 Gentoo Foundation
2 ulm 1.1 # Distributed under the terms of the GNU General Public License v2
3 ulm 1.11 # $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20110905.ebuild,v 1.10 2012/01/06 15:18:08 ranger Exp $
4 ulm 1.1
5     EAPI=4
6    
7     inherit toolchain-funcs
8    
9     DESCRIPTION="Micro GNU/emacs, 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 BSD"
14     SLOT="0"
15 ulm 1.11 KEYWORDS="alpha amd64 hppa ppc sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
16 ulm 1.3 IUSE="livecd"
17 ulm 1.1
18     DEPEND="sys-libs/ncurses"
19     RDEPEND="${DEPEND}"
20    
21     src_configure() {
22     # econf won't work, as this script does not accept any parameters
23     ./configure || die "configure failed"
24     }
25    
26     src_compile() {
27     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
28     }
29    
30     src_install() {
31     einstall
32     dodoc README tutorial
33     }
34 ulm 1.3
35     pkg_postinst() {
36     if use livecd; then
37     [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
38     fi
39     }

  ViewVC Help
Powered by ViewVC 1.1.20