1 |
keri 11/04/30 20:28:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mercury-extras-11.01.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.1.9.42/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.90 dev-lang/mercury-extras/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/ChangeLog?rev=1.90&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/ChangeLog?rev=1.90&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/ChangeLog?r1=1.89&r2=1.90 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v |
20 |
retrieving revision 1.89 |
21 |
retrieving revision 1.90 |
22 |
diff -u -r1.89 -r1.90 |
23 |
--- ChangeLog 12 Feb 2011 18:29:05 -0000 1.89 |
24 |
+++ ChangeLog 30 Apr 2011 20:28:35 -0000 1.90 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-lang/mercury-extras |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.89 2011/02/12 18:29:05 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.90 2011/04/30 20:28:35 keri Exp $ |
30 |
+ |
31 |
+*mercury-extras-11.01 (30 Apr 2011) |
32 |
+ |
33 |
+ 30 Apr 2011; <keri@g.o> +mercury-extras-11.01.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
12 Feb 2011; Raúl Porcel <armin76@g.o> |
37 |
mercury-extras-0.13.1-r1.ebuild, mercury-extras-10.04.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-lang/mercury-extras/mercury-extras-11.01.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/mercury-extras-11.01.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/mercury-extras-11.01.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mercury-extras-11.01.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/mercury-extras-11.01.ebuild,v 1.1 2011/04/30 20:28:35 keri Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
|
54 |
inherit eutils |
55 |
|
56 |
PATCHSET_VER="0" |
57 |
|
58 |
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library" |
59 |
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html" |
60 |
SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz |
61 |
mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~ppc ~x86" |
66 |
|
67 |
IUSE="X cairo examples glut iodbc ncurses odbc opengl ssl tcl tk xml" |
68 |
|
69 |
RDEPEND="~dev-lang/mercury-${PV} |
70 |
cairo? ( >=x11-libs/cairo-1.10.0 ) |
71 |
glut? ( media-libs/freeglut ) |
72 |
odbc? ( dev-db/unixODBC ) |
73 |
iodbc? ( !odbc? ( dev-db/libiodbc ) ) |
74 |
ncurses? ( sys-libs/ncurses ) |
75 |
opengl? ( virtual/opengl ) |
76 |
tcl? ( tk? ( |
77 |
dev-lang/tcl |
78 |
dev-lang/tk |
79 |
x11-libs/libX11 |
80 |
x11-libs/libXmu ) )" |
81 |
|
82 |
DEPEND="${RDEPEND}" |
83 |
|
84 |
S="${WORKDIR}"/${P} |
85 |
|
86 |
src_prepare() { |
87 |
cd "${WORKDIR}" |
88 |
|
89 |
EPATCH_FORCE=yes |
90 |
EPATCH_SUFFIX=patch |
91 |
epatch "${WORKDIR}"/${PV} |
92 |
|
93 |
if use odbc; then |
94 |
epatch "${WORKDIR}"/${PV}-odbc/${P}-odbc.patch |
95 |
elif use iodbc; then |
96 |
epatch "${WORKDIR}"/${PV}-odbc/${P}-iodbc.patch |
97 |
fi |
98 |
|
99 |
cd "${S}" |
100 |
sed -i -e "s:references:references solver_types/library:" \ |
101 |
-e "s:windows_installer_generator::" \ |
102 |
Mmakefile || die "sed default packages failed" |
103 |
|
104 |
if use cairo; then |
105 |
sed -i -e "s: lex : graphics/mercury_cairo lex :" Mmakefile \ |
106 |
|| die "sed cairo failed" |
107 |
fi |
108 |
|
109 |
if use glut; then |
110 |
sed -i -e "s: lex : graphics/mercury_glut lex :" Mmakefile \ |
111 |
|| die "sed glut failed" |
112 |
fi |
113 |
|
114 |
if use opengl; then |
115 |
sed -i -e "s: lex : graphics/mercury_opengl lex :" Mmakefile \ |
116 |
|| die "sed opengl failed" |
117 |
fi |
118 |
|
119 |
if use tcl && use tk; then |
120 |
sed -i -e "s: lex : graphics/mercury_tcltk lex :" Mmakefile \ |
121 |
|| die "sed tcltk failed" |
122 |
fi |
123 |
|
124 |
if use odbc || use iodbc; then |
125 |
sed -i -e "s:moose:moose odbc:" Mmakefile \ |
126 |
|| die "sed odbc failed" |
127 |
fi |
128 |
|
129 |
if ! use ncurses; then |
130 |
sed -i -e "s:curs curses::" Mmakefile \ |
131 |
|| die "sed ncurses failed" |
132 |
fi |
133 |
|
134 |
if ! use xml; then |
135 |
sed -i -e "s:xml::" Mmakefile \ |
136 |
|| die "sed xml failed" |
137 |
fi |
138 |
|
139 |
sed -i -e "s:@libdir@:$(get_libdir):" \ |
140 |
dynamic_linking/Mmakefile posix/Mmakefile \ |
141 |
|| die "sed libdir failed" |
142 |
|
143 |
# disable broken packages |
144 |
sed -i -e "s:lazy_evaluation::" -e "s:references::" Mmakefile \ |
145 |
|| die "sed broken packages failed" |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
# Mercury dependency generation must be run single-threaded |
150 |
mmake \ |
151 |
-j1 depend || die "mmake depend failed" |
152 |
|
153 |
mmake \ |
154 |
MMAKEFLAGS="${MAKEOPTS}" \ |
155 |
EXTRA_MLFLAGS=--no-strip \ |
156 |
EXTRA_LDFLAGS="${LDFLAGS}" \ |
157 |
EXTRA_LD_LIBFLAGS="${LDFLAGS}" \ |
158 |
|| die "mmake failed" |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
mmake \ |
163 |
MMAKEFLAGS="${MAKEOPTS}" \ |
164 |
EXTRA_LD_LIBFLAGS="${LDFLAGS}" \ |
165 |
INSTALL_PREFIX="${D}"/usr \ |
166 |
install || die "mmake install failed" |
167 |
|
168 |
find "${D}"/usr/$(get_libdir)/mercury -type l | xargs rm |
169 |
|
170 |
cd "${S}" |
171 |
if use examples; then |
172 |
insinto /usr/share/doc/${PF}/samples/base64 |
173 |
doins base64/*.m || die |
174 |
|
175 |
insinto /usr/share/doc/${PF}/samples/complex_numbers |
176 |
doins complex_numbers/samples/* || die |
177 |
|
178 |
insinto /usr/share/doc/${PF}/samples/dynamic_linking |
179 |
doins dynamic_linking/hello.m || die |
180 |
|
181 |
insinto /usr/share/doc/${PF}/samples/error |
182 |
doins error/* || die |
183 |
|
184 |
insinto /usr/share/doc/${PF}/samples/fixed |
185 |
doins fixed/*.m || die |
186 |
|
187 |
insinto /usr/share/doc/${PF}/samples/gator |
188 |
doins -r gator/* || die |
189 |
|
190 |
insinto /usr/share/doc/${PF}/samples/lex |
191 |
doins lex/samples/* || die |
192 |
|
193 |
insinto /usr/share/doc/${PF}/samples/log4m |
194 |
doins log4m/*.m || die |
195 |
|
196 |
insinto /usr/share/doc/${PF}/samples/monte |
197 |
doins monte/*.m || die |
198 |
|
199 |
insinto /usr/share/doc/${PF}/samples/moose |
200 |
doins moose/samples/* || die |
201 |
|
202 |
insinto /usr/share/doc/${PF}/samples/net |
203 |
doins net/*.m || die |
204 |
|
205 |
if use ncurses; then |
206 |
insinto /usr/share/doc/${PF}/samples/curs |
207 |
doins curs/samples/* || die |
208 |
|
209 |
insinto /usr/share/doc/${PF}/samples/curses |
210 |
doins curses/sample/* || die |
211 |
fi |
212 |
|
213 |
if use X; then |
214 |
insinto /usr/share/doc/${PF}/samples/graphics |
215 |
doins graphics/easyx/samples/*.m || die |
216 |
fi |
217 |
|
218 |
if use glut && use opengl; then |
219 |
insinto /usr/share/doc/${PF}/samples/graphics |
220 |
doins graphics/samples/calc/* || die |
221 |
doins graphics/samples/gears/* || die |
222 |
doins graphics/samples/maze/* || die |
223 |
doins graphics/samples/pent/* || die |
224 |
fi |
225 |
|
226 |
if use opengl && use tcl && use tk; then |
227 |
insinto /usr/share/doc/${PF}/samples/graphics |
228 |
doins graphics/samples/pent/*.m || die |
229 |
fi |
230 |
|
231 |
if use ssl; then |
232 |
insinto /usr/share/doc/${PF}/samples/mopenssl |
233 |
doins mopenssl/*.m || die |
234 |
fi |
235 |
fi |
236 |
|
237 |
rm -rf $(find "${D}"/usr/share/doc/${PF}/samples -name CVS) |
238 |
|
239 |
dodoc README || die |
240 |
} |