Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/mp: ChangeLog mp-5.1.1.ebuild
Date: Wed, 31 Dec 2008 05:29:09
Message-Id: E1LHtdi-0003lb-FU@stork.gentoo.org
1 darkside 08/12/31 05:29:06
2
3 Modified: ChangeLog
4 Added: mp-5.1.1.ebuild
5 Log:
6 (non maintainer commit) Version bump to latest - dropped arches due to added dep. Thanks to the work of Guenther Brunthaler in bug 205950
7 (Portage version: 2.2_rc20/cvs/Linux 2.6.27.10 x86_64)
8
9 Revision Changes Path
10 1.67 app-editors/mp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/ChangeLog?rev=1.67&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/ChangeLog?rev=1.67&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/ChangeLog?r1=1.66&r2=1.67
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v
19 retrieving revision 1.66
20 retrieving revision 1.67
21 diff -u -r1.66 -r1.67
22 --- ChangeLog 30 Dec 2008 18:41:07 -0000 1.66
23 +++ ChangeLog 31 Dec 2008 05:29:06 -0000 1.67
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-editors/mp
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v 1.66 2008/12/30 18:41:07 angelos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v 1.67 2008/12/31 05:29:06 darkside Exp $
29 +
30 +*mp-5.1.1 (31 Dec 2008)
31 +
32 + 31 Dec 2008; Jeremy Olexa <darkside@g.o> +mp-5.1.1.ebuild:
33 + (non maintainer commit) Version bump to latest - dropped arches due to added
34 + dep. Thanks to the work of Guenther Brunthaler in bug 205950
35
36 30 Dec 2008; Christoph Mende <angelos@g.o> mp-3.3.18b.ebuild:
37 QA: Respect CC (bug 243568)
38
39
40
41 1.1 app-editors/mp/mp-5.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mp-5.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild,v 1.1 2008/12/31 05:29:06 darkside Exp $
51
52 inherit eutils
53
54 DESCRIPTION="Minimum Profit: A text editor for programmers"
55 HOMEPAGE="http://www.triptico.com/software/mp.html"
56 SRC_URI="http://www.triptico.com/download/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
61 IUSE="gtk ncurses nls pcre iconv"
62
63 RDEPEND="virtual/libc
64 ncurses? ( sys-libs/ncurses )
65 gtk? ( >=x11-libs/gtk+-2 >=x11-libs/pango-1.8.0 )
66 !gtk? ( sys-libs/ncurses )
67 nls? ( sys-devel/gettext )
68 pcre? ( dev-libs/libpcre )
69 iconv? ( virtual/libiconv )
70 app-text/grutatxt"
71 DEPEND="${RDEPEND}
72 app-text/grutatxt
73 dev-util/pkgconfig
74 dev-lang/perl"
75
76 src_compile() {
77 local myconf="--prefix=/usr --without-win32"
78
79 if use gtk; then
80 ! use ncurses && myconf="${myconf} --without-curses"
81 else
82 myconf="${myconf} --without-gtk2"
83 fi
84
85 use nls || myconfig="${myconf} --without-gettext"
86
87 if use pcre; then
88 myconf="${myconf} --with-pcre"
89 else
90 myconf="${myconf} --without-pcre --with-included-regex"
91 fi
92
93 use iconv || myconf="${myconf} --without-iconv"
94
95 sh config.sh ${myconf} || die "Configure failed"
96
97 echo ${CFLAGS} >> config.cflags
98 echo ${LDFLAGS} >> config.ldflags
99 emake || die "Compile Failed"
100 }
101
102 src_install() {
103 mkdir -p "${D}/${DESTTREE}/bin"
104 sh config.sh --prefix="${DESTTREE}"
105 make DESTDIR="${D}" install || die "Install Failed"
106 use gtk && dosym mp-5 ${DESTTREE}/bin/gmp
107 }
108
109 pkg_postinst() {
110 if use gtk ; then
111 einfo
112 einfo "mp-5 is symlinked to gmp! Use"
113 einfo "$ DISPLAY=\"\" mp-5"
114 einfo "to use text mode!"
115 einfo
116 epause 5
117 fi
118 }