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