Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/gnuplot: ChangeLog gnuplot-4.2.4-r1.ebuild
Date: Thu, 09 Oct 2008 15:11:37
Message-Id: E1KnxAr-0004g7-0a@stork.gentoo.org
1 ulm 08/10/09 15:11:33
2
3 Modified: ChangeLog
4 Added: gnuplot-4.2.4-r1.ebuild
5 Log:
6 Depend on wxGTK 2.8.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
8
9 Revision Changes Path
10 1.82 sci-visualization/gnuplot/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.82&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?rev=1.82&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/ChangeLog?r1=1.81&r2=1.82
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v
19 retrieving revision 1.81
20 retrieving revision 1.82
21 diff -u -r1.81 -r1.82
22 --- ChangeLog 8 Oct 2008 12:55:38 -0000 1.81
23 +++ ChangeLog 9 Oct 2008 15:11:32 -0000 1.82
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-visualization/gnuplot
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.81 2008/10/08 12:55:38 ulm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/ChangeLog,v 1.82 2008/10/09 15:11:32 ulm Exp $
29 +
30 +*gnuplot-4.2.4-r1 (09 Oct 2008)
31 +
32 + 09 Oct 2008; Ulrich Mueller <ulm@g.o> +gnuplot-4.2.4-r1.ebuild:
33 + Depend on wxGTK 2.8, thanks bicatali and leio.
34
35 *gnuplot-4.2.4 (08 Oct 2008)
36
37
38
39
40 1.1 sci-visualization/gnuplot/gnuplot-4.2.4-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.4-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.4-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gnuplot-4.2.4-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/gnuplot/gnuplot-4.2.4-r1.ebuild,v 1.1 2008/10/09 15:11:32 ulm Exp $
50
51 WX_GTK_VER="2.8"
52
53 inherit autotools elisp-common eutils multilib wxwidgets
54
55 MY_P="${P/_/.}"
56
57 DESCRIPTION="Command-line driven interactive plotting program"
58 HOMEPAGE="http://www.gnuplot.info/"
59 SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz"
60
61 LICENSE="gnuplot"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
64 IUSE="doc emacs gd ggi latex pdf plotutils readline svga wxwindows X xemacs"
65 RESTRICT="wxwindows? ( test )"
66
67 RDEPEND="
68 xemacs? ( virtual/xemacs app-xemacs/texinfo app-xemacs/xemacs-base )
69 emacs? ( virtual/emacs !app-emacs/gnuplot-mode )
70 pdf? ( media-libs/pdflib )
71 ggi? ( media-libs/libggi )
72 gd? ( >=media-libs/gd-2 )
73 doc? ( virtual/latex-base
74 virtual/ghostscript )
75 latex? ( virtual/latex-base )
76 X? ( x11-libs/libXaw )
77 svga? ( media-libs/svgalib )
78 readline? ( >=sys-libs/readline-4.2 )
79 plotutils? ( media-libs/plotutils )
80 wxwindows? ( =x11-libs/wxGTK-2.8*
81 >=x11-libs/cairo-0.9
82 >=x11-libs/pango-1.10.3
83 >=x11-libs/gtk+-2.8 )"
84 DEPEND="${RDEPEND}
85 dev-util/pkgconfig"
86
87 S=${WORKDIR}/${MY_P}
88
89 E_SITEFILE=50${PN}-gentoo.el
90 TEXMF=/usr/share/texmf-site
91
92 latex_rehash() {
93 if has_version '>=app-text/tetex-3' || has_version '>=app-text/ptex-3.1.8' || has_version 'app-text/texlive'; then
94 texmf-update
95 else
96 texconfig rehash
97 fi
98 }
99
100 pkg_setup() {
101 if use gd && ! built_with_use media-libs/gd png; then
102 eerror "media-libs/gd needs to be built with PNG support"
103 die "please rebuilt media-libs/gd with USE=png"
104 fi
105 }
106
107 src_unpack() {
108 unpack ${A}
109 cd "${S}"
110 # Texinfo source is already shipped, so separate preparation not needed
111 # and error-prone, see bug 194216
112 epatch "${FILESDIR}"/${PN}-4.2.2-disable_texi_generation.patch
113 # Don't store resource files in deprecated location, reported upstream:
114 # http://sourceforge.net/tracker/index.php?func=detail&aid=1953742&group_id=2055&atid=102055
115 epatch "${FILESDIR}"/${PN}-4.2.3-app-defaults.patch
116 # Disable texhash to prevent sandbox violation, bug 201871
117 epatch "${FILESDIR}"/${PN}-4.2.3-disable-texhash.patch
118
119 eautoreconf
120 }
121
122 src_compile() {
123 # Prevent access violations, see bug 201871
124 VARTEXFONTS="${T}/fonts"
125
126 # See bug #156427.
127 if use latex ; then
128 sed -i -e "s:\`kpsexpand.*\`:${TEXMF}/tex/latex/${PN}:" \
129 share/LaTeX/Makefile.in || die
130 else
131 sed -i \
132 -e '/^SUBDIRS/ s/LaTeX//' share/LaTeX/Makefile.in || die
133 fi
134
135 local myconf="--with-gihdir=/usr/share/${PN}/gih"
136
137 myconf="${myconf} $(use_with X x)"
138 myconf="${myconf} $(use_with svga linux-vga)"
139 myconf="${myconf} $(use_with gd)"
140 myconf="${myconf} $(use_enable wxwindows wxwidgets)"
141 myconf="${myconf} $(use_with plotutils plot /usr/$(get_libdir))"
142 myconf="${myconf} $(use_with pdf pdf /usr/$(get_libdir))"
143
144 use ggi \
145 && myconf="${myconf} --with-ggi=/usr/$(get_libdir)
146 --with-xmi=/usr/$(get_libdir)" \
147 || myconf="${myconf} --without-ggi"
148
149 use readline \
150 && myconf="${myconf} --with-readline=gnu --enable-history-file" \
151 || myconf="${myconf} --with-readline"
152
153 myconf="${myconf} --without-lisp-files"
154
155 # This is a hack to avoid sandbox violations when using the Linux console.
156 # Creating the DVI and PDF tutorials require /dev/svga to build the
157 # example plots.
158 addwrite /dev/svga:/dev/mouse:/dev/tts/0
159
160 TEMACS=no
161 use xemacs && TEMACS=xemacs
162 use emacs && TEMACS=emacs
163 EMACS=${TEMACS} econf ${myconf} || die
164 emake || die
165
166 if use doc ; then
167 cd docs
168 emake pdf || die
169 cd ../tutorial
170 emake pdf || die
171 fi
172 }
173
174 src_install () {
175 emake DESTDIR="${D}" install || die
176
177 if use emacs; then
178 cd lisp
179 einfo "Configuring gnuplot-mode for GNU Emacs..."
180 EMACS="emacs" econf --with-lispdir="${SITELISP}/${PN}" || die
181 emake DESTDIR="${D}" install || die
182 emake clean
183 cd ..
184
185 # Gentoo emacs site-lisp configuration
186 echo -e "\n;;; ${PN} site-lisp configuration\n" > ${E_SITEFILE}
187 echo -e "(add-to-list 'load-path \"@SITELISP@\")\n" >> ${E_SITEFILE}
188 sed '/^;; move/,+3 d' lisp/dotemacs >> ${E_SITEFILE}
189 elisp-site-file-install ${E_SITEFILE}
190 fi
191
192 if use xemacs; then
193 cd lisp
194 einfo "Configuring gnuplot-mode for XEmacs..."
195 EMACS="xemacs" \
196 econf --with-lispdir="/usr/lib/xemacs/site-packages/${PN}" || die
197 emake DESTDIR="${D}" install || die
198 cd ..
199 fi
200
201 dodoc BUGS ChangeLog FAQ NEWS PATCHLEVEL PGPKEYS PORTING README* TODO VERSION
202
203 if use doc; then
204 # Demo files
205 insinto /usr/share/${PN}/demo
206 doins demo/*
207 # Manual
208 insinto /usr/share/doc/${PF}/manual
209 doins docs/gnuplot.pdf
210 # Tutorial
211 insinto /usr/share/doc/${PF}/tutorial
212 doins tutorial/{tutorial.dvi,tutorial.pdf}
213 # Documentation for making PostScript files
214 insinto /usr/share/doc/${PF}/psdoc
215 doins docs/psdoc/{*.doc,*.tex,*.ps,*.gpi,README}
216 fi
217
218 if ! use X; then
219 # see bug 194527
220 rm -rf "${D}/usr/$(get_libdir)/X11"
221 fi
222 }
223
224 pkg_postinst() {
225 use emacs && elisp-site-regen
226 if use svga ; then
227 einfo "In order to enable ordinary users to use SVGA console graphics"
228 einfo "gnuplot needs to be set up as setuid root. Please note that"
229 einfo "this is usually considered to be a security hazard."
230 einfo "As root, manually \"chmod u+s /usr/bin/gnuplot\"."
231 fi
232 use latex && latex_rehash
233 }
234
235 pkg_postrm() {
236 use emacs && elisp-site-regen
237 use latex && latex_rehash
238 }