1 |
grozin 08/11/01 18:42:49 |
2 |
|
3 |
Modified: ChangeLog asymptote-1.46.ebuild |
4 |
Added: asymptote-1.47.ebuild |
5 |
Removed: asymptote-1.44.ebuild |
6 |
Log: |
7 |
Version |
8 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-tuxonice i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.24 media-gfx/asymptote/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.24&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/ChangeLog?rev=1.24&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/ChangeLog?r1=1.23&r2=1.24 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v |
20 |
retrieving revision 1.23 |
21 |
retrieving revision 1.24 |
22 |
diff -u -r1.23 -r1.24 |
23 |
--- ChangeLog 20 Oct 2008 10:50:15 -0000 1.23 |
24 |
+++ ChangeLog 1 Nov 2008 18:42:49 -0000 1.24 |
25 |
@@ -1,6 +1,16 @@ |
26 |
# ChangeLog for media-gfx/asymptote |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.23 2008/10/20 10:50:15 grozin Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/ChangeLog,v 1.24 2008/11/01 18:42:49 grozin Exp $ |
30 |
+ |
31 |
+*asymptote-1.47 (02 Nov 2008) |
32 |
+ |
33 |
+ 02 Nov 2008; Andrey Grozin <grozin@g.o> |
34 |
+ -files/asymptote-1.44-configure-ac.patch, |
35 |
+ -files/asymptote-1.44-xdg-utils.patch, |
36 |
+ +files/asymptote-1.47-configure-ac.patch, |
37 |
+ +files/asymptote-1.47-xdg-utils.patch, -asymptote-1.44.ebuild, |
38 |
+ asymptote-1.46.ebuild, +asymptote-1.47.ebuild: |
39 |
+ Version bump, old version removed. Bug #245058 fixed. |
40 |
|
41 |
*asymptote-1.46 (20 Oct 2008) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.2 media-gfx/asymptote/asymptote-1.46.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.46.ebuild?rev=1.2&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.46.ebuild?rev=1.2&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.46.ebuild?r1=1.1&r2=1.2 |
51 |
|
52 |
Index: asymptote-1.46.ebuild |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.46.ebuild,v |
55 |
retrieving revision 1.1 |
56 |
retrieving revision 1.2 |
57 |
diff -u -r1.1 -r1.2 |
58 |
--- asymptote-1.46.ebuild 20 Oct 2008 10:50:15 -0000 1.1 |
59 |
+++ asymptote-1.46.ebuild 1 Nov 2008 18:42:49 -0000 1.2 |
60 |
@@ -1,6 +1,6 @@ |
61 |
# Copyright 1999-2008 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.46.ebuild,v 1.1 2008/10/20 10:50:15 grozin Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.46.ebuild,v 1.2 2008/11/01 18:42:49 grozin Exp $ |
65 |
EAPI=2 |
66 |
inherit eutils autotools elisp-common latex-package multilib python |
67 |
|
68 |
@@ -138,6 +138,9 @@ |
69 |
|
70 |
# X GUI |
71 |
if use X; then |
72 |
+ exeinto /usr/share/${PN}/GUI |
73 |
+ doexe GUI/xasy.py |
74 |
+ rm GUI/xasy.py |
75 |
insinto /usr/share/${PN}/GUI |
76 |
doins GUI/*.py |
77 |
dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy |
78 |
|
79 |
|
80 |
|
81 |
1.1 media-gfx/asymptote/asymptote-1.47.ebuild |
82 |
|
83 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.47.ebuild?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/asymptote-1.47.ebuild?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: asymptote-1.47.ebuild |
87 |
=================================================================== |
88 |
# Copyright 1999-2008 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.47.ebuild,v 1.1 2008/11/01 18:42:49 grozin Exp $ |
91 |
EAPI=2 |
92 |
inherit eutils autotools elisp-common latex-package multilib python |
93 |
|
94 |
DESCRIPTION="A vector graphics language that provides a framework for technical drawing" |
95 |
HOMEPAGE="http://asymptote.sourceforge.net/" |
96 |
SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz" |
97 |
LICENSE="GPL-2" |
98 |
|
99 |
SLOT="0" |
100 |
KEYWORDS="~amd64 ~x86" |
101 |
|
102 |
IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex python sigsegv vim-syntax X" |
103 |
|
104 |
RDEPEND=">=sys-libs/readline-4.3-r5 |
105 |
>=sys-libs/ncurses-5.4-r5 |
106 |
imagemagick? ( media-gfx/imagemagick[png] ) |
107 |
sigsegv? ( dev-libs/libsigsegv ) |
108 |
boehm-gc? ( >=dev-libs/boehm-gc-7.0[-nocxx] ) |
109 |
fftw? ( >=sci-libs/fftw-3.0.1 ) |
110 |
gsl? ( sci-libs/gsl ) |
111 |
X? ( x11-misc/xdg-utils dev-lang/python dev-python/imaging[tk] ) |
112 |
python? ( dev-lang/python ) |
113 |
latex? ( virtual/latex-base ) |
114 |
emacs? ( virtual/emacs ) |
115 |
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
116 |
DEPEND="${RDEPEND} |
117 |
doc? ( dev-lang/perl virtual/texi2dvi virtual/latex-base media-gfx/imagemagick[png] )" |
118 |
|
119 |
pkg_setup() { |
120 |
if use latex; then |
121 |
# Calculating ASY_TEXMFDIR |
122 |
local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)" |
123 |
local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)" |
124 |
|
125 |
if [ -z "${TEXMFPATH}" ]; then |
126 |
eerror "You haven't defined the TEXMFSITE variable in your TeX config." |
127 |
eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}" |
128 |
die "Define TEXMFSITE in TeX configuration!" |
129 |
else |
130 |
# go through the colon separated list of directories |
131 |
# (maybe only one) provided in the variable |
132 |
# TEXMFPATH (generated from TEXMFSITE from TeX's config) |
133 |
# and choose only the first entry. |
134 |
# All entries are separated by colons, even when defined |
135 |
# with semi-colons, kpsewhich changes |
136 |
# the output to a generic format, so IFS has to be redefined. |
137 |
local IFS="${IFS}:" |
138 |
|
139 |
for strippedpath in ${TEXMFPATH}; do |
140 |
if [ -d ${strippedpath} ]; then |
141 |
ASY_TEXMFDIR="${strippedpath}" |
142 |
break |
143 |
fi |
144 |
done |
145 |
|
146 |
# verify if an existing path was chosen to prevent from |
147 |
# installing into the wrong directory |
148 |
if [ -z ${ASY_TEXMFDIR} ]; then |
149 |
eerror "TEXMFSITE does not contain any existing directory." |
150 |
eerror "Please define an existing directory in your TeX config file" |
151 |
eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories" |
152 |
die "TEXMFSITE variable did not contain an existing directory" |
153 |
fi |
154 |
fi |
155 |
fi |
156 |
} |
157 |
|
158 |
src_prepare() { |
159 |
# Fixing fftwl, gsl, sigsegv enabling |
160 |
epatch "${FILESDIR}/${P}-configure-ac.patch" |
161 |
einfo "Patching configure.ac" |
162 |
sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ |
163 |
-i configure.ac \ |
164 |
|| die "sed configure.ac failed" |
165 |
|
166 |
# Changing pdf, ps, image viewers to xdg-open |
167 |
epatch "${FILESDIR}/${P}-xdg-utils.patch" |
168 |
|
169 |
eautoreconf |
170 |
} |
171 |
|
172 |
src_configure() { |
173 |
# for the CPPFLAGS see |
174 |
# http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 |
175 |
econf CPPFLAGS=-DHAVE_SYS_TYPES_H \ |
176 |
--disable-gc-debug \ |
177 |
$(use_enable boehm-gc gc system) \ |
178 |
$(use_with fftw) \ |
179 |
$(use_with gsl) \ |
180 |
$(use_with sigsegv) |
181 |
} |
182 |
|
183 |
src_compile() { |
184 |
emake || die "emake failed" |
185 |
|
186 |
cd doc |
187 |
emake asy.1 || die "emake asy.1 failed" |
188 |
if use doc; then |
189 |
# info |
190 |
einfo "Making info" |
191 |
emake ${PN}.info || die "emake ${PN}.info failed" |
192 |
# html |
193 |
einfo "Making html docs" |
194 |
emake ${PN}/index.html |
195 |
einfo "Making FAQ" |
196 |
cd FAQ |
197 |
emake |
198 |
cd .. |
199 |
# pdf |
200 |
einfo "Making pdf docs" |
201 |
export VARTEXFONTS="${T}"/fonts |
202 |
emake asymptote.pdf |
203 |
emake CAD.pdf |
204 |
fi |
205 |
cd .. |
206 |
|
207 |
if use emacs; then |
208 |
einfo "Compiling emacs lisp files" |
209 |
elisp-compile base/*.el || die "elisp-compile failed" |
210 |
fi |
211 |
} |
212 |
|
213 |
src_install() { |
214 |
# the program |
215 |
exeinto /usr/bin |
216 |
doexe asy |
217 |
|
218 |
# .asy files |
219 |
insinto /usr/share/${PN} |
220 |
doins base/*.asy |
221 |
|
222 |
# documentation |
223 |
dodoc BUGS ChangeLog README ReleaseNotes TODO |
224 |
doman doc/asy.1 |
225 |
|
226 |
# X GUI |
227 |
if use X; then |
228 |
exeinto /usr/share/${PN}/GUI |
229 |
doexe GUI/xasy.py |
230 |
rm GUI/xasy.py |
231 |
insinto /usr/share/${PN}/GUI |
232 |
doins GUI/*.py |
233 |
dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy |
234 |
doman doc/xasy.1x |
235 |
fi |
236 |
|
237 |
# examples |
238 |
if use examples; then |
239 |
insinto /usr/share/${PN}/examples |
240 |
doins examples/*.asy \ |
241 |
examples/*.eps \ |
242 |
doc/*.asy \ |
243 |
doc/*.csv \ |
244 |
doc/*.dat \ |
245 |
doc/extra/*.asy |
246 |
if use X; then |
247 |
doins GUI/*.asy |
248 |
fi |
249 |
insinto /usr/share/${PN}/examples/animations |
250 |
doins examples/animations/*.asy |
251 |
fi |
252 |
|
253 |
# LaTeX style |
254 |
if use latex; then |
255 |
cd doc |
256 |
insinto "${ASY_TEXMFDIR}"/tex/latex |
257 |
doins ${PN}.sty asycolors.sty |
258 |
if use examples; then |
259 |
insinto /usr/share/${PN}/examples |
260 |
doins latexusage.tex |
261 |
fi |
262 |
cd .. |
263 |
fi |
264 |
|
265 |
# asymptote.py |
266 |
if use python; then |
267 |
python_version |
268 |
insinto /usr/$(get_libdir)/python${PYVER}/site-packages |
269 |
doins base/${PN}.py |
270 |
fi |
271 |
|
272 |
# emacs mode |
273 |
if use emacs; then |
274 |
elisp-install ${PN} base/*.el base/*.elc |
275 |
elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
276 |
fi |
277 |
|
278 |
# vim syntax |
279 |
if use vim-syntax; then |
280 |
insinto /usr/share/vim/vimfiles/syntax |
281 |
doins base/asy.vim |
282 |
insinto /usr/share/vim/vimfiles/ftdetect |
283 |
doins "${FILESDIR}"/asy-ftd.vim |
284 |
fi |
285 |
|
286 |
# extra documentation |
287 |
if use doc; then |
288 |
cd doc |
289 |
doinfo ${PN}.info* |
290 |
dohtml ${PN}/* |
291 |
cd FAQ |
292 |
dodoc asy-faq.ascii |
293 |
doinfo asy-faq.info |
294 |
insinto /usr/share/doc/${PF}/html/FAQ |
295 |
doins asy-faq.html/* |
296 |
cd .. |
297 |
insinto /usr/share/doc/${PF} |
298 |
doins ${PN}.pdf CAD.pdf |
299 |
fi |
300 |
} |
301 |
|
302 |
pkg_postinst() { |
303 |
if use python; then |
304 |
python_version |
305 |
python_mod_compile \ |
306 |
/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}.py |
307 |
fi |
308 |
|
309 |
use latex && latex-package_rehash |
310 |
|
311 |
use emacs && elisp-site-regen |
312 |
|
313 |
elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' |
314 |
elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' |
315 |
} |
316 |
|
317 |
pkg_postrm() { |
318 |
use latex && latex-package_rehash |
319 |
use emacs && elisp-site-regen |
320 |
use python && python_mod_cleanup |
321 |
} |