1 |
commit: 0cb993816aeb680ca03eae50d3a4cf154ad56de9 |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 28 12:56:09 2011 +0000 |
4 |
Commit: Christoph Junghans <kleiner_otti <AT> gmx <DOT> de> |
5 |
CommitDate: Sat May 28 12:56:09 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0cb99381 |
7 |
|
8 |
[sci-visualization/gnuplot] 4.4.3-r1 InCVS |
9 |
|
10 |
(Portage version: 2.1.9.42/git/Linux i686, signed Manifest commit with key C2000586) |
11 |
|
12 |
--- |
13 |
sci-visualization/gnuplot/ChangeLog | 4 + |
14 |
sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild | 246 --------------------- |
15 |
2 files changed, 4 insertions(+), 246 deletions(-) |
16 |
|
17 |
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog |
18 |
index d13a5c0..127125b 100644 |
19 |
--- a/sci-visualization/gnuplot/ChangeLog |
20 |
+++ b/sci-visualization/gnuplot/ChangeLog |
21 |
@@ -2,6 +2,10 @@ |
22 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+ 28 May 2011; Christoph Junghans <ottxor@g.o> -gnuplot-4.4.3-r1.ebuild, |
26 |
+ metadata.xml: |
27 |
+ InCVS |
28 |
+ |
29 |
*gnuplot-4.4.3-r1 (08 May 2011) |
30 |
|
31 |
08 May 2011; Christoph Junghans <ottxor@g.o> +gnuplot-4.4.3-r1.ebuild, |
32 |
|
33 |
diff --git a/sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild b/sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild |
34 |
deleted file mode 100644 |
35 |
index be4fc1c..0000000 |
36 |
--- a/sci-visualization/gnuplot/gnuplot-4.4.3-r1.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,246 +0,0 @@ |
39 |
-# Copyright 1999-2011 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
-# $Header: $ |
42 |
- |
43 |
-EAPI=3 |
44 |
- |
45 |
-inherit elisp-common multilib wxwidgets |
46 |
- |
47 |
-DESCRIPTION="Command-line driven interactive plotting program" |
48 |
-HOMEPAGE="http://www.gnuplot.info/" |
49 |
- |
50 |
-if [[ -z ${PV%%*9999} ]]; then |
51 |
- inherit autotools cvs |
52 |
- ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" |
53 |
- ECVS_MODULE="gnuplot" |
54 |
- ECVS_BRANCH="branch-4-4-stable" |
55 |
- ECVS_USER="anonymous" |
56 |
- ECVS_CVS_OPTIONS="-dP" |
57 |
- MY_P="${PN}" |
58 |
- SRC_URI="" |
59 |
-else |
60 |
- MY_P="${P/_/-}" |
61 |
- SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" |
62 |
-fi |
63 |
- |
64 |
-LICENSE="gnuplot GPL-2" |
65 |
-SLOT="0" |
66 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
67 |
-IUSE="cairo doc emacs +gd ggi latex lua plotutils readline svga thin-splines wxwidgets X xemacs" |
68 |
- |
69 |
-RESTRICT="wxwidgets? ( test )" |
70 |
- |
71 |
-RDEPEND="!app-emacs/gnuplot-mode |
72 |
- cairo? ( x11-libs/cairo |
73 |
- x11-libs/pango ) |
74 |
- emacs? ( virtual/emacs ) |
75 |
- gd? ( media-libs/gd[png] ) |
76 |
- ggi? ( media-libs/libggi ) |
77 |
- latex? ( virtual/latex-base |
78 |
- lua? ( dev-tex/pgf |
79 |
- >=dev-texlive/texlive-latexrecommended-2008-r2 ) ) |
80 |
- lua? ( dev-lang/lua ) |
81 |
- plotutils? ( media-libs/plotutils ) |
82 |
- readline? ( sys-libs/readline ) |
83 |
- svga? ( media-libs/svgalib ) |
84 |
- wxwidgets? ( x11-libs/wxGTK:2.8[X] |
85 |
- x11-libs/cairo |
86 |
- x11-libs/pango |
87 |
- x11-libs/gtk+:2 ) |
88 |
- X? ( x11-libs/libXaw ) |
89 |
- xemacs? ( app-editors/xemacs |
90 |
- app-xemacs/xemacs-base )" |
91 |
-DEPEND="${RDEPEND} |
92 |
- dev-util/pkgconfig |
93 |
- doc? ( virtual/latex-base |
94 |
- app-text/ghostscript-gpl ) |
95 |
- !emacs? ( xemacs? ( app-xemacs/texinfo ) ) |
96 |
- !emacs? ( !xemacs? ( || ( virtual/emacs app-xemacs/texinfo ) ) )" |
97 |
- |
98 |
-S="${WORKDIR}/${MY_P}" |
99 |
-GP_VERSION="${PV%.*}" |
100 |
-E_SITEFILE="50${PN}-gentoo.el" |
101 |
-TEXMF="${EPREFIX}/usr/share/texmf-site" |
102 |
- |
103 |
-src_prepare() { |
104 |
- if [[ -z ${PV%%*9999} ]]; then |
105 |
- local dir |
106 |
- for dir in config demo m4 term tutorial; do |
107 |
- emake -C "$dir" -f Makefile.am.in Makefile.am || \ |
108 |
- die "make -f Makefile.am.in Makefile.am in $dir failed" |
109 |
- done |
110 |
- eautoreconf |
111 |
- fi |
112 |
- |
113 |
- # Add special version identification as required by provision 2 |
114 |
- # of the gnuplot license |
115 |
- sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die |
116 |
-} |
117 |
- |
118 |
-src_configure() { |
119 |
- if ! use latex; then |
120 |
- sed -i -e '/SUBDIRS/s/LaTeX//' share/Makefile.in || die |
121 |
- fi |
122 |
- |
123 |
- if use wxwidgets; then |
124 |
- WX_GTK_VER="2.8" |
125 |
- need-wxwidgets unicode |
126 |
- fi |
127 |
- |
128 |
- local myconf |
129 |
- myconf="${myconf} --without-lisp-files" |
130 |
- myconf="${myconf} --without-pdf" |
131 |
- myconf="${myconf} --with-texdir=${TEXMF}/tex/latex/${PN}" |
132 |
- myconf="${myconf} $(use_with cairo)" |
133 |
- myconf="${myconf} $(use_with doc tutorial)" |
134 |
- myconf="${myconf} $(use_with gd)" |
135 |
- myconf="${myconf} $(use_with ggi ggi ${EPREFIX}/usr/$(get_libdir))" |
136 |
- myconf="${myconf} $(use_with ggi xmi ${EPREFIX}/usr/$(get_libdir))" |
137 |
- myconf="${myconf} $(use_with lua)" |
138 |
- myconf="${myconf} $(use_with plotutils plot "${EPREFIX}"/usr/$(get_libdir))" |
139 |
- myconf="${myconf} $(use_with svga linux-vga)" |
140 |
- myconf="${myconf} $(use_enable thin-splines)" |
141 |
- myconf="${myconf} $(use_enable wxwidgets)" |
142 |
- myconf="${myconf} $(use_with X x)" |
143 |
- use readline \ |
144 |
- && myconf="${myconf} --with-readline=gnu" \ |
145 |
- || myconf="${myconf} --with-readline=builtin" |
146 |
- |
147 |
- if has_version virtual/emacs; then |
148 |
- emacs="emacs" |
149 |
- elif has_version app-xemacs/texinfo; then |
150 |
- emacs="xemacs" |
151 |
- fi |
152 |
- |
153 |
- econf ${myconf} \ |
154 |
- DIST_CONTACT="http://bugs.gentoo.org/" \ |
155 |
- EMACS="${emacs}" |
156 |
- |
157 |
- if use xemacs; then |
158 |
- einfo "Configuring gnuplot-mode for XEmacs ..." |
159 |
- use emacs && cp -Rp lisp lisp-xemacs || ln -s lisp lisp-xemacs |
160 |
- cd "${S}/lisp-xemacs" |
161 |
- econf --with-lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/${PN}" EMACS=xemacs |
162 |
- fi |
163 |
- |
164 |
- if use emacs; then |
165 |
- einfo "Configuring gnuplot-mode for GNU Emacs ..." |
166 |
- cd "${S}/lisp" |
167 |
- econf --with-lispdir="${EPREFIX}${SITELISP}/${PN}" EMACS=emacs |
168 |
- fi |
169 |
-} |
170 |
- |
171 |
-src_compile() { |
172 |
- # Prevent access violations, see bug 201871 |
173 |
- VARTEXFONTS="${T}/fonts" |
174 |
- |
175 |
- # This is a hack to avoid sandbox violations when using the Linux console. |
176 |
- # Creating the DVI and PDF tutorials require /dev/svga to build the |
177 |
- # example plots. |
178 |
- addwrite /dev/svga:/dev/mouse:/dev/tts/0 |
179 |
- |
180 |
- emake all info || die |
181 |
- |
182 |
- if use xemacs; then |
183 |
- cd "${S}/lisp-xemacs" |
184 |
- emake || die |
185 |
- fi |
186 |
- |
187 |
- if use emacs; then |
188 |
- cd "${S}/lisp" |
189 |
- emake || die |
190 |
- fi |
191 |
- |
192 |
- if use doc; then |
193 |
- # Avoid sandbox violation in epstopdf/ghostscript |
194 |
- addpredict /var/cache/fontconfig |
195 |
- cd "${S}/docs" |
196 |
- emake pdf || die |
197 |
- cd "${S}/tutorial" |
198 |
- emake pdf || die |
199 |
- |
200 |
- if use emacs || use xemacs; then |
201 |
- cd "${S}/lisp" |
202 |
- emake pdf || die |
203 |
- fi |
204 |
- fi |
205 |
-} |
206 |
- |
207 |
-src_install () { |
208 |
- emake DESTDIR="${D}" install || die |
209 |
- |
210 |
- if use xemacs; then |
211 |
- cd "${S}/lisp-xemacs" |
212 |
- emake DESTDIR="${D}" install || die |
213 |
- fi |
214 |
- |
215 |
- if use emacs; then |
216 |
- cd "${S}/lisp" |
217 |
- emake DESTDIR="${D}" install || die |
218 |
- # info-look* is included with >=emacs-21 |
219 |
- rm -f "${ED}${SITELISP}/${PN}"/info-look* |
220 |
- |
221 |
- # Gentoo emacs site-lisp configuration |
222 |
- echo "(add-to-list 'load-path \"@SITELISP@\")" > ${E_SITEFILE} |
223 |
- sed '/^;; move/,+3 d' dotemacs >> ${E_SITEFILE} || die |
224 |
- elisp-site-file-install ${E_SITEFILE} || die |
225 |
- fi |
226 |
- |
227 |
- cd "${S}" |
228 |
- dodoc BUGS ChangeLog NEWS PGPKEYS PORTING README* TODO |
229 |
- newdoc term/PostScript/README README-ps |
230 |
- newdoc term/js/README README-js |
231 |
- use lua && newdoc term/lua/README README-lua |
232 |
- |
233 |
- if use doc; then |
234 |
- # Demo files |
235 |
- insinto /usr/share/${PN}/${GP_VERSION} |
236 |
- doins -r demo || die |
237 |
- rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/Makefile* |
238 |
- rm -f "${ED}"/usr/share/${PN}/${GP_VERSION}/demo/binary* |
239 |
- # Manual |
240 |
- dodoc docs/gnuplot.pdf |
241 |
- # Tutorial |
242 |
- dodoc tutorial/{tutorial.dvi,tutorial.pdf} |
243 |
- # FAQ |
244 |
- dodoc FAQ.pdf |
245 |
- # Documentation for making PostScript files |
246 |
- docinto psdoc |
247 |
- dodoc docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README} |
248 |
- fi |
249 |
- |
250 |
- if use emacs || use xemacs; then |
251 |
- docinto emacs |
252 |
- dodoc lisp/ChangeLog lisp/README |
253 |
- use doc && dodoc lisp/gpelcard.pdf |
254 |
- fi |
255 |
-} |
256 |
- |
257 |
-pkg_postinst() { |
258 |
- use emacs && elisp-site-regen |
259 |
- use latex && texmf-update |
260 |
- |
261 |
- einfo "Gnuplot no longer links against pdflib, see the ChangeLog for" |
262 |
- einfo "details. You can use the \"pdfcairo\" terminal for PDF output." |
263 |
- use cairo || einfo "It is available with USE=\"cairo\"." |
264 |
- |
265 |
- if use svga; then |
266 |
- echo |
267 |
- einfo "In order to enable ordinary users to use SVGA console graphics" |
268 |
- einfo "gnuplot needs to be set up as setuid root. Please note that" |
269 |
- einfo "this is usually considered to be a security hazard." |
270 |
- einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"." |
271 |
- fi |
272 |
- if use gd; then |
273 |
- echo |
274 |
- einfo "For font support in png/jpeg/gif output, you may have to" |
275 |
- einfo "set the GDFONTPATH and GNUPLOT_DEFAULT_GDFONT environment" |
276 |
- einfo "variables. See the FAQ file in /usr/share/doc/${PF}/" |
277 |
- einfo "for more information." |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-pkg_postrm() { |
282 |
- use emacs && elisp-site-regen |
283 |
- use latex && texmf-update |
284 |
-} |