diff options
Diffstat (limited to 'libraries/gumbo-parser/gumbo-parser.SlackBuild')
-rw-r--r-- | libraries/gumbo-parser/gumbo-parser.SlackBuild | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/libraries/gumbo-parser/gumbo-parser.SlackBuild b/libraries/gumbo-parser/gumbo-parser.SlackBuild index f1337ac6ff..0a33f1346c 100644 --- a/libraries/gumbo-parser/gumbo-parser.SlackBuild +++ b/libraries/gumbo-parser/gumbo-parser.SlackBuild @@ -7,6 +7,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20250619 bkw: update for v0.13.1, switch to meson. # 20250125 bkw: update for v0.13.0. # 20241109 bkw: update for v0.12.1, which is a fork by a different # upstream. the original project's README says "project has been @@ -19,7 +20,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gumbo-parser -VERSION=${VERSION:-0.13.0} +VERSION=${VERSION:-0.13.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,23 +68,32 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + -# 20250125 bkw: yet again, someone insists we need a newer autoconf even -# though the old version works fine. -sed -i '/AC_PREREQ/s,2.72,2.69,' configure.ac - -autoreconf -fi - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --disable-static \ - --build=$ARCH-slackware-linux - -make -make install-strip DESTDIR=$PKG -rm -f $PKG/usr/lib*/*.la +# 20250619 bkw: -Dtests=false avoids a dependency on gtest. note that +# when tests is true, no actual testing is done: a gumbo_test binary +# is built, but doesn't get run, and doesn't get installed with the +# package. + +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dtests=false \ + -Dstrip=true + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +cd .. + +# 20250619 bkw: don't see a way to tell meson not to build static libs... +# upstream used both_libraries(), just rm the one we don't want. +rm -f $PKG/usr/lib*/*.a PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKGDOC |