Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/mg: ChangeLog mg-20130922.ebuild
Date: Fri, 04 Oct 2013 18:07:07
Message-Id: 20131004180704.1663F2004C@flycatcher.gentoo.org
1 ulm 13/10/04 18:07:04
2
3 Modified: ChangeLog
4 Added: mg-20130922.ebuild
5 Log:
6 Version bump. New dependency on dev-libs/clens which contains some OpenBSD glue-layer functions previously included with mg. Keywords dropped.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)
9
10 Revision Changes Path
11 1.56 app-editors/mg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/mg/ChangeLog?rev=1.56&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/mg/ChangeLog?rev=1.56&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/mg/ChangeLog?r1=1.55&r2=1.56
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v
20 retrieving revision 1.55
21 retrieving revision 1.56
22 diff -u -r1.55 -r1.56
23 --- ChangeLog 25 May 2013 14:30:16 -0000 1.55
24 +++ ChangeLog 4 Oct 2013 18:07:03 -0000 1.56
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-editors/mg
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.55 2013/05/25 14:30:16 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/ChangeLog,v 1.56 2013/10/04 18:07:03 ulm Exp $
30 +
31 +*mg-20130922 (04 Oct 2013)
32 +
33 + 04 Oct 2013; Ulrich Müller <ulm@g.o> +mg-20130922.ebuild:
34 + Version bump. New dependency on dev-libs/clens which contains some OpenBSD
35 + glue-layer functions previously included with mg. Keywords dropped.
36
37 25 May 2013; Ulrich Müller <ulm@g.o> -mg-20110905.ebuild:
38 Remove old.
39
40
41
42 1.1 app-editors/mg/mg-20130922.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/mg/mg-20130922.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/mg/mg-20130922.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mg-20130922.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20130922.ebuild,v 1.1 2013/10/04 18:07:03 ulm Exp $
52
53 EAPI=5
54
55 inherit toolchain-funcs
56
57 DESCRIPTION="MicroGnuEmacs, a port from the BSDs"
58 HOMEPAGE="http://homepage.boetes.org/software/mg/"
59 SRC_URI="http://homepage.boetes.org/software/mg/${P}.tar.gz"
60
61 LICENSE="public-domain"
62 SLOT="0"
63 KEYWORDS="~amd64"
64 IUSE="livecd"
65
66 RDEPEND="sys-libs/ncurses"
67 DEPEND="${RDEPEND}
68 virtual/pkgconfig
69 dev-libs/clens"
70
71 src_prepare() {
72 # create our own Makefile to avoid BSD make
73 echo -e 'SRCS =' *.c '\n\nmg: $(SRCS:.c=.o)' \
74 '\n\t$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)' >Makefile || die
75
76 # remove OpenBSD specific easter egg
77 sed -i -e 's/theo\.c//' Makefile || die
78 sed -i -e '/theo_init/d' main.c || die
79 }
80
81 src_compile() {
82 emake CC="$(tc-getCC)" \
83 CFLAGS="${CFLAGS} -DFKEYS -DREGEX -DXKEYS -I/usr/include/clens" \
84 LDLIBS="-lclens $("$(tc-getPKG_CONFIG)" --libs ncurses)"
85 }
86
87 src_install() {
88 dobin mg
89 doman mg.1
90 dodoc README tutorial
91 }
92
93 pkg_postinst() {
94 if use livecd; then
95 [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs
96 fi
97 }