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: asymptote-2.27.ebuild ChangeLog asymptote-2.23.ebuild
Date: Mon, 05 May 2014 10:28:47
Message-Id: 20140505102841.4678B2004C@flycatcher.gentoo.org
1 grozin 14/05/05 10:28:41
2
3 Modified: ChangeLog
4 Added: asymptote-2.27.ebuild
5 Removed: asymptote-2.23.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.10/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
10
11 Revision Changes Path
12 1.108 media-gfx/asymptote/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.108&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.108&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?r1=1.107&r2=1.108
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v
21 retrieving revision 1.107
22 retrieving revision 1.108
23 diff -u -r1.107 -r1.108
24 --- ChangeLog 9 Mar 2014 14:26:45 -0000 1.107
25 +++ ChangeLog 5 May 2014 10:28:41 -0000 1.108
26 @@ -1,6 +1,15 @@
27 # ChangeLog for media-gfx/asymptote
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.107 2014/03/09 14:26:45 grozin Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.108 2014/05/05 10:28:41 grozin Exp $
31 +
32 +*asymptote-2.27 (05 May 2014)
33 +
34 + 05 May 2014; Andrey Grozin <grozin@g.o> -asymptote-2.23.ebuild,
35 + +asymptote-2.27.ebuild, -files/asymptote-2.23-configure-ac.patch,
36 + -files/asymptote-2.23-info.patch, -files/asymptote-2.23-xdg-utils.patch,
37 + +files/asymptote-2.27-configure-ac.patch, +files/asymptote-2.27-info.patch,
38 + +files/asymptote-2.27-xdg-utils.patch:
39 + Version bump
40
41 09 Mar 2014; Andrey Grozin <grozin@g.o> asymptote-2.24.ebuild:
42 pdf generation depends on >=dev-texlive/texlive-latexextra-2013, bug #481076
43
44
45
46 1.1 media-gfx/asymptote/asymptote-2.27.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.27.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.27.ebuild?rev=1.1&content-type=text/plain
50
51 Index: asymptote-2.27.ebuild
52 ===================================================================
53 # Copyright 1999-2014 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.27.ebuild,v 1.1 2014/05/05 10:28:41 grozin Exp $
56
57 EAPI=4
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 offscreen +opengl python sigsegv svg vim-syntax X"
70 REQUIRED_USE="offscreen? ( opengl )"
71
72 RDEPEND=">=sys-libs/readline-4.3-r5
73 >=sys-libs/ncurses-5.4-r5
74 imagemagick? ( media-gfx/imagemagick[png] )
75 opengl? ( >=media-libs/mesa-8 )
76 offscreen? ( media-libs/mesa[osmesa] )
77 svg? ( app-text/dvisvgm )
78 sigsegv? ( dev-libs/libsigsegv )
79 boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
80 fftw? ( >=sci-libs/fftw-3.0.1 )
81 gsl? ( sci-libs/gsl )
82 X? ( x11-misc/xdg-utils dev-lang/python virtual/python-imaging[tk] )
83 latex? ( virtual/latex-base >=dev-texlive/texlive-latexextra-2013 )
84 emacs? ( virtual/emacs )
85 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
86 DEPEND="${RDEPEND}
87 doc? ( dev-lang/perl virtual/texi2dvi virtual/latex-base media-gfx/imagemagick[png] )"
88
89 TEXMF=/usr/share/texmf-site
90
91 src_prepare() {
92 # Fixing sigsegv enabling
93 epatch "${FILESDIR}/${P}-configure-ac.patch"
94 einfo "Patching configure.ac"
95 sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
96 -i configure.ac \
97 || die "sed configure.ac failed"
98
99 # Changing pdf, ps, image viewers to xdg-open
100 epatch "${FILESDIR}/${P}-xdg-utils.patch"
101
102 # Bug #322473
103 epatch "${FILESDIR}/${P}-info.patch"
104
105 eautoreconf
106 }
107
108 src_configure() {
109 # for the CPPFLAGS see
110 # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
111 econf CPPFLAGS=-DHAVE_SYS_TYPES_H \
112 CFLAGS="${CXXFLAGS}" \
113 --disable-gc-debug \
114 $(use_enable boehm-gc gc system) \
115 $(use_enable fftw) \
116 $(use_enable gsl) \
117 $(use_enable opengl gl) \
118 $(use_enable offscreen) \
119 $(use_with sigsegv)
120 }
121
122 src_compile() {
123 emake
124
125 cd doc
126 emake asy.1
127 if use doc; then
128 # info
129 einfo "Making info"
130 emake ${PN}.info
131 cd FAQ
132 emake
133 cd ..
134 # pdf
135 einfo "Making pdf docs"
136 export VARTEXFONTS="${T}"/fonts
137 # see bug #260606
138 emake -j1 asymptote.pdf
139 emake CAD.pdf
140 fi
141 cd ..
142
143 if use emacs; then
144 einfo "Compiling emacs lisp files"
145 elisp-compile base/*.el
146 fi
147 }
148
149 src_install() {
150 # the program
151 exeinto /usr/bin
152 doexe asy
153
154 # .asy files
155 insinto /usr/share/${PN}
156 doins base/*.asy
157
158 # documentation
159 dodoc BUGS ChangeLog README ReleaseNotes TODO
160 doman doc/asy.1
161
162 # X GUI
163 if use X; then
164 exeinto /usr/share/${PN}/GUI
165 doexe GUI/xasy.py
166 rm GUI/xasy.py
167 insinto /usr/share/${PN}/GUI
168 doins GUI/*.py
169 dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy
170 doman doc/xasy.1x
171 fi
172
173 # examples
174 if use examples; then
175 insinto /usr/share/${PN}/examples
176 doins examples/*.asy \
177 examples/*.eps \
178 doc/*.asy \
179 doc/*.csv \
180 doc/*.dat \
181 doc/extra/*.asy
182 if use X; then
183 doins GUI/*.asy
184 fi
185 insinto /usr/share/${PN}/examples/animations
186 doins examples/animations/*.asy
187 fi
188
189 # LaTeX style
190 if use latex; then
191 cd doc
192 insinto "${TEXMF}"/tex/latex/${PN}
193 doins ${PN}.sty asycolors.sty
194 if use examples; then
195 insinto /usr/share/${PN}/examples
196 doins latexusage.tex
197 fi
198 cd ..
199 fi
200
201 # asymptote.py
202 if use python; then
203 python_install() {
204 insinto "$(python_get_sitedir)"
205 doins base/${PN}.py
206 }
207 python_execute_function python_install
208 fi
209
210 # emacs mode
211 if use emacs; then
212 elisp-install ${PN} base/*.el base/*.elc
213 elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
214 fi
215
216 # vim syntax
217 if use vim-syntax; then
218 insinto /usr/share/vim/vimfiles/syntax
219 doins base/asy.vim
220 insinto /usr/share/vim/vimfiles/ftdetect
221 doins "${FILESDIR}"/asy-ftd.vim
222 fi
223
224 # extra documentation
225 if use doc; then
226 cd doc
227 doinfo ${PN}.info*
228 cd FAQ
229 dodoc asy-faq.ascii
230 doinfo asy-faq.info
231 insinto /usr/share/doc/${PF}/html/FAQ
232 doins asy-faq.html/*
233 cd ..
234 insinto /usr/share/doc/${PF}
235 doins ${PN}.pdf CAD.pdf
236 fi
237 }
238
239 pkg_postinst() {
240 use python && python_mod_optimize ${PN}.py
241 use latex && latex-package_rehash
242 use emacs && elisp-site-regen
243
244 elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
245 elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
246 }
247
248 pkg_postrm() {
249 use python && python_mod_cleanup ${PN}.py
250 use latex && latex-package_rehash
251 use emacs && elisp-site-regen
252 }