1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/fig2dev/APKBUILD
Alex Yam ea435d30f2 testing/fig2dev: new aport
https://mcj.sourceforge.net/
translates Fig code to other graphic description languages
2021-02-14 11:40:09 +00:00

60 lines
1.6 KiB
Text
Executable file

# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=fig2dev
pkgver=3.2.8
pkgrel=0
pkgdesc="translates Fig code to other graphic description languages"
url="https://mcj.sourceforge.net/"
arch="all"
license="MIT"
makedepends="
diffutils
ghostscript
gzip
imagemagick
libpng-dev
netpbm
"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/mcj/fig2dev-$pkgver.tar.xz"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-transfig
make
}
check() {
# Expected result:
# 75 tests were successful.
# 4 tests were skipped.
#
# Skipped tests:
# [5: $i18ndir/cs_CZ.ps must exist]
# Broken test, only runs with "make installcheck", which then breaks:
# ".../tests/testsuite.dir/at-groups/5/test-source: line 15:"
# "/home/builder/aports/testing/fig2dev/src/fig2dev-3.2.8/fig2dev/tests/test1: not found"
#
# [55: accept large coordinates]
# Broken test, stalls waiting for input after error:
# "LaTeX Error: File 'pict2e.sty' not found."
# "Type X to quit or <RETURN> to proceed,"
# "or enter new name. (Default extension: sty)"
# Fix: Removed "texlive" from makedepends to skip test
#
# [59: conditionally allocate \XFigu]
# Passes with "texlive" in makedepends (but removed to skip test 55)
#
# [61: accept large coordinates]
# Passes with "texlive" in makedepends (but removed to skip test 55)
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="4958e97cecd651a15f25cfc27ae55fa05ae628ae4257d1eb454cba60da26a907a5dddf5736bee9145007f5e0bf251fd52924ae09e5f87b95f287bab4c9da04f5 fig2dev-3.2.8.tar.xz"