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