ports/contrib (3.7): libsoup3: adopted
commit c06b3f6a04eee1b81b66f80b3f302771684cf29c Author: John McQuah <jmcquah@disroot.org> Date: Wed Aug 30 09:08:44 2023 -0400 libsoup3: adopted diff --git a/libsoup3/.signature b/libsoup3/.signature index 0517fbd34..75f9b222b 100644 --- a/libsoup3/.signature +++ b/libsoup3/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF36Lg+0aG/k2OQIZ4G4WurylxjsAXYYmuRHA4HD4n6x1l1lEj+jBEaC5nVB5IBFTDOqI0tKAHJORoFGZgd9DhUQk= -SHA256 (Pkgfile) = 69e780d0b514ff5fcd2935c8ba072242bd8ea4f461635e0c77a10f42b61f2bc8 +RWSagIOpLGJF38RmPG/kmfnJypqasSQsdxdfSYwbgmyi99rXBlsjy8Amakog9wG69aRU6LkPwH6gI+A1Rl0BQmtRGaTITUYZGwk= +SHA256 (Pkgfile) = f90e6731c5937bec5cb0326e40c5dcc639ae17f330411e518110991f1d9e2090 SHA256 (.footprint) = cfb8d4f6b0ae74df6d23f2830ed3380be0e60300d399b586e1f552168807921d SHA256 (libsoup-3.4.2.tar.xz) = 78c8fa37cb152d40ec8c4a148d6155e2f6947f3f1602a7cda3a31ad40f5ee2f3 diff --git a/libsoup3/Pkgfile b/libsoup3/Pkgfile index 314308300..ca9054db5 100644 --- a/libsoup3/Pkgfile +++ b/libsoup3/Pkgfile @@ -1,6 +1,6 @@ # Description: HTTP library implementation in C. # URL: https://wiki.gnome.org/action/show/Projects/libsoup -# Maintainer: unmaintained +# Maintainer: John McQuah, jmcquah at disroot dot org # Depends on: glib-networking libnghttp2 libpsl libxml2 # Optional: brotli gobject-introspection krb5 vala @@ -14,6 +14,11 @@ build() { prt-get isinst gobject-introspection && PKGMK_LIBSOUP3+=' -D introspection=enabled' prt-get isinst vala && PKGMK_LIBSOUP3+=' -D vapi=enabled' + # turn off translations here, for a trivial reduction in CPU time + # compared to removing $PKG/usr/share/locale later + # (assumes the user does not have xfremdSprache in $PATH) + sed -i 's/xgettext/xfremdSprache/g' libsoup-$version/meson.build + meson setup build libsoup-$version ${PKGMK_LIBSOUP3} \ --prefix=/usr \ --buildtype=plain \ @@ -22,10 +27,6 @@ build() { --wrap-mode nodownload \ --auto-features disabled - sed -i 's|-R/usr/lib||g' build/build.ninja - - meson compile -C build -j ${JOBS:-1} - DESTDIR=$PKG meson install -C build - - rm -r $PKG/usr/share/locale + ninja -C build -j ${JOBS:-1} + DESTDIR=$PKG ninja -C build install }
participants (1)
-
crux@crux.nu