Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/asymptote: ChangeLog asymptote-1.91.ebuild asymptote-1.89.ebuild
Date: Sun, 03 Jan 2010 06:56:51
Message-Id: E1NRKOP-0007DH-AS@stork.gentoo.org
1 grozin 10/01/03 06:56:49
2
3 Modified: ChangeLog
4 Added: asymptote-1.91.ebuild
5 Removed: asymptote-1.89.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.2_rc61/cvs/Linux i686)
9
10 Revision Changes Path
11 1.65 media-gfx/asymptote/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 2 Dec 2009 17:20:29 -0000 1.64
24 +++ ChangeLog 3 Jan 2010 06:56:48 -0000 1.65
25 @@ -1,6 +1,15 @@
26 # ChangeLog for media-gfx/asymptote
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.64 2009/12/02 17:20:29 grozin Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.65 2010/01/03 06:56:48 grozin Exp $
31 +
32 +*asymptote-1.91 (03 Jan 2010)
33 +
34 + 03 Jan 2010; Andrey Grozin <grozin@g.o> -asymptote-1.89.ebuild,
35 + -files/asymptote-1.89-configure-ac.patch,
36 + -files/asymptote-1.89-xdg-utils.patch, +asymptote-1.91.ebuild,
37 + +files/asymptote-1.91-configure-ac.patch,
38 + +files/asymptote-1.91-xdg-utils.patch:
39 + Version bump
40
41 *asymptote-1.90 (02 Dec 2009)
42
43
44
45
46 1.1 media-gfx/asymptote/asymptote-1.91.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.91.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.91.ebuild?rev=1.1&content-type=text/plain
50
51 Index: asymptote-1.91.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.91.ebuild,v 1.1 2010/01/03 06:56:48 grozin Exp $
56 EAPI=2
57 inherit eutils autotools elisp-common latex-package multilib python
58
59 DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
60 HOMEPAGE="http://asymptote.sourceforge.net/"
61 SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
65 IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex python sigsegv vim-syntax X"
66
67 RDEPEND=">=sys-libs/readline-4.3-r5
68 >=sys-libs/ncurses-5.4-r5
69 imagemagick? ( media-gfx/imagemagick[png] )
70 sigsegv? ( dev-libs/libsigsegv )
71 boehm-gc? ( >=dev-libs/boehm-gc-7.0[-nocxx,threads] )
72 fftw? ( >=sci-libs/fftw-3.0.1 )
73 gsl? ( sci-libs/gsl )
74 X? ( x11-misc/xdg-utils dev-lang/python dev-python/imaging[tk] )
75 python? ( dev-lang/python )
76 latex? ( virtual/latex-base )
77 emacs? ( virtual/emacs )
78 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
79 DEPEND="${RDEPEND}
80 doc? ( dev-lang/perl virtual/texi2dvi virtual/latex-base media-gfx/imagemagick[png] )"
81
82 TEXMF=/usr/share/texmf-site
83
84 src_prepare() {
85 # Fixing sigsegv enabling
86 epatch "${FILESDIR}/${P}-configure-ac.patch"
87 einfo "Patching configure.ac"
88 sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
89 -i configure.ac \
90 || die "sed configure.ac failed"
91
92 # Changing pdf, ps, image viewers to xdg-open
93 epatch "${FILESDIR}/${P}-xdg-utils.patch"
94
95 eautoreconf
96 }
97
98 src_configure() {
99 # for the CPPFLAGS see
100 # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
101 econf CPPFLAGS=-DHAVE_SYS_TYPES_H \
102 --disable-gc-debug \
103 $(use_enable boehm-gc gc system) \
104 $(use_enable fftw) \
105 $(use_enable gsl) \
106 $(use_with sigsegv)
107 }
108
109 src_compile() {
110 emake || die "emake failed"
111
112 cd doc
113 emake asy.1 || die "emake asy.1 failed"
114 if use doc; then
115 # info
116 einfo "Making info"
117 emake ${PN}.info || die "emake ${PN}.info failed"
118 # html
119 einfo "Making html docs"
120 emake ${PN}/index.html
121 einfo "Making FAQ"
122 cd FAQ
123 emake
124 cd ..
125 # pdf
126 einfo "Making pdf docs"
127 export VARTEXFONTS="${T}"/fonts
128 # see bug #260606
129 emake -j1 asymptote.pdf
130 emake CAD.pdf
131 fi
132 cd ..
133
134 if use emacs; then
135 einfo "Compiling emacs lisp files"
136 elisp-compile base/*.el || die "elisp-compile failed"
137 fi
138 }
139
140 src_install() {
141 # the program
142 exeinto /usr/bin
143 doexe asy
144
145 # .asy files
146 insinto /usr/share/${PN}
147 doins base/*.asy
148
149 # documentation
150 dodoc BUGS ChangeLog README ReleaseNotes TODO
151 doman doc/asy.1
152
153 # X GUI
154 if use X; then
155 exeinto /usr/share/${PN}/GUI
156 doexe GUI/xasy.py
157 rm GUI/xasy.py
158 insinto /usr/share/${PN}/GUI
159 doins GUI/*.py
160 dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy
161 doman doc/xasy.1x
162 fi
163
164 # examples
165 if use examples; then
166 insinto /usr/share/${PN}/examples
167 doins examples/*.asy \
168 examples/*.eps \
169 doc/*.asy \
170 doc/*.csv \
171 doc/*.dat \
172 doc/extra/*.asy
173 if use X; then
174 doins GUI/*.asy
175 fi
176 insinto /usr/share/${PN}/examples/animations
177 doins examples/animations/*.asy
178 fi
179
180 # LaTeX style
181 if use latex; then
182 cd doc
183 insinto "${TEXMF}"/tex/latex/${PN}
184 doins ${PN}.sty asycolors.sty
185 if use examples; then
186 insinto /usr/share/${PN}/examples
187 doins latexusage.tex
188 fi
189 cd ..
190 fi
191
192 # asymptote.py
193 if use python; then
194 python_version
195 insinto /usr/$(get_libdir)/python${PYVER}/site-packages
196 doins base/${PN}.py
197 fi
198
199 # emacs mode
200 if use emacs; then
201 elisp-install ${PN} base/*.el base/*.elc
202 elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
203 fi
204
205 # vim syntax
206 if use vim-syntax; then
207 insinto /usr/share/vim/vimfiles/syntax
208 doins base/asy.vim
209 insinto /usr/share/vim/vimfiles/ftdetect
210 doins "${FILESDIR}"/asy-ftd.vim
211 fi
212
213 # extra documentation
214 if use doc; then
215 cd doc
216 doinfo ${PN}.info*
217 cd FAQ
218 dodoc asy-faq.ascii
219 doinfo asy-faq.info
220 insinto /usr/share/doc/${PF}/html/FAQ
221 doins asy-faq.html/*
222 cd ..
223 insinto /usr/share/doc/${PF}
224 doins ${PN}.pdf CAD.pdf
225 fi
226 }
227
228 pkg_postinst() {
229 if use python; then
230 python_version
231 python_mod_compile \
232 /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}.py
233 fi
234
235 use latex && latex-package_rehash
236
237 use emacs && elisp-site-regen
238
239 elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
240 elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
241 }
242
243 pkg_postrm() {
244 use latex && latex-package_rehash
245 use emacs && elisp-site-regen
246 use python && python_mod_cleanup
247 }