diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-28 19:51:12 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-28 19:57:12 +0100 |
commit | 9f42558b67d46854eb6b7e39c52078de4ffd6079 (patch) | |
tree | fafbf9fcfaa7635ad054dcd001c9104635c5f467 /main/gc | |
parent | 741cdad1351b68cf710497ddb54b35293655226d (diff) | |
download | aports-9f42558b67d46854eb6b7e39c52078de4ffd6079.tar.bz2 aports-9f42558b67d46854eb6b7e39c52078de4ffd6079.tar.xz |
main/gc: fix code-style
Diffstat (limited to 'main/gc')
-rw-r--r-- | main/gc/APKBUILD | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/main/gc/APKBUILD b/main/gc/APKBUILD index 161d211825..0b80823fe4 100644 --- a/main/gc/APKBUILD +++ b/main/gc/APKBUILD @@ -6,18 +6,20 @@ pkgdesc="A garbage collector for C and C++" url="http://hboehm.info/gc/" arch="all" license="GPL" -depends= -makedepends='libatomic_ops-dev linux-headers' +makedepends="libatomic_ops-dev linux-headers" subpackages="$pkgname-dev $pkgname-doc libgc++:libgccpp" source="http://hboehm.info/gc/gc_source/gc-$pkgver.tar.gz 0001-Fix-gctest-with-musl-libc-on-s390x.patch fix-boehm-gc.patch " -builddir="$srcdir"/gc-${pkgver%[a-z]} +builddir="$srcdir/gc-${pkgver%[a-z]}" build() { cd "$builddir" - [ "$CLIBC" = "musl" ] && export CFLAGS="$CFLAGS -D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR" + + if [ "$CLIBC" = "musl" ]; then + export CFLAGS="$CFLAGS -D_GNU_SOURCE -DNO_GETCONTEXT -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR" + fi ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -27,6 +29,13 @@ build() { make } +check() { + cd "$builddir" + + # two FAILs due to grsecurity + make check +} + package() { cd "$builddir" make DESTDIR="$pkgdir" install @@ -37,13 +46,6 @@ libgccpp() { mv "$pkgdir"/usr/lib/libgccpp.* "$subpkgdir"/usr/lib/ } -check() { - cd "$builddir" - - # two FAILs due to grsecurity - make check -} - sha512sums="2c85be3e24b85732b3dc6f08fe98cf1a82b6fb2a22ec73090f80920721c737ef92cee8f0cd7ea7228d686005d164e7da54ce3907c3a1ba5eefa43355a472085e gc-7.6.4.tar.gz 829b68d88a48a8e414f9d509d8da87a6a127fc90b871d0c30596fe9cb39e3fe093d671160d86db1affda246e2409b05dd33e1190e36f2c4d0e784fffd404b652 0001-Fix-gctest-with-musl-libc-on-s390x.patch 6439505931f0d023bf27d6ce0af90d09dc23bb9dd49b561566ec54b2cddc20642be9bd7b41203f643cb6efed3db2f54aef410b436f3acc2351fe4bb0a8791ea4 fix-boehm-gc.patch" |