Gentoo Archives: gentoo-commits

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