aboutsummaryrefslogtreecommitdiffstats
path: root/main/bison
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-05 15:10:25 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-07 04:43:45 +0000
commitb0d4dd347d6e6db48a4d090c9852a915c7631d98 (patch)
tree84cca328d7f5b98360e889df1858f13890e52ae2 /main/bison
parent3b0ec21ffe3d1386553a85f191578baad3485634 (diff)
downloadaports-b0d4dd347d6e6db48a4d090c9852a915c7631d98.tar.bz2
aports-b0d4dd347d6e6db48a4d090c9852a915c7631d98.tar.xz
main/bison: add check, disable during bootstrap
Diffstat (limited to 'main/bison')
-rw-r--r--main/bison/APKBUILD29
1 files changed, 14 insertions, 15 deletions
diff --git a/main/bison/APKBUILD b/main/bison/APKBUILD
index fea2c90b45..382b04743b 100644
--- a/main/bison/APKBUILD
+++ b/main/bison/APKBUILD
@@ -2,41 +2,40 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison
pkgver=3.0.4
-pkgrel=0
+pkgrel=1
pkgdesc="The GNU general-purpose parser generator"
arch="all"
license="GPL-3.0-or-later"
url="https://www.gnu.org/software/bison/bison.html"
makedepends="perl"
depends="m4"
+checkdepends="bison flex"
+[ -n "$BOOTSTRAP" ] && options="!check"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-doc"
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- cd "$_builddir"
-}
-
build() {
- cd "$_builddir"
- LIBS="-lrt" ./configure \
+ cd "$builddir"
+ ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share \
--infodir=/usr/share/info \
- --mandir=/usr/share/man \
- || return 1
- make || return 1
+ --mandir=/usr/share/man
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
}
-md5sums="c342201de104cc9ce0a21e0ad10d4021 bison-3.0.4.tar.xz"
-sha256sums="a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1 bison-3.0.4.tar.xz"
sha512sums="bbdc23e7772e49da1c7c47e66d4e4efbfbfe9b21dbc59bf3ad9a6e573eecac6c9f52c7f11a64be9897e8deb99ef7ba015164aa8232aa391b901dd7db03632412 bison-3.0.4.tar.xz"