1 |
grozin 11/05/29 19:39:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asymptote-2.10.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha37/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.85 media-gfx/asymptote/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.85&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.85&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/ChangeLog?r1=1.84&r2=1.85 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v |
20 |
retrieving revision 1.84 |
21 |
retrieving revision 1.85 |
22 |
diff -u -r1.84 -r1.85 |
23 |
--- ChangeLog 26 Dec 2010 07:15:29 -0000 1.84 |
24 |
+++ ChangeLog 29 May 2011 19:39:36 -0000 1.85 |
25 |
@@ -1,6 +1,13 @@ |
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.84 2010/12/26 07:15:29 grozin Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.85 2011/05/29 19:39:36 grozin Exp $ |
31 |
+ |
32 |
+*asymptote-2.10 (29 May 2011) |
33 |
+ |
34 |
+ 29 May 2011; Andrey Grozin <grozin@g.o> +asymptote-2.10.ebuild, |
35 |
+ +files/asymptote-2.10-configure-ac.patch, +files/asymptote-2.10-info.patch, |
36 |
+ +files/asymptote-2.10-xdg-utils.patch: |
37 |
+ Version bump |
38 |
|
39 |
26 Dec 2010; Andrey Grozin <grozin@g.o> -asymptote-1.86.ebuild, |
40 |
-files/asymptote-1.86-configure-ac.patch, |
41 |
|
42 |
|
43 |
|
44 |
1.1 media-gfx/asymptote/asymptote-2.10.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.10.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/asymptote/asymptote-2.10.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: asymptote-2.10.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-2.10.ebuild,v 1.1 2011/05/29 19:39:36 grozin Exp $ |
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[-nocxx,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 |
--disable-gc-debug \ |
106 |
$(use_enable boehm-gc gc system) \ |
107 |
$(use_enable fftw) \ |
108 |
$(use_enable gsl) \ |
109 |
$(use_with sigsegv) |
110 |
} |
111 |
|
112 |
src_compile() { |
113 |
emake || die "emake failed" |
114 |
|
115 |
cd doc |
116 |
emake asy.1 || die "emake asy.1 failed" |
117 |
if use doc; then |
118 |
# info |
119 |
einfo "Making info" |
120 |
emake ${PN}.info || die "emake ${PN}.info failed" |
121 |
cd FAQ |
122 |
emake || die "emake FAQ failed" |
123 |
cd .. |
124 |
# pdf |
125 |
einfo "Making pdf docs" |
126 |
export VARTEXFONTS="${T}"/fonts |
127 |
# see bug #260606 |
128 |
emake -j1 asymptote.pdf || die "emake asymptote.pdf failed" |
129 |
emake CAD.pdf || die "emake CAD.pdf failed" |
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_install() { |
194 |
insinto "$(python_get_sitedir)" |
195 |
doins base/${PN}.py |
196 |
} |
197 |
python_execute_function python_install |
198 |
fi |
199 |
|
200 |
# emacs mode |
201 |
if use emacs; then |
202 |
elisp-install ${PN} base/*.el base/*.elc |
203 |
elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
204 |
fi |
205 |
|
206 |
# vim syntax |
207 |
if use vim-syntax; then |
208 |
insinto /usr/share/vim/vimfiles/syntax |
209 |
doins base/asy.vim |
210 |
insinto /usr/share/vim/vimfiles/ftdetect |
211 |
doins "${FILESDIR}"/asy-ftd.vim |
212 |
fi |
213 |
|
214 |
# extra documentation |
215 |
if use doc; then |
216 |
cd doc |
217 |
doinfo ${PN}.info* |
218 |
cd FAQ |
219 |
dodoc asy-faq.ascii |
220 |
doinfo asy-faq.info |
221 |
insinto /usr/share/doc/${PF}/html/FAQ |
222 |
doins asy-faq.html/* |
223 |
cd .. |
224 |
insinto /usr/share/doc/${PF} |
225 |
doins ${PN}.pdf CAD.pdf |
226 |
fi |
227 |
} |
228 |
|
229 |
pkg_postinst() { |
230 |
use python && python_mod_optimize ${PN}.py |
231 |
use latex && latex-package_rehash |
232 |
use emacs && elisp-site-regen |
233 |
|
234 |
elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' |
235 |
elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' |
236 |
} |
237 |
|
238 |
pkg_postrm() { |
239 |
use python && python_mod_cleanup ${PN}.py |
240 |
use latex && latex-package_rehash |
241 |
use emacs && elisp-site-regen |
242 |
} |