mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-10 02:45:01 +02:00
63 lines
1.6 KiB
Text
63 lines
1.6 KiB
Text
# Contributor: Julian Weigt <juw@posteo.de>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=asymptote
|
|
pkgver=3.04
|
|
pkgrel=0
|
|
pkgdesc="Vector graphics language for technical drawing"
|
|
url="https://asymptote.sourceforge.io/"
|
|
arch="all !ppc64le !s390x !riscv64 !loongarch64" #blocked by texlive
|
|
license="LGPL-3.0-or-later"
|
|
depends="
|
|
ghostscript
|
|
texlive
|
|
texlive-dvi
|
|
"
|
|
### Optional dependencies
|
|
# gsl and gsl-dev for the support of certain special functions.
|
|
# fftw for fourier transform of data
|
|
# numpy pyqt5 cson and librsvg for GUI program xasy. I could not find cson for alpine though.
|
|
# freeglut for openGL support
|
|
makedepends="
|
|
bison
|
|
flex
|
|
libtool
|
|
python3
|
|
texinfo
|
|
texmf-dist-lang
|
|
texmf-dist-latexextra
|
|
texmf-dist-plaingeneric
|
|
zlib-dev
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="https://downloads.sourceforge.net/sourceforge/asymptote/asymptote-$pkgver.src.tgz"
|
|
|
|
build() {
|
|
# Without specifying, the content of texmf goes to /texmf-dist in root dir
|
|
# Build hangs without --disable-gc
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-latex=/usr/share/texmf/tex/latex \
|
|
--with-context=/usr/share/texmf/tex/context \
|
|
--disable-gc
|
|
make asy
|
|
|
|
#-j1 is needed for building documentation with pdflatex due to probably race conditions
|
|
make -j1 all
|
|
}
|
|
|
|
check() {
|
|
### Other option:
|
|
#make check-all. Fails without gsl and gsl-dev.
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
### Other options
|
|
#make install doesn't install html documentation
|
|
make -j1 DESTDIR="$pkgdir" install-all
|
|
}
|
|
|
|
sha512sums="
|
|
b3277504ddacf9b124bd8c74251a1ed4ba12bad69bb666ce508794fda8fb3bb5ea3682f1946fa75fa05366fd1eec9a4534ec7841fe069f7f7922816a9bbb61bc asymptote-3.04.src.tgz
|
|
"
|