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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Apr 19 09:44:04 2015 UTC (4 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
x86 stable wrt bug #536006

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20141127.ebuild,v 1.7 2015/04/13 09:40:50 ago Exp $
4
5 EAPI=5
6
7 inherit eutils 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"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd"
16 IUSE="livecd"
17
18 RDEPEND="sys-libs/ncurses
19 !elibc_FreeBSD? ( >=dev-libs/libbsd-0.7.0 )"
20 DEPEND="${RDEPEND}
21 virtual/pkgconfig"
22
23 src_prepare() {
24 epatch_user
25
26 # remove OpenBSD specific easter egg
27 sed -i -e 's/theo\.o//' GNUmakefile || die
28 sed -i -e '/theo_init/d' main.c || die
29
30 # fix path to tutorial in man page
31 sed -i -e "s:doc/mg/:doc/${PF}/:" mg.1 || die
32 }
33
34 src_compile() {
35 emake CC="$(tc-getCC)" \
36 CFLAGS="${CFLAGS}" \
37 CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
38 }
39
40 src_install() {
41 dobin mg
42 doman mg.1
43 dodoc README tutorial
44 # don't compress the tutorial, otherwise mg cannot open it
45 docompress -x /usr/share/doc/${PF}/tutorial
46 }
47
48 pkg_postinst() {
49 if use livecd; then
50 [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20