1 |
commit: fa17ec2cd2d6fcbd8a0b7912df62aa3e09987530 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 4 12:39:34 2019 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 4 12:39:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa17ec2c |
7 |
|
8 |
media-gfx/asymptote: cleaning old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
media-gfx/asymptote/asymptote-2.48.ebuild | 214 ------------------------------ |
14 |
1 file changed, 214 deletions(-) |
15 |
|
16 |
diff --git a/media-gfx/asymptote/asymptote-2.48.ebuild b/media-gfx/asymptote/asymptote-2.48.ebuild |
17 |
deleted file mode 100644 |
18 |
index 3941b97d615..00000000000 |
19 |
--- a/media-gfx/asymptote/asymptote-2.48.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,214 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-PYTHON_COMPAT=( python3_{5,6,7} ) |
28 |
- |
29 |
-inherit autotools elisp-common latex-package multilib python-r1 |
30 |
- |
31 |
-DESCRIPTION="A vector graphics language that provides a framework for technical drawing" |
32 |
-HOMEPAGE="http://asymptote.sourceforge.net/" |
33 |
-SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz" |
34 |
- |
35 |
-LICENSE="GPL-3" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
38 |
-IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg test vim-syntax X" |
39 |
- |
40 |
-REQUIRED_USE=" |
41 |
- ${PYTHON_REQUIRED_USE} |
42 |
- offscreen? ( opengl ) |
43 |
- doc? ( boehm-gc )" |
44 |
- |
45 |
-RDEPEND=" |
46 |
- >=sys-libs/ncurses-5.4-r5:0= |
47 |
- >=sys-libs/readline-4.3-r5:0= |
48 |
- imagemagick? ( media-gfx/imagemagick[png] ) |
49 |
- opengl? ( >=media-libs/mesa-8 ) |
50 |
- offscreen? ( media-libs/mesa[osmesa] ) |
51 |
- svg? ( app-text/dvisvgm ) |
52 |
- sigsegv? ( dev-libs/libsigsegv ) |
53 |
- boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] ) |
54 |
- fftw? ( >=sci-libs/fftw-3.0.1 ) |
55 |
- gsl? ( sci-libs/gsl ) |
56 |
- python? ( ${PYTHON_DEPS} ) |
57 |
- X? ( |
58 |
- ${PYTHON_DEPS} |
59 |
- dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,svg] |
60 |
- dev-python/numpy |
61 |
- dev-python/pycson |
62 |
- >=gnome-base/librsvg-2.40 |
63 |
- ) |
64 |
- latex? ( |
65 |
- virtual/latex-base |
66 |
- >=dev-texlive/texlive-latexextra-2013 |
67 |
- ) |
68 |
- emacs? ( virtual/emacs ) |
69 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
70 |
-DEPEND="${RDEPEND} |
71 |
- doc? ( |
72 |
- dev-lang/perl |
73 |
- media-gfx/imagemagick[png] |
74 |
- virtual/texi2dvi |
75 |
- virtual/latex-base |
76 |
- app-text/ghostscript-gpl ) |
77 |
- test? ( app-text/ghostscript-gpl )" |
78 |
- |
79 |
-TEXMF=/usr/share/texmf-site |
80 |
- |
81 |
-PATCHES=( |
82 |
- # gc.h -> gc/gc.h |
83 |
- "${FILESDIR}/${P}-configure-ac.patch" |
84 |
- |
85 |
- # Changing pdf, ps, image viewers to xdg-open |
86 |
- "${FILESDIR}/${P}-xdg-utils.patch" |
87 |
- |
88 |
- # Bug #322473 |
89 |
- "${FILESDIR}/${P}-info.patch" |
90 |
-) |
91 |
- |
92 |
-src_prepare() { |
93 |
- sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ |
94 |
- -i configure.ac \ |
95 |
- || die "sed configure.ac failed" |
96 |
- |
97 |
- default |
98 |
- eautoreconf |
99 |
-} |
100 |
- |
101 |
-src_configure() { |
102 |
- # for the CPPFLAGS see |
103 |
- # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 |
104 |
- econf \ |
105 |
- CPPFLAGS=-DHAVE_SYS_TYPES_H \ |
106 |
- CFLAGS="${CXXFLAGS}" \ |
107 |
- --disable-gc-debug \ |
108 |
- $(use_enable boehm-gc gc system) \ |
109 |
- $(use_enable fftw) \ |
110 |
- $(use_enable gsl) \ |
111 |
- $(use_enable opengl gl) \ |
112 |
- $(use_enable offscreen) \ |
113 |
- $(use_enable sigsegv) |
114 |
-} |
115 |
- |
116 |
-src_compile() { |
117 |
- default |
118 |
- |
119 |
- cd doc || die |
120 |
- emake asy.1 |
121 |
- if use doc; then |
122 |
- # info |
123 |
- einfo "Making info" |
124 |
- emake ${PN}.info |
125 |
- cd FAQ || die |
126 |
- emake |
127 |
- cd .. || die |
128 |
- # pdf |
129 |
- einfo "Making pdf docs" |
130 |
- export VARTEXFONTS="${T}"/fonts |
131 |
- # see bug #260606 |
132 |
- emake -j1 asymptote.pdf |
133 |
- emake CAD.pdf |
134 |
- fi |
135 |
- cd .. || die |
136 |
- |
137 |
- if use emacs; then |
138 |
- einfo "Compiling emacs lisp files" |
139 |
- elisp-compile base/*.el |
140 |
- fi |
141 |
-} |
142 |
- |
143 |
-src_install() { |
144 |
- # the program |
145 |
- dobin asy |
146 |
- |
147 |
- # .asy files |
148 |
- insinto /usr/share/${PN} |
149 |
- doins base/*.asy |
150 |
- |
151 |
- # documentation |
152 |
- dodoc BUGS ChangeLog README ReleaseNotes TODO |
153 |
- doman doc/asy.1 |
154 |
- |
155 |
- # X GUI |
156 |
- if use X; then |
157 |
- insinto /usr/share/${PN} |
158 |
- doins -r GUI |
159 |
- chmod +x "${D}"usr/share/${PN}/GUI/xasy.py |
160 |
- dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy |
161 |
- doman doc/xasy.1x |
162 |
- fi |
163 |
- |
164 |
- # examples |
165 |
- if use examples; then |
166 |
- insinto /usr/share/${PN}/examples |
167 |
- doins \ |
168 |
- examples/*.asy \ |
169 |
- examples/*.eps \ |
170 |
- doc/*.asy \ |
171 |
- doc/*.csv \ |
172 |
- doc/*.dat \ |
173 |
- doc/extra/*.asy |
174 |
- insinto /usr/share/${PN}/examples/animations |
175 |
- doins examples/animations/*.asy |
176 |
- fi |
177 |
- |
178 |
- # LaTeX style |
179 |
- if use latex; then |
180 |
- cd doc || die |
181 |
- insinto "${TEXMF}"/tex/latex/${PN} |
182 |
- doins ${PN}.sty asycolors.sty |
183 |
- if use examples; then |
184 |
- insinto /usr/share/${PN}/examples |
185 |
- doins latexusage.tex |
186 |
- fi |
187 |
- cd .. || die |
188 |
- fi |
189 |
- |
190 |
- # asymptote.py |
191 |
- if use python; then |
192 |
- python_foreach_impl python_domodule base/${PN}.py |
193 |
- fi |
194 |
- |
195 |
- # emacs mode |
196 |
- if use emacs; then |
197 |
- elisp-install ${PN} base/*.el base/*.elc |
198 |
- elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
199 |
- fi |
200 |
- |
201 |
- # vim syntax |
202 |
- if use vim-syntax; then |
203 |
- insinto /usr/share/vim/vimfiles/syntax |
204 |
- doins base/asy.vim |
205 |
- insinto /usr/share/vim/vimfiles/ftdetect |
206 |
- doins "${FILESDIR}"/asy-ftd.vim |
207 |
- fi |
208 |
- |
209 |
- # extra documentation |
210 |
- if use doc; then |
211 |
- cd doc || die |
212 |
- doinfo ${PN}.info* |
213 |
- cd FAQ || die |
214 |
- dodoc asy-faq.ascii |
215 |
- doinfo asy-faq.info |
216 |
- insinto /usr/share/doc/${PF}/html/FAQ |
217 |
- doins asy-faq.html/* |
218 |
- cd .. || die |
219 |
- insinto /usr/share/doc/${PF} |
220 |
- doins ${PN}.pdf CAD.pdf |
221 |
- fi |
222 |
-} |
223 |
- |
224 |
-pkg_postinst() { |
225 |
- use latex && latex-package_rehash |
226 |
- use emacs && elisp-site-regen |
227 |
- |
228 |
- elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' |
229 |
- elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' |
230 |
-} |
231 |
- |
232 |
-pkg_postrm() { |
233 |
- use latex && latex-package_rehash |
234 |
- use emacs && elisp-site-regen |
235 |
-} |