diff --git a/net/.buildlist.net b/net/.buildlist.net index ec2463d..e0de371 100644 --- a/net/.buildlist.net +++ b/net/.buildlist.net @@ -95,6 +95,9 @@ dhcpcd geocode-glib geoclue redshift +webkitgtk +libhandy +epiphany balsa iperf ipset diff --git a/net/epiphany/epiphany.SMBuild b/net/epiphany/epiphany.SMBuild new file mode 100755 index 0000000..b2c155d --- /dev/null +++ b/net/epiphany/epiphany.SMBuild @@ -0,0 +1,31 @@ +app=epiphany +version=3.38.5 +build=1sml +desc="Webkit-based browser for GNOME" +homepage="https://wiki.gnome.org/Apps/Web" +download="https://gitlab.gnome.org/GNOME/epiphany/-/archive/41.3/epiphany-41.3.tar.bz2" +requires="libhandy libdazzle webkitgtk" + +build() { + mkandenterbuilddir + rm -rf $app-$version + + tar xf $srcdir/$app-$version.tar.?z** + cd $app-$version + fixbuilddirpermissions + + patch -p1 < $srcdir/fix-portal-header.patch + + mkdir -p smbuild && cd smbuild + meson .. \ + --prefix="/" + + ninja + DESTDIR="$pkg" ninja install + + mkfinalpkg +} + +sha512sums=" +9c0189fb4570d5060c5443090a783d0634f687b8c50df36dcc24881cda02709ee458ae553780c00ff313042324b5d4707382c77c7b06900821c8fa495cfbacd9 epiphany-3.38.5.tar.bz2 +" diff --git a/net/epiphany/fix-portal-header.patch b/net/epiphany/fix-portal-header.patch new file mode 100644 index 0000000..f8baa5e --- /dev/null +++ b/net/epiphany/fix-portal-header.patch @@ -0,0 +1,11 @@ +--- a/lib/ephy-flatpak-utils.c 2022-02-20 21:15:29.929976667 +0530 ++++ b/lib/ephy-flatpak-utils.c 2022-02-20 21:15:53.009691292 +0530 +@@ -28,7 +28,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include diff --git a/net/libhandy/libhandy.SMBuild b/net/libhandy/libhandy.SMBuild new file mode 100755 index 0000000..8af29cb --- /dev/null +++ b/net/libhandy/libhandy.SMBuild @@ -0,0 +1,32 @@ +app=libhandy +version=1.4.0 +build=1sml +homepage="https://gitlab.gnome.org/GNOME/libhandy/" +download="https://gitlab.gnome.org/GNOME/libhandy/-/archive/1.4.0/libhandy-1.4.0.tar.bz2" +desc="Collection of GTK+ widgets for mobile phones" +requires="webkitgtk libdazzle" + +build() { + mkandenterbuilddir + rm -rf $app-$version + + tar xf $srcdir/$app-$version.tar.?z* + cd $app-$version + fixbuilddirpermissions + + mkdir smbuild && cd smbuild + meson .. \ + --prefix="/" + + ninja + DESTDIR="$pkg" ninja install + + cp ../COPYING $pkgdocs/ + + mkfinalpkg +} + + +sha512sums=" +16ddb39a884e6a64e9e9a086a4fe54cf58d88ba08ccb54ffb48ba7e7a2896b242910603cbbad6a7417fcd888e5704a1b22aad6772f7286582a960cbc1a684a40 libhandy-1.4.0.tar.bz2 +" diff --git a/net/webkitgtk/shapeoutsideinfo.patch b/net/webkitgtk/shapeoutsideinfo.patch new file mode 100644 index 0000000..cc37f46 --- /dev/null +++ b/net/webkitgtk/shapeoutsideinfo.patch @@ -0,0 +1,15 @@ +$NetBSD: patch-Source_WebCore_rendering_shapes_ShapeOutsideInfo.cpp,v 1.1 2021/03/30 12:47:42 leot Exp $ + +Properly calls std::isnan() + +--- a/Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp.orig 2021-02-26 09:57:14.000000000 +0000 ++++ b/Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp +@@ -172,7 +172,7 @@ const Shape& ShapeOutsideInfo::computedS + WritingMode writingMode = containingBlockStyle.writingMode(); + auto margin = [&] { + auto shapeMargin = floatValueForLength(m_renderer.style().shapeMargin(), m_renderer.containingBlock() ? m_renderer.containingBlock()->contentWidth() : 0_lu); +- return isnan(shapeMargin) ? 0.0f : shapeMargin; ++ return std::isnan(shapeMargin) ? 0.0f : shapeMargin; + }(); + float shapeImageThreshold = style.shapeImageThreshold(); + const ShapeValue& shapeValue = *style.shapeOutside(); diff --git a/net/webkitgtk/symboltable.patch b/net/webkitgtk/symboltable.patch new file mode 100644 index 0000000..13fa4e9 --- /dev/null +++ b/net/webkitgtk/symboltable.patch @@ -0,0 +1,11 @@ +Fix isinf errors +--- a/Source/ThirdParty/ANGLE/src/compiler/translator/SymbolTable.h.orig ++++ b/Source/ThirdParty/ANGLE/src/compiler/translator/SymbolTable.h +@@ -30,6 +30,7 @@ + // are tracked in the intermediate representation, not the symbol table. + // + ++#include + #include + #include + #include diff --git a/net/webkitgtk/webkitgtk.SMBuild b/net/webkitgtk/webkitgtk.SMBuild new file mode 100755 index 0000000..b22d81a --- /dev/null +++ b/net/webkitgtk/webkitgtk.SMBuild @@ -0,0 +1,51 @@ +app=webkitgtk +version=2.34.6 +build=1sml +homepage="https://webkitgtk.org/" +download="https://webkitgtk.org/releases/webkitgtk-2.34.6.tar.xz" +desc="GTK+ port of the WebKit" +requires="libwebp libtasn1 gtk3 bubblewrap gst-plugins-base libmanette ruby" + +build() { + mkandenterbuilddir + rm -rf $app-$version + + tar xf $srcdir/$app-$version.tar.?z* + cd $app-$version + fixbuilddirpermissions + + unset CFLAGS CXXFLAGS + + patch -p1 < $srcdir/symboltable.patch + patch -p1 < $srcdir/shapeoutsideinfo.patch + + mkdir -p smbuild && cd smbuild + cmake .. -GNinja \ + -DPORT=GTK \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX="" \ + -DLIB_INSTALL_DIR="/lib" \ + -DENABLE_GTKDOC=OFF \ + -DENABLE_GEOLOCATION=OFF \ + -DENABLE_SAMPLING_PROFILER=OFF \ + -DENABLE_MINIBROWSER=ON \ + -DUSE_WPE_RENDERER=OFF \ + -DUSE_LD_GOLD=OFF \ + -DUSE_SYSTEMD=OFF \ + -DUSE_SOUP2=ON \ + -DENABLE_GLES2=ON + + ninja JavaScriptCore-4-gir + ninja + + DESTDIR="$pkg" ninja install + + mkfinalpkg +} + +sha512sums=" +57ab25af027ae39820622743c258f3e6d0af86376f2a4c3a8ede560ca6652c98c49056c716aace56291264c18164cb60395be9779a9d12455e6a0f7d2c197343 webkitgtk-2.34.6.tar.xz +a1304879072c2fcfa5b664faf7f57353e1eca007aa0f5723f2020d9f1ed10c7f3281ec3b0f359467843a7ea7014e7994b2b85ca97de96cd78cfedcc7839fdc0f shapeoutsideinfo.patch +dd2b9a6ac0afdc3a79c6b7c904cd5a5d1dbbae7a5c002dbbdf50bf93dbeba44a31f957cab199262ff83fe3e5e2970670353eed927392b2443684b214695b8473 symboltable.patch +"