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