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