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