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.16.ebuild asymptote-2.14.ebuild
Date: Sat, 02 Jun 2012 18:17:25
Message-Id: 20120602181712.6323B2004C@flycatcher.gentoo.org
1 grozin 12/06/02 18:17:12
2
3 Modified: ChangeLog
4 Added: asymptote-2.16.ebuild
5 Removed: asymptote-2.14.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.0_alpha108/cvs/Linux i686)
10
11 Revision Changes Path
12 1.97 media-gfx/asymptote/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.97&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.97&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?r1=1.96&r2=1.97
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v
21 retrieving revision 1.96
22 retrieving revision 1.97
23 diff -u -r1.96 -r1.97
24 --- ChangeLog 12 Apr 2012 20:13:56 -0000 1.96
25 +++ ChangeLog 2 Jun 2012 18:17:12 -0000 1.97
26 @@ -1,6 +1,15 @@
27 # ChangeLog for media-gfx/asymptote
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.96 2012/04/12 20:13:56 grozin Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.97 2012/06/02 18:17:12 grozin Exp $
31 +
32 +*asymptote-2.16 (02 Jun 2012)
33 +
34 + 02 Jun 2012; Andrey Grozin <grozin@g.o> -asymptote-2.14.ebuild,
35 + -files/asymptote-2.14-configure-ac.patch, -files/asymptote-2.14-info.patch,
36 + -files/asymptote-2.14-xdg-utils.patch, +asymptote-2.16.ebuild,
37 + +files/asymptote-2.16-configure-ac.patch, +files/asymptote-2.16-info.patch,
38 + +files/asymptote-2.16-xdg-utils.patch:
39 + Version bump
40
41 12 Apr 2012; Andrey Grozin <grozin@g.o> asymptote-2.15.ebuild:
42 svg USE flag added, closing #411605
43
44
45
46 1.1 media-gfx/asymptote/asymptote-2.16.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.16.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.16.ebuild?rev=1.1&content-type=text/plain
50
51 Index: asymptote-2.16.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-2.16.ebuild,v 1.1 2012/06/02 18:17:12 grozin Exp $
56
57 EAPI=3
58 SUPPORT_PYTHON_ABIS=1
59 PYTHON_DEPEND="python? 2"
60 RESTRICT_PYTHON_ABIS="3.*"
61 inherit eutils autotools elisp-common latex-package multilib python
62
63 DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
64 HOMEPAGE="http://asymptote.sourceforge.net/"
65 SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
66 LICENSE="GPL-3"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
69 IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex python sigsegv svg vim-syntax X"
70
71 RDEPEND=">=sys-libs/readline-4.3-r5
72 >=sys-libs/ncurses-5.4-r5
73 imagemagick? ( media-gfx/imagemagick[png] )
74 svg? ( app-text/dvisvgm )
75 sigsegv? ( dev-libs/libsigsegv )
76 boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
77 fftw? ( >=sci-libs/fftw-3.0.1 )
78 gsl? ( sci-libs/gsl )
79 X? ( x11-misc/xdg-utils dev-lang/python dev-python/imaging[tk] )
80 latex? ( virtual/latex-base dev-texlive/texlive-latexextra )
81 emacs? ( virtual/emacs )
82 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
83 DEPEND="${RDEPEND}
84 doc? ( dev-lang/perl virtual/texi2dvi virtual/latex-base media-gfx/imagemagick[png] )"
85
86 TEXMF=/usr/share/texmf-site
87
88 src_prepare() {
89 # Fixing sigsegv enabling
90 epatch "${FILESDIR}/${P}-configure-ac.patch"
91 einfo "Patching configure.ac"
92 sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
93 -i configure.ac \
94 || die "sed configure.ac failed"
95
96 # Changing pdf, ps, image viewers to xdg-open
97 epatch "${FILESDIR}/${P}-xdg-utils.patch"
98
99 # Bug #322473
100 epatch "${FILESDIR}/${P}-info.patch"
101
102 eautoreconf
103 }
104
105 src_configure() {
106 # for the CPPFLAGS see
107 # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
108 econf CPPFLAGS=-DHAVE_SYS_TYPES_H \
109 CFLAGS="${CXXFLAGS}" \
110 --disable-gc-debug \
111 $(use_enable boehm-gc gc system) \
112 $(use_enable fftw) \
113 $(use_enable gsl) \
114 $(use_with sigsegv)
115 }
116
117 src_compile() {
118 emake || die "emake failed"
119
120 cd doc
121 emake asy.1 || die "emake asy.1 failed"
122 if use doc; then
123 # info
124 einfo "Making info"
125 emake ${PN}.info || die "emake ${PN}.info failed"
126 cd FAQ
127 emake || die "emake FAQ failed"
128 cd ..
129 # pdf
130 einfo "Making pdf docs"
131 export VARTEXFONTS="${T}"/fonts
132 # see bug #260606
133 emake -j1 asymptote.pdf || die "emake asymptote.pdf failed"
134 emake CAD.pdf || die "emake CAD.pdf failed"
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 }