gc: Update to 8.2.2

Other cleanups:
* Remove --enable-mmap (which is the default configure option now)
* Fix license (it is MIT, not GPL)
* Set maintainer
* Remove unneeded CFLAGS
* Specify README.QUICK as license file
This commit is contained in:
Ivan Maidanski 2022-09-02 09:33:42 +03:00 committed by Đoàn Trần Công Danh
parent 47c51d797e
commit 6720bc3e99

View file

@ -1,28 +1,24 @@
# Template file for 'gc' # Template file for 'gc'
pkgname=gc pkgname=gc
version=8.0.6 version=8.2.2
revision=2 revision=1
build_style=gnu-configure build_style=gnu-configure
# libatomic_ops is replaced by C11 atomic # libatomic_ops is replaced by C11 atomic
configure_args="--enable-static --enable-mmap --with-libatomic-ops=none" configure_args="--enable-static --with-libatomic-ops=none"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
short_desc="Garbage collector for C and C++" short_desc="Garbage collector for C and C++"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Ivan Maidanski <ivmai@mail.ru>"
license="GPL-2.0-or-later" license="MIT"
homepage="https://www.hboehm.info/gc/" homepage="https://www.hboehm.info/gc/"
distfiles="https://github.com/ivmai/bdwgc/releases/download/v${version}/gc-${version}.tar.gz" distfiles="https://github.com/ivmai/bdwgc/releases/download/v${version}/gc-${version}.tar.gz"
checksum=3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11 checksum=f30107bcb062e0920a790ffffa56d9512348546859364c23a14be264b38836a0
case "$XBPS_TARGET_MACHINE" in
*-musl)
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
esac
post_install() { post_install() {
mkdir -p ${DESTDIR}/usr/include/gc/ mkdir -p ${DESTDIR}/usr/include/gc/
mv ${wrksrc}/include/* ${DESTDIR}/usr/include/gc/ mv ${wrksrc}/include/* ${DESTDIR}/usr/include/gc/
mv ${DESTDIR}/usr/include/gc/extra/* ${DESTDIR}/usr/include/ mv ${DESTDIR}/usr/include/gc/extra/* ${DESTDIR}/usr/include/
rmdir ${DESTDIR}/usr/include/gc/extra rmdir ${DESTDIR}/usr/include/gc/extra
vlicense README.QUICK
} }
gc-devel_package() { gc-devel_package() {