1 |
commit: e67a23e4f6f41afcb68a1133279e302e50687193 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 8 12:30:44 2022 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 8 12:30:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e67a23e4 |
7 |
|
8 |
media-gfx/asymptote: bump to 2.78 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
media-gfx/asymptote/Manifest | 1 + |
14 |
media-gfx/asymptote/asymptote-2.78.ebuild | 242 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 243 insertions(+) |
16 |
|
17 |
diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest |
18 |
index ad8e023d17b7..5787d8e4b9b0 100644 |
19 |
--- a/media-gfx/asymptote/Manifest |
20 |
+++ b/media-gfx/asymptote/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST asymptote-2.70.src.tgz 4674495 BLAKE2B 126b2e99222e6ae438aaef89df00b8eae19118c3ef42d2fab0b0117f343911939e680d22e903b784213186a5d2eeeecb112afba1467562e7127c34de4bc66773 SHA512 24d60af361e3f0309a896ce8163da6fc0a9d6587efe726c5acf874dcb74f4d51b4bad8146a615ff54173ef06dac53117fd1cc09c77940271adc9f64cac6bcfe6 |
23 |
DIST asymptote-2.74.src.tgz 12510904 BLAKE2B 8c899f44c8572594fc1526204cfb8f4c3d503dcbd32ebf713eb507ab03966eb335fff8d1b071b568d226588e8b99a6c494b14602d30d1f654cb68b52874ff12e SHA512 cc9a4e6f4ceca5ed356b8ec0dd2d21c23fe19d28492e42cb9cc020759886aedcac1f909c35f6759a1cc6b2f8a2fe6569cc9f5e4686da139188354551e21c183b |
24 |
DIST asymptote-2.77.src.tgz 12519133 BLAKE2B afbd80b076348a12314a14511db4b369d8382b8da49b64b05e3d0c1c3f2546aa042a307b5f3eacbc3ecd7fd1b34d9aa34f83fd67c4d0bc240e44c49b058c9786 SHA512 1597543429a906927e20a2903c1a687ec19ef9467f6893760eed1896139379a964601ff057c8d3fd20b7bfbf0364827f53e768cc1d82498d078e3a69f88addec |
25 |
+DIST asymptote-2.78.src.tgz 15274780 BLAKE2B 0c99aff54df79eabdf059cc0bb2cdd0832d7cc7ae83a2e3ab08116aa6bc75de44f7adfa096b7ed832fc96cd9db0bb41a490a8c5fd29716ad9a7852e52a98ad2b SHA512 dcc27ce608cb72b3979a87bd6e312774008a225b0936027c11bf1862e21dce5db6de9bf5db14c85ba1f7ed25ec77c3a57e2ecf58a73b46315daca11777910c24 |
26 |
|
27 |
diff --git a/media-gfx/asymptote/asymptote-2.78.ebuild b/media-gfx/asymptote/asymptote-2.78.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..f36cb494507d |
30 |
--- /dev/null |
31 |
+++ b/media-gfx/asymptote/asymptote-2.78.ebuild |
32 |
@@ -0,0 +1,242 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{7..10} ) |
39 |
+ |
40 |
+inherit autotools elisp-common latex-package python-r1 |
41 |
+ |
42 |
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing" |
43 |
+HOMEPAGE="https://asymptote.sourceforge.io/" |
44 |
+SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
49 |
+IUSE="+boehm-gc context curl doc emacs examples fftw gsl +imagemagick latex lsp offscreen +opengl python sigsegv svg test vim-syntax X" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+REQUIRED_USE=" |
53 |
+ ${PYTHON_REQUIRED_USE} |
54 |
+ offscreen? ( opengl ) |
55 |
+ doc? ( boehm-gc )" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ >=sys-libs/ncurses-5.4-r5:0= |
59 |
+ >=sys-libs/readline-4.3-r5:0= |
60 |
+ net-libs/libtirpc:= |
61 |
+ imagemagick? ( media-gfx/imagemagick[png] ) |
62 |
+ opengl? ( media-libs/mesa[X(+)] media-libs/freeglut media-libs/glew:0 media-libs/glm ) |
63 |
+ offscreen? ( media-libs/mesa[osmesa] ) |
64 |
+ svg? ( app-text/dvisvgm ) |
65 |
+ sigsegv? ( dev-libs/libsigsegv ) |
66 |
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] ) |
67 |
+ fftw? ( >=sci-libs/fftw-3.0.1:= ) |
68 |
+ gsl? ( sci-libs/gsl:= ) |
69 |
+ python? ( ${PYTHON_DEPS} ) |
70 |
+ curl? ( net-misc/curl ) |
71 |
+ lsp? ( |
72 |
+ dev-libs/boost |
73 |
+ dev-libs/rapidjson |
74 |
+ dev-libs/utfcpp |
75 |
+ ) |
76 |
+ X? ( |
77 |
+ ${PYTHON_DEPS} |
78 |
+ dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,svg] |
79 |
+ dev-python/numpy |
80 |
+ dev-python/pycson |
81 |
+ >=gnome-base/librsvg-2.40 |
82 |
+ ) |
83 |
+ latex? ( |
84 |
+ virtual/latex-base |
85 |
+ >=dev-texlive/texlive-latexextra-2013 |
86 |
+ ) |
87 |
+ context? ( dev-texlive/texlive-context ) |
88 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
89 |
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
90 |
+DEPEND="${RDEPEND} |
91 |
+ dev-lang/perl |
92 |
+ doc? ( |
93 |
+ media-gfx/imagemagick[png] |
94 |
+ virtual/texi2dvi |
95 |
+ virtual/latex-base |
96 |
+ app-text/ghostscript-gpl ) |
97 |
+ test? ( app-text/ghostscript-gpl )" |
98 |
+ |
99 |
+TEXMF=/usr/share/texmf-site |
100 |
+ |
101 |
+PATCHES=( |
102 |
+ # Changing pdf, ps, image viewers to xdg-open |
103 |
+ "${FILESDIR}/${PN}-2.70-xdg-utils.patch" |
104 |
+ |
105 |
+ # Bug #322473 |
106 |
+ "${FILESDIR}/${PN}-2.70-info.patch" |
107 |
+) |
108 |
+ |
109 |
+src_prepare() { |
110 |
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ |
111 |
+ -i configure.ac \ |
112 |
+ || die "sed configure.ac failed" |
113 |
+ |
114 |
+ default |
115 |
+ eautoreconf |
116 |
+} |
117 |
+ |
118 |
+src_configure() { |
119 |
+ # for the CPPFLAGS see |
120 |
+ # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 |
121 |
+ econf \ |
122 |
+ CPPFLAGS=-DHAVE_SYS_TYPES_H \ |
123 |
+ CFLAGS="${CXXFLAGS}" \ |
124 |
+ --disable-gc-debug \ |
125 |
+ --disable-gc-full-debug \ |
126 |
+ --with-latex=/usr/share/texmf-site/tex/latex \ |
127 |
+ --with-context=/usr/share/texmf-site/tex/context \ |
128 |
+ $(use_enable boehm-gc gc system) \ |
129 |
+ $(use_enable curl) \ |
130 |
+ $(use_enable lsp) \ |
131 |
+ $(use_enable fftw) \ |
132 |
+ $(use_enable gsl) \ |
133 |
+ $(use_enable opengl gl) \ |
134 |
+ $(use_enable offscreen) \ |
135 |
+ $(use_enable sigsegv) |
136 |
+} |
137 |
+ |
138 |
+src_compile() { |
139 |
+ default |
140 |
+ |
141 |
+ cd doc || die |
142 |
+ emake asy.1 |
143 |
+ einfo "Making info" |
144 |
+ cd png || die |
145 |
+ emake ${PN}.info |
146 |
+ cd .. || die |
147 |
+ if use doc; then |
148 |
+ cd FAQ || die |
149 |
+ emake |
150 |
+ cd .. || die |
151 |
+ # pdf |
152 |
+ einfo "Making pdf docs" |
153 |
+ export VARTEXFONTS="${T}"/fonts |
154 |
+ # see bug #260606 |
155 |
+ emake -j1 asymptote.pdf |
156 |
+ emake CAD.pdf asy-latex.pdf asyRefCard.pdf |
157 |
+ fi |
158 |
+ cd .. || die |
159 |
+ |
160 |
+ if use emacs; then |
161 |
+ einfo "Compiling emacs lisp files" |
162 |
+ elisp-compile base/*.el |
163 |
+ fi |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ # the program |
168 |
+ dobin asy |
169 |
+ |
170 |
+ # .asy files |
171 |
+ insinto /usr/share/${PN} |
172 |
+ doins -r base/*.asy base/*.js base/*.sh base/*.ps base/shaders base/webgl |
173 |
+ chmod 755 "${D}"/usr/share/${PN}/shaders/* |
174 |
+ |
175 |
+ # documentation |
176 |
+ dodoc README ReleaseNotes ChangeLog |
177 |
+ cd doc || die |
178 |
+ doman asy.1 |
179 |
+ doinfo png/${PN}.info |
180 |
+ if use doc; then |
181 |
+ dodoc FAQ/asy-faq.ascii |
182 |
+ dodoc CAD.pdf asy-latex.pdf asyRefCard.pdf asymptote.pdf |
183 |
+ fi |
184 |
+ cd .. || die |
185 |
+ |
186 |
+ # asymptote.py |
187 |
+ if use python; then |
188 |
+ python_moduleinto ${PN} |
189 |
+ python_foreach_impl python_domodule aspy.py |
190 |
+ python_foreach_impl python_domodule base/${PN}.py |
191 |
+ fi |
192 |
+ |
193 |
+ # X GUI |
194 |
+ if use X; then |
195 |
+ cd GUI || die |
196 |
+ python_setup |
197 |
+ sed -e 1d -i xasy.py |
198 |
+ echo "#!/usr/bin/env ${EPYTHON}" > xasy1 |
199 |
+ cat xasy1 xasy.py > xasy |
200 |
+ rm xasy1 xasy.py |
201 |
+ mv xasy xasy.py |
202 |
+ cd .. || die |
203 |
+ python_domodule GUI |
204 |
+ chmod 755 "${D}/$(python_get_sitedir)/${PN}/GUI/xasy.py" |
205 |
+ dosym "$(python_get_sitedir)/${PN}/GUI/xasy.py" /usr/bin/xasy |
206 |
+ doman doc/xasy.1x |
207 |
+ fi |
208 |
+ |
209 |
+ # examples |
210 |
+ if use examples; then |
211 |
+ docinto examples |
212 |
+ dodoc \ |
213 |
+ examples/*.asy \ |
214 |
+ examples/*.views \ |
215 |
+ examples/*.dat \ |
216 |
+ examples/*.bib \ |
217 |
+ examples/*.png \ |
218 |
+ examples/*.pdb1 \ |
219 |
+ doc/*.asy \ |
220 |
+ doc/*.csv \ |
221 |
+ doc/*.dat \ |
222 |
+ doc/pixel.pdf \ |
223 |
+ doc/extra/*.asy |
224 |
+ docinto examples/animations |
225 |
+ dodoc examples/animations/*.asy |
226 |
+ fi |
227 |
+ |
228 |
+ # LaTeX style |
229 |
+ if use latex; then |
230 |
+ cd doc || die |
231 |
+ insinto "${TEXMF}"/tex/latex/${PN} |
232 |
+ doins *.sty latexmkrc |
233 |
+ if use examples; then |
234 |
+ docinto examples |
235 |
+ dodoc latexusage.tex externalprc.tex |
236 |
+ docinto examples/animations |
237 |
+ dodoc ../examples/animations/*.tex |
238 |
+ fi |
239 |
+ cd .. || die |
240 |
+ fi |
241 |
+ |
242 |
+ # ConTeXt |
243 |
+ if use context; then |
244 |
+ insinto /usr/share/texmf-site/tex/context |
245 |
+ doins doc/colo-asy.tex |
246 |
+ fi |
247 |
+ |
248 |
+ # emacs mode |
249 |
+ if use emacs; then |
250 |
+ elisp-install ${PN} base/*.el base/*.elc asy-keywords.el |
251 |
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
252 |
+ fi |
253 |
+ |
254 |
+ # vim syntax |
255 |
+ if use vim-syntax; then |
256 |
+ insinto /usr/share/vim/vimfiles/syntax |
257 |
+ doins base/asy.vim |
258 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
259 |
+ doins base/asy_filetype.vim |
260 |
+ fi |
261 |
+} |
262 |
+ |
263 |
+pkg_postinst() { |
264 |
+ use latex && latex-package_rehash |
265 |
+ use emacs && elisp-site-regen |
266 |
+ |
267 |
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' |
268 |
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' |
269 |
+} |
270 |
+ |
271 |
+pkg_postrm() { |
272 |
+ use latex && latex-package_rehash |
273 |
+ use emacs && elisp-site-regen |
274 |
+} |