diff options
Diffstat (limited to 'libraries/gumbo-parser')
-rw-r--r-- | libraries/gumbo-parser/README | 2 | ||||
-rw-r--r-- | libraries/gumbo-parser/gumbo-parser.SlackBuild | 46 | ||||
-rw-r--r-- | libraries/gumbo-parser/gumbo-parser.info | 8 |
3 files changed, 34 insertions, 22 deletions
diff --git a/libraries/gumbo-parser/README b/libraries/gumbo-parser/README index db1f271bd5..36df114f7a 100644 --- a/libraries/gumbo-parser/README +++ b/libraries/gumbo-parser/README @@ -1,3 +1,5 @@ +gumbo-parser (An HTML5 parsing library in pure C99) + Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such 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 diff --git a/libraries/gumbo-parser/gumbo-parser.info b/libraries/gumbo-parser/gumbo-parser.info index d47b625f62..01fd58b788 100644 --- a/libraries/gumbo-parser/gumbo-parser.info +++ b/libraries/gumbo-parser/gumbo-parser.info @@ -1,8 +1,8 @@ PRGNAM="gumbo-parser" -VERSION="0.13.0" -HOMEPAGE="https://codeberg.org/grisha/gumbo-parser" -DOWNLOAD="https://slackware.uk/~urchlay/src/gumbo-parser-0.13.0.tar.gz" -MD5SUM="6fc70b493c17793267c8fbc70b128447" +VERSION="0.13.1" +HOMEPAGE="https://codeberg.org/gumbo-parser/gumbo-parser" +DOWNLOAD="https://slackware.uk/~urchlay/src/gumbo-parser-0.13.1.tar.gz" +MD5SUM="ef2920ea4ca80215afbbe6f4e5bd28c0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |