7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# Template file for 'guile'
|
|
pkgname=guile
|
|
version=2.2.7
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-error-on-warning"
|
|
hostmakedepends="pkg-config texinfo"
|
|
makedepends="gc-devel gmp-devel libatomic_ops-devel libffi-devel libltdl-devel
|
|
libunistring-devel readline-devel"
|
|
short_desc="A portable, embeddable Scheme implementation written in C"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later, LGPL-3.0-or-later"
|
|
homepage="http://www.gnu.org/software/guile"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
|
|
subpackages="libguile guile-devel"
|
|
|
|
if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then
|
|
broken="opposite-endian host generates broken files"
|
|
fi
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Need host guile to cross compile
|
|
hostmakedepends+=" guile"
|
|
fi
|
|
|
|
post_extract() {
|
|
# broken files causing crash
|
|
rm -rf prebuilt/32-bit-big-endian
|
|
}
|
|
|
|
libguile_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
vmkdir usr/share/gdb/auto-load/usr/lib
|
|
mv ${PKGDESTDIR}/usr/lib/*.scm ${PKGDESTDIR}/usr/share/gdb/auto-load/usr/lib
|
|
}
|
|
}
|
|
|
|
guile-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="gmp-devel gc-devel guile>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/bin/guile-config
|
|
vmove usr/include
|
|
vmove usr/share/aclocal
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|