Gentoo Archives: gentoo-commits

From: "Jonathan Callen (abcd)" <abcd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/mp: mp-3.3.18b.ebuild ChangeLog mp-5.1.1.ebuild
Date: Mon, 05 Apr 2010 04:17:01
Message-Id: E1Nydk8-0001iX-KX@stork.gentoo.org
1 abcd 10/04/05 04:16:56
2
3 Modified: mp-3.3.18b.ebuild ChangeLog mp-5.1.1.ebuild
4 Log:
5 Bump to EAPI=3, add prefix keywords
6 (Portage version: -svn/cvs/Linux i686)
7
8 Revision Changes Path
9 1.9 app-editors/mp/mp-3.3.18b.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild?rev=1.9&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild?rev=1.9&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild?r1=1.8&r2=1.9
14
15 Index: mp-3.3.18b.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild,v
18 retrieving revision 1.8
19 retrieving revision 1.9
20 diff -u -r1.8 -r1.9
21 --- mp-3.3.18b.ebuild 23 Sep 2009 15:23:22 -0000 1.8
22 +++ mp-3.3.18b.ebuild 5 Apr 2010 04:16:56 -0000 1.9
23 @@ -1,6 +1,8 @@
24 -# Copyright 1999-2009 Gentoo Foundation
25 +# Copyright 1999-2010 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild,v 1.8 2009/09/23 15:23:22 patrick Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild,v 1.9 2010/04/05 04:16:56 abcd Exp $
29 +
30 +EAPI="3"
31
32 inherit eutils toolchain-funcs
33
34 @@ -10,7 +12,7 @@
35
36 LICENSE="GPL-2"
37 SLOT="0"
38 -KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
39 +KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-interix ~ppc-macos ~sparc-solaris ~x86-solaris"
40 IUSE="gtk ncurses nls pcre"
41
42 RDEPEND="!dev-util/rej
43 @@ -23,8 +25,8 @@
44 DEPEND="${RDEPEND}
45 dev-util/pkgconfig"
46
47 -src_compile() {
48 - local myconf="--prefix=/usr --without-win32 --without-gtk1"
49 +src_configure() {
50 + local myconf="--prefix=${EPREFIX}/usr --without-win32 --without-gtk1"
51 tc-export CC
52
53 if use gtk ; then
54 @@ -40,14 +42,12 @@
55
56 echo ${CFLAGS} >> config.cflags
57 echo ${LDFLAGS} >> config.ldflags
58 -
59 - emake || die "Compile Failed"
60 }
61
62 src_install() {
63 dobin mp || die "Install Failed"
64
65 - use gtk && dosym mp ${DESTTREE}/bin/gmp
66 + use gtk && dosym mp /usr/bin/gmp
67
68 dodoc AUTHORS README Changelog mprc.sample
69 doman mp.1
70
71
72
73 1.69 app-editors/mp/ChangeLog
74
75 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/ChangeLog?rev=1.69&view=markup
76 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/ChangeLog?rev=1.69&content-type=text/plain
77 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/ChangeLog?r1=1.68&r2=1.69
78
79 Index: ChangeLog
80 ===================================================================
81 RCS file: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v
82 retrieving revision 1.68
83 retrieving revision 1.69
84 diff -u -r1.68 -r1.69
85 --- ChangeLog 23 Sep 2009 15:23:22 -0000 1.68
86 +++ ChangeLog 5 Apr 2010 04:16:56 -0000 1.69
87 @@ -1,6 +1,10 @@
88 # ChangeLog for app-editors/mp
89 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
90 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v 1.68 2009/09/23 15:23:22 patrick Exp $
91 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
92 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/ChangeLog,v 1.69 2010/04/05 04:16:56 abcd Exp $
93 +
94 + 05 Apr 2010; Jonathan Callen <abcd@g.o> mp-3.3.18b.ebuild,
95 + mp-5.1.1.ebuild:
96 + Bump to EAPI=3, add prefix keywords
97
98 23 Sep 2009; Patrick Lauer <patrick@g.o> mp-3.3.18b.ebuild,
99 mp-5.1.1.ebuild:
100
101
102
103 1.3 app-editors/mp/mp-5.1.1.ebuild
104
105 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild?rev=1.3&view=markup
106 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild?rev=1.3&content-type=text/plain
107 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild?r1=1.2&r2=1.3
108
109 Index: mp-5.1.1.ebuild
110 ===================================================================
111 RCS file: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild,v
112 retrieving revision 1.2
113 retrieving revision 1.3
114 diff -u -r1.2 -r1.3
115 --- mp-5.1.1.ebuild 23 Sep 2009 15:23:22 -0000 1.2
116 +++ mp-5.1.1.ebuild 5 Apr 2010 04:16:56 -0000 1.3
117 @@ -1,6 +1,8 @@
118 -# Copyright 1999-2009 Gentoo Foundation
119 +# Copyright 1999-2010 Gentoo Foundation
120 # Distributed under the terms of the GNU General Public License v2
121 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild,v 1.2 2009/09/23 15:23:22 patrick Exp $
122 +# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.1.1.ebuild,v 1.3 2010/04/05 04:16:56 abcd Exp $
123 +
124 +EAPI="3"
125
126 inherit eutils
127
128 @@ -10,7 +12,7 @@
129
130 LICENSE="GPL-2"
131 SLOT="0"
132 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
133 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-interix ~ppc-macos ~sparc-solaris ~x86-solaris"
134 IUSE="gtk ncurses nls pcre iconv"
135
136 RDEPEND="ncurses? ( sys-libs/ncurses )
137 @@ -25,8 +27,8 @@
138 dev-util/pkgconfig
139 dev-lang/perl"
140
141 -src_compile() {
142 - local myconf="--prefix=/usr --without-win32"
143 +src_configure() {
144 + local myconf="--prefix=${EPREFIX}/usr --without-win32"
145
146 if use gtk; then
147 ! use ncurses && myconf="${myconf} --without-curses"
148 @@ -36,11 +38,8 @@
149
150 use nls || myconfig="${myconf} --without-gettext"
151
152 - if use pcre; then
153 - myconf="${myconf} --with-pcre"
154 - else
155 - myconf="${myconf} --without-pcre --with-included-regex"
156 - fi
157 + myconf="${myconf} $(use_with pcre)"
158 + use pcre || myconf="${myconf} --with-included-regex"
159
160 use iconv || myconf="${myconf} --without-iconv"
161
162 @@ -48,14 +47,13 @@
163
164 echo ${CFLAGS} >> config.cflags
165 echo ${LDFLAGS} >> config.ldflags
166 - emake || die "Compile Failed"
167 }
168
169 src_install() {
170 - mkdir -p "${D}/${DESTTREE}/bin"
171 - sh config.sh --prefix="${DESTTREE}"
172 + dodir /usr/bin
173 + sh config.sh --prefix="${EPREFIX}/usr"
174 make DESTDIR="${D}" install || die "Install Failed"
175 - use gtk && dosym mp-5 ${DESTTREE}/bin/gmp
176 + use gtk && dosym mp-5 /usr/bin/gmp
177 }
178
179 pkg_postinst() {