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