1 |
bicatali 12/07/05 22:00:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pgplot-5.2.2-r5.ebuild |
5 |
Removed: pgplot-5.2.2-r3.ebuild pgplot-5.2.2-r4.ebuild |
6 |
Log: |
7 |
Switch to EAPI4, added static-libs, fixed makemake patch, keyword amd64-linux, x86-linux |
8 |
|
9 |
(Portage version: 2.2.01.20430-prefix/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.24 sci-libs/pgplot/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/pgplot/ChangeLog?rev=1.24&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/pgplot/ChangeLog?rev=1.24&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/pgplot/ChangeLog?r1=1.23&r2=1.24 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/pgplot/ChangeLog,v |
21 |
retrieving revision 1.23 |
22 |
retrieving revision 1.24 |
23 |
diff -u -r1.23 -r1.24 |
24 |
--- ChangeLog 14 Sep 2011 16:01:26 -0000 1.23 |
25 |
+++ ChangeLog 5 Jul 2012 22:00:11 -0000 1.24 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for sci-libs/pgplot |
28 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/pgplot/ChangeLog,v 1.23 2011/09/14 16:01:26 ssuominen Exp $ |
30 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/pgplot/ChangeLog,v 1.24 2012/07/05 22:00:11 bicatali Exp $ |
32 |
+ |
33 |
+*pgplot-5.2.2-r5 (05 Jul 2012) |
34 |
+ |
35 |
+ 05 Jul 2012; Sébastien Fabbro <bicatali@g.o> +pgplot-5.2.2-r5.ebuild, |
36 |
+ -files/pgplot-ldflags.patch, -pgplot-5.2.2-r3.ebuild, -pgplot-5.2.2-r4.ebuild, |
37 |
+ files/pgplot-makemake.patch: |
38 |
+ Switch to EAPI4, added static-libs, fixed makemake patch, keyword amd64-linux, |
39 |
+ x86-linux |
40 |
|
41 |
14 Sep 2011; Samuli Suominen <ssuominen@g.o> |
42 |
+files/pgplot-libpng15.patch, pgplot-5.2.2-r4.ebuild: |
43 |
|
44 |
|
45 |
|
46 |
1.1 sci-libs/pgplot/pgplot-5.2.2-r5.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/pgplot/pgplot-5.2.2-r5.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/pgplot/pgplot-5.2.2-r5.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: pgplot-5.2.2-r5.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2012 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/pgplot/pgplot-5.2.2-r5.ebuild,v 1.1 2012/07/05 22:00:11 bicatali Exp $ |
56 |
|
57 |
EAPI=4 |
58 |
inherit eutils fortran-2 toolchain-funcs multilib |
59 |
|
60 |
MY_P="${PN}${PV//.}" |
61 |
|
62 |
DESCRIPTION="FORTRAN/C device-independent scientific graphic library" |
63 |
HOMEPAGE="http://www.astro.caltech.edu/~tjp/pgplot/" |
64 |
SRC_URI="ftp://ftp.astro.caltech.edu/pub/pgplot/${MY_P}.tar.gz" |
65 |
LICENSE="free-noncomm" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
68 |
IUSE="doc motif static-libs tk" |
69 |
RDEPEND="media-libs/libpng |
70 |
virtual/fortran |
71 |
x11-libs/libX11 |
72 |
x11-libs/libXt |
73 |
motif? ( >=x11-libs/openmotif-2.3:0 ) |
74 |
tk? ( dev-lang/tk )" |
75 |
DEPEND="${RDEPEND} |
76 |
doc? ( virtual/latex-base )" |
77 |
|
78 |
S="${WORKDIR}/${PN}" |
79 |
|
80 |
src_prepare() { |
81 |
epatch \ |
82 |
"${FILESDIR}"/${PN}-drivers.patch \ |
83 |
"${FILESDIR}"/${PN}-makemake.patch \ |
84 |
"${FILESDIR}"/${PN}-compile-setup.patch \ |
85 |
"${FILESDIR}"/${PN}-headers.patch \ |
86 |
"${FILESDIR}"/${PN}-libpng15.patch |
87 |
|
88 |
# gfortran < 4.3 does not compile gif, pp and wd drivers |
89 |
if [[ $(tc-getFC) == *gfortran* ]] && |
90 |
[[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] ; then |
91 |
ewarn |
92 |
ewarn "Warning!" |
93 |
ewarn "gfortran < 4.3 selected: does not compile all drivers" |
94 |
ewarn "disabling gif, wd, and ppd drivers" |
95 |
ewarn "if you want more drivers, use gfortran >= 4.3" |
96 |
ewarn |
97 |
sed -i \ |
98 |
-e 's/GIDRIV/! GIDRIV/g' \ |
99 |
-e 's/PPDRIV/! GIDRIV/g' \ |
100 |
-e 's/WDDRIV/! GIDRIV/g' \ |
101 |
drivers.list || die "sed drivers failed" |
102 |
fi |
103 |
|
104 |
# fix pointers for 64 bits |
105 |
if use amd64 || use ia64; then |
106 |
sed -i \ |
107 |
-e 's/INTEGER PIXMAP/INTEGER*8 PIXMAP/g' \ |
108 |
drivers/{gi,pp,wd}driv.f || die "sed 64bits failed" |
109 |
fi |
110 |
|
111 |
cp sys_linux/g77_gcc.conf local.conf |
112 |
|
113 |
sed -i \ |
114 |
-e "s:FCOMPL=.*:FCOMPL=\"$(tc-getFC)\":g" \ |
115 |
-e "s:CCOMPL=.*:CCOMPL=\"$(tc-getCC)\":g" \ |
116 |
local.conf || die "sed flags failed" |
117 |
|
118 |
if [[ "$(tc-getFC)" = if* ]]; then |
119 |
sed -i \ |
120 |
-e 's/-Wall//g' \ |
121 |
-e 's/TK_LIBS="/TK_LIBS="-nofor-main /' \ |
122 |
local.conf || die "sed drivers failed" |
123 |
fi |
124 |
|
125 |
sed -i \ |
126 |
-e "s:/usr/local/pgplot:/usr/$(get_libdir)/pgplot:g" \ |
127 |
-e "s:/usr/local/bin:/usr/bin:g" \ |
128 |
src/grgfil.f makehtml maketex || die "sed path failed" |
129 |
|
130 |
use motif && sed -i -e '/XMDRIV/s/!//' drivers.list |
131 |
use tk && sed -i -e '/TKDRIV/s/!//' drivers.list |
132 |
} |
133 |
|
134 |
src_configure() { |
135 |
./makemake . linux |
136 |
# post makefile creation prefix hack |
137 |
sed -i -e "s|/usr|${EROOT}/usr|g" makefile || die |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
emake \ |
142 |
CFLAGS="${CFLAGS} -fPIC" \ |
143 |
FFLAGS="${FFLAGS} -fPIC" \ |
144 |
shared cpg-shared pgxwin_server pgdisp pgplot.doc |
145 |
|
146 |
use tk && emake CFLAGS="${CFLAGS} -fPIC" libtkpgplot.so |
147 |
use motif && emake CFLAGS="${CFLAGS} -fPIC" libXmPgplot.so |
148 |
|
149 |
emake -j1 clean |
150 |
use static-libs && emake all cpg |
151 |
|
152 |
if use doc; then |
153 |
export VARTEXFONTS="${T}/fonts" |
154 |
emake pgplot.html pgplot-routines.tex |
155 |
pdflatex pgplot-routines.tex |
156 |
pdflatex pgplot-routines.tex |
157 |
fi |
158 |
|
159 |
# this just cleans out not needed files |
160 |
emake -j1 clean |
161 |
} |
162 |
|
163 |
src_test() { |
164 |
# i can go to 16 |
165 |
local i j |
166 |
for i in 1 2 3; do |
167 |
emake pgdemo${i} |
168 |
# j can also be LATEX CPS... |
169 |
for j in NULL PNG PS CPS LATEX; do |
170 |
local testexe=./test_${j}_${i} |
171 |
echo "LD_LIBRARY_PATH=. ./pgdemo${i} <<EOF" > ${testexe} |
172 |
echo "/${j}" >> ${testexe} |
173 |
echo "EOF" >> ${testexe} |
174 |
sh ${testexe} || die "test ${i} failed" |
175 |
done |
176 |
done |
177 |
} |
178 |
|
179 |
src_install() { |
180 |
insinto /usr/$(get_libdir)/pgplot |
181 |
doins grfont.dat grexec.f *.inc rgb.txt |
182 |
|
183 |
dolib.so libpgplot.so* |
184 |
dobin pgxwin_server pgdisp |
185 |
|
186 |
# C binding |
187 |
insinto /usr/include |
188 |
doins cpgplot.h |
189 |
dolib.so libcpgplot.so* |
190 |
|
191 |
if use motif; then |
192 |
insinto /usr/include |
193 |
doins XmPgplot.h |
194 |
dolib.so libXmPgplot.so* |
195 |
fi |
196 |
|
197 |
if use tk; then |
198 |
insinto /usr/include |
199 |
doins tkpgplot.h |
200 |
dolib.so libtkpgplot.so* |
201 |
fi |
202 |
|
203 |
use static-libs && dolib.a lib*pgplot.a |
204 |
|
205 |
# minimal doc |
206 |
dodoc aaaread.me pgplot.doc |
207 |
newdoc pgdispd/aaaread.me pgdispd.txt |
208 |
|
209 |
if use doc; then |
210 |
dodoc cpg/cpgplot.doc applications/curvefit/curvefit.doc |
211 |
dohtml pgplot.html |
212 |
insinto /usr/share/doc/${PF} |
213 |
doins pgplot-routines.pdf pgplot-routines.tex |
214 |
insinto /usr/share/doc/${PF}/examples |
215 |
doins examples/* cpg/cpgdemo.c |
216 |
insinto /usr/share/doc/${PF}/applications |
217 |
doins -r applications/* |
218 |
if use motif; then |
219 |
insinto /usr/share/doc/${PF}/pgm |
220 |
doins pgmf/* drivers/xmotif/pgmdemo.c |
221 |
fi |
222 |
if use tk; then |
223 |
insinto /usr/share/doc/${PF}/pgtk |
224 |
doins drivers/xtk/pgtkdemo.* |
225 |
fi |
226 |
fi |
227 |
} |