1 |
commit: 1df4989e276d9e167d41d7b1aa68fd2002543cea |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 3 18:45:57 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 3 18:53:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1df4989e |
7 |
|
8 |
sci-libs/pgplot: Drop 5.2.2-r6 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
sci-libs/pgplot/pgplot-5.2.2-r6.ebuild | 180 --------------------------------- |
14 |
1 file changed, 180 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/pgplot/pgplot-5.2.2-r6.ebuild b/sci-libs/pgplot/pgplot-5.2.2-r6.ebuild |
17 |
deleted file mode 100644 |
18 |
index 87dd80c669a..00000000000 |
19 |
--- a/sci-libs/pgplot/pgplot-5.2.2-r6.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,180 +0,0 @@ |
22 |
-# Copyright 1999-2016 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=4 |
26 |
- |
27 |
-inherit eutils fortran-2 toolchain-funcs multilib |
28 |
- |
29 |
-MY_P="${PN}${PV//.}" |
30 |
- |
31 |
-DESCRIPTION="FORTRAN/C device-independent scientific graphic library" |
32 |
-HOMEPAGE="http://www.astro.caltech.edu/~tjp/pgplot/" |
33 |
-SRC_URI="ftp://ftp.astro.caltech.edu/pub/pgplot/${MY_P}.tar.gz" |
34 |
- |
35 |
-SLOT="0" |
36 |
-LICENSE="free-noncomm" |
37 |
-KEYWORDS="amd64 ~arm ~ia64 ~ppc x86 ~amd64-linux ~x86-linux" |
38 |
-IUSE="doc motif static-libs tk" |
39 |
- |
40 |
-RDEPEND=" |
41 |
- media-libs/libpng |
42 |
- x11-libs/libX11 |
43 |
- x11-libs/libXt |
44 |
- motif? ( >=x11-libs/motif-2.3:0 ) |
45 |
- tk? ( dev-lang/tk )" |
46 |
-DEPEND="${RDEPEND} |
47 |
- doc? ( virtual/latex-base )" |
48 |
- |
49 |
-S="${WORKDIR}/${PN}" |
50 |
- |
51 |
-src_prepare() { |
52 |
- epatch \ |
53 |
- "${FILESDIR}"/${PN}-drivers.patch \ |
54 |
- "${FILESDIR}"/${PN}-makemake.patch \ |
55 |
- "${FILESDIR}"/${PN}-compile-setup.patch \ |
56 |
- "${FILESDIR}"/${PN}-headers.patch \ |
57 |
- "${FILESDIR}"/${PN}-libpng15.patch \ |
58 |
- "${FILESDIR}"/${PN}-tk86.patch |
59 |
- |
60 |
- # gfortran < 4.3 does not compile gif, pp and wd drivers |
61 |
- if [[ $(tc-getFC) == *gfortran* ]] && |
62 |
- [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] ; then |
63 |
- echo |
64 |
- ewarn "Warning!" |
65 |
- ewarn "gfortran < 4.3 selected: does not compile all drivers" |
66 |
- ewarn "disabling gif, wd, and ppd drivers" |
67 |
- ewarn "if you want more drivers, use gfortran >= 4.3" |
68 |
- echo |
69 |
- sed -i \ |
70 |
- -e 's/GIDRIV/! GIDRIV/g' \ |
71 |
- -e 's/PPDRIV/! GIDRIV/g' \ |
72 |
- -e 's/WDDRIV/! GIDRIV/g' \ |
73 |
- drivers.list || die "sed drivers failed" |
74 |
- fi |
75 |
- |
76 |
- # fix pointers for 64 bits |
77 |
- if use amd64 || use ia64; then |
78 |
- sed -i \ |
79 |
- -e 's/INTEGER PIXMAP/INTEGER*8 PIXMAP/g' \ |
80 |
- drivers/{gi,pp,wd}driv.f || die "sed 64bits failed" |
81 |
- fi |
82 |
- |
83 |
- cp sys_linux/g77_gcc.conf local.conf |
84 |
- |
85 |
- sed -i \ |
86 |
- -e "s:FCOMPL=.*:FCOMPL=\"$(tc-getFC)\":g" \ |
87 |
- -e "s:CCOMPL=.*:CCOMPL=\"$(tc-getCC)\":g" \ |
88 |
- local.conf || die "sed flags failed" |
89 |
- |
90 |
- if [[ "$(tc-getFC)" = if* ]]; then |
91 |
- sed -i \ |
92 |
- -e 's/-Wall//g' \ |
93 |
- -e 's/TK_LIBS="/TK_LIBS="-nofor-main /' \ |
94 |
- local.conf || die "sed drivers failed" |
95 |
- fi |
96 |
- |
97 |
- sed -i \ |
98 |
- -e "s:/usr/local/pgplot:/usr/$(get_libdir)/pgplot:g" \ |
99 |
- -e "s:/usr/local/bin:/usr/bin:g" \ |
100 |
- src/grgfil.f makehtml maketex || die "sed path failed" |
101 |
- |
102 |
- use motif && sed -i -e '/XMDRIV/s/!//' drivers.list |
103 |
- use tk && sed -i -e '/TKDRIV/s/!//' drivers.list |
104 |
-} |
105 |
- |
106 |
-src_configure() { |
107 |
- ./makemake . linux |
108 |
- # post makefile creation prefix hack |
109 |
- sed -i -e "s|/usr|${EROOT}/usr|g" makefile || die |
110 |
-} |
111 |
- |
112 |
-src_compile() { |
113 |
- emake \ |
114 |
- CFLAGS="${CFLAGS} -fPIC" \ |
115 |
- FFLAGS="${FFLAGS} -fPIC" \ |
116 |
- shared cpg-shared pgxwin_server pgdisp pgplot.doc |
117 |
- |
118 |
- use tk && emake CFLAGS="${CFLAGS} -fPIC" libtkpgplot.so |
119 |
- use motif && emake CFLAGS="${CFLAGS} -fPIC" libXmPgplot.so |
120 |
- |
121 |
- emake -j1 clean |
122 |
- use static-libs && emake all cpg |
123 |
- |
124 |
- if use doc; then |
125 |
- export VARTEXFONTS="${T}/fonts" |
126 |
- emake pgplot.html pgplot-routines.tex |
127 |
- pdflatex pgplot-routines.tex |
128 |
- pdflatex pgplot-routines.tex |
129 |
- fi |
130 |
- |
131 |
- # this just cleans out not needed files |
132 |
- emake -j1 clean |
133 |
-} |
134 |
- |
135 |
-src_test() { |
136 |
- # i can go to 16 |
137 |
- local i j |
138 |
- for i in 1 2 3; do |
139 |
- emake pgdemo${i} |
140 |
- # j can also be LATEX CPS... |
141 |
- for j in NULL PNG PS CPS LATEX; do |
142 |
- local testexe=./test_${j}_${i} |
143 |
- echo "LD_LIBRARY_PATH=. ./pgdemo${i} <<EOF" > ${testexe} |
144 |
- echo "/${j}" >> ${testexe} |
145 |
- echo "EOF" >> ${testexe} |
146 |
- sh ${testexe} || die "test ${i} failed" |
147 |
- done |
148 |
- done |
149 |
-} |
150 |
- |
151 |
-src_install() { |
152 |
- insinto /usr/$(get_libdir)/pgplot |
153 |
- doins grfont.dat grexec.f *.inc rgb.txt |
154 |
- echo "PGPLOT_FONT=${EROOT%/}/usr/$(get_libdir)/pgplot/grfont.dat" >> 99pgplot |
155 |
- doenvd 99pgplot |
156 |
- |
157 |
- dolib.so libpgplot.so* |
158 |
- dobin pgxwin_server pgdisp |
159 |
- |
160 |
- # C binding |
161 |
- insinto /usr/include |
162 |
- doins cpgplot.h |
163 |
- dolib.so libcpgplot.so* |
164 |
- |
165 |
- if use motif; then |
166 |
- insinto /usr/include |
167 |
- doins XmPgplot.h |
168 |
- dolib.so libXmPgplot.so* |
169 |
- fi |
170 |
- |
171 |
- if use tk; then |
172 |
- insinto /usr/include |
173 |
- doins tkpgplot.h |
174 |
- dolib.so libtkpgplot.so* |
175 |
- fi |
176 |
- |
177 |
- use static-libs && dolib.a lib*pgplot.a |
178 |
- |
179 |
- # minimal doc |
180 |
- dodoc aaaread.me pgplot.doc |
181 |
- newdoc pgdispd/aaaread.me pgdispd.txt |
182 |
- |
183 |
- if use doc; then |
184 |
- dodoc cpg/cpgplot.doc applications/curvefit/curvefit.doc |
185 |
- dohtml pgplot.html |
186 |
- insinto /usr/share/doc/${PF} |
187 |
- doins pgplot-routines.pdf pgplot-routines.tex |
188 |
- insinto /usr/share/doc/${PF}/examples |
189 |
- doins examples/* cpg/cpgdemo.c |
190 |
- insinto /usr/share/doc/${PF}/applications |
191 |
- doins -r applications/* |
192 |
- if use motif; then |
193 |
- insinto /usr/share/doc/${PF}/pgm |
194 |
- doins pgmf/* drivers/xmotif/pgmdemo.c |
195 |
- fi |
196 |
- if use tk; then |
197 |
- insinto /usr/share/doc/${PF}/pgtk |
198 |
- doins drivers/xtk/pgtkdemo.* |
199 |
- fi |
200 |
- fi |
201 |
-} |