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