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.14.ebuild
Date: Thu, 17 Nov 2011 10:46:43
Message-Id: 20111117104628.E58872004C@flycatcher.gentoo.org
1 grozin 11/11/17 10:46:28
2
3 Modified: ChangeLog
4 Added: asymptote-2.14.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha74/cvs/Linux i686)
9
10 Revision Changes Path
11 1.94 media-gfx/asymptote/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.94&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.94&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?r1=1.93&r2=1.94
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v
20 retrieving revision 1.93
21 retrieving revision 1.94
22 diff -u -r1.93 -r1.94
23 --- ChangeLog 14 Nov 2011 11:23:37 -0000 1.93
24 +++ ChangeLog 17 Nov 2011 10:46:28 -0000 1.94
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-gfx/asymptote
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.93 2011/11/14 11:23:37 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.94 2011/11/17 10:46:28 grozin Exp $
30 +
31 +*asymptote-2.14 (17 Nov 2011)
32 +
33 + 17 Nov 2011; Andrey Grozin <grozin@g.o> +asymptote-2.14.ebuild,
34 + +files/asymptote-2.14-configure-ac.patch, +files/asymptote-2.14-info.patch,
35 + +files/asymptote-2.14-xdg-utils.patch:
36 + Version bump
37
38 14 Nov 2011; Diego E. Pettenò <flameeyes@g.o> asymptote-2.13.ebuild:
39 QA: cxx conditional was broken, fix it.
40
41
42
43 1.1 media-gfx/asymptote/asymptote-2.14.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.14.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.14.ebuild?rev=1.1&content-type=text/plain
47
48 Index: asymptote-2.14.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-2.14.ebuild,v 1.1 2011/11/17 10:46:28 grozin Exp $
53
54 EAPI=3
55 SUPPORT_PYTHON_ABIS=1
56 PYTHON_DEPEND="python? 2"
57 RESTRICT_PYTHON_ABIS="3.*"
58 inherit eutils autotools elisp-common latex-package multilib python
59
60 DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
61 HOMEPAGE="http://asymptote.sourceforge.net/"
62 SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
63 LICENSE="GPL-3"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
66 IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex python sigsegv vim-syntax X"
67
68 RDEPEND=">=sys-libs/readline-4.3-r5
69 >=sys-libs/ncurses-5.4-r5
70 imagemagick? ( media-gfx/imagemagick[png] )
71 sigsegv? ( dev-libs/libsigsegv )
72 boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
73 fftw? ( >=sci-libs/fftw-3.0.1 )
74 gsl? ( sci-libs/gsl )
75 X? ( x11-misc/xdg-utils dev-lang/python dev-python/imaging[tk] )
76 latex? ( virtual/latex-base dev-texlive/texlive-latexextra )
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 # Bug #322473
96 epatch "${FILESDIR}/${P}-info.patch"
97
98 eautoreconf
99 }
100
101 src_configure() {
102 # for the CPPFLAGS see
103 # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
104 econf CPPFLAGS=-DHAVE_SYS_TYPES_H \
105 CFLAGS="${CXXFLAGS}" \
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 cd FAQ
123 emake || die "emake FAQ failed"
124 cd ..
125 # pdf
126 einfo "Making pdf docs"
127 export VARTEXFONTS="${T}"/fonts
128 # see bug #260606
129 emake -j1 asymptote.pdf || die "emake asymptote.pdf failed"
130 emake CAD.pdf || die "emake CAD.pdf failed"
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_install() {
195 insinto "$(python_get_sitedir)"
196 doins base/${PN}.py
197 }
198 python_execute_function python_install
199 fi
200
201 # emacs mode
202 if use emacs; then
203 elisp-install ${PN} base/*.el base/*.elc
204 elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
205 fi
206
207 # vim syntax
208 if use vim-syntax; then
209 insinto /usr/share/vim/vimfiles/syntax
210 doins base/asy.vim
211 insinto /usr/share/vim/vimfiles/ftdetect
212 doins "${FILESDIR}"/asy-ftd.vim
213 fi
214
215 # extra documentation
216 if use doc; then
217 cd doc
218 doinfo ${PN}.info*
219 cd FAQ
220 dodoc asy-faq.ascii
221 doinfo asy-faq.info
222 insinto /usr/share/doc/${PF}/html/FAQ
223 doins asy-faq.html/*
224 cd ..
225 insinto /usr/share/doc/${PF}
226 doins ${PN}.pdf CAD.pdf
227 fi
228 }
229
230 pkg_postinst() {
231 use python && python_mod_optimize ${PN}.py
232 use latex && latex-package_rehash
233 use emacs && elisp-site-regen
234
235 elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
236 elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
237 }
238
239 pkg_postrm() {
240 use python && python_mod_cleanup ${PN}.py
241 use latex && latex-package_rehash
242 use emacs && elisp-site-regen
243 }