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