mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
libsoup, bump version (#7228)
This commit is contained in:
88
net-libs/libsoup/libsoup3-3.2.0.recipe
Normal file
88
net-libs/libsoup/libsoup3-3.2.0.recipe
Normal file
@@ -0,0 +1,88 @@
|
||||
SUMMARY="HTTP client/server library for GNOME"
|
||||
DESCRIPTION="libsoup is an HTTP client/server library for GNOME. \
|
||||
It uses GObjects and the glib main loop, to integrate well with \
|
||||
GNOME applications, and also has a synchronous API, for use in threaded applications."
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/libsoup/"
|
||||
COPYRIGHT="2005 - 2015 The GNOME Project"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/libsoup/${portVersion%.*}/libsoup-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="2832370698ca8f9fbf174c345b73d89b60561103a626c2df70726b0707f79bd3"
|
||||
SOURCE_DIR="libsoup-$portVersion"
|
||||
PATCHES="libsoup3-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.6.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libsoup3$secondaryArchSuffix = $portVersion
|
||||
lib:libsoup_3.0$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbrotlidec$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libglib_networking_2.0$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libnghttp2$secondaryArchSuffix
|
||||
lib:libpsl$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libsoup3${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsoup_3.0$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libsoup3$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbrotlidec$secondaryArchSuffix
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libpsl$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:meson
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
meson build --buildtype=release \
|
||||
--prefix=$prefix \
|
||||
--libdir=$libDir \
|
||||
--datadir=$dataDir \
|
||||
--localedir=$dataDir/locale \
|
||||
--includedir=$includeDir \
|
||||
-Dtls_check=false #--reconfigure
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
|
||||
prepareInstalledDevelLib libsoup-3.0
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
39
net-libs/libsoup/patches/libsoup3-3.2.0.patchset
Normal file
39
net-libs/libsoup/patches/libsoup3-3.2.0.patchset
Normal file
@@ -0,0 +1,39 @@
|
||||
From 0236e20781e2fabae53934d9b8dfbf3ea737591f Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Wed, 25 Nov 2015 01:25:58 +0000
|
||||
Subject: libsoup, fix build
|
||||
|
||||
|
||||
diff --git a/libsoup/auth/soup-auth-digest.c b/libsoup/auth/soup-auth-digest.c
|
||||
index 2e81849..c0bcb89 100644
|
||||
--- a/libsoup/auth/soup-auth-digest.c
|
||||
+++ b/libsoup/auth/soup-auth-digest.c
|
||||
@@ -9,6 +9,10 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include <string.h>
|
||||
|
||||
#include "auth/soup-auth-digest-private.h"
|
||||
diff --git a/libsoup/auth/soup-auth-ntlm.c b/libsoup/auth/soup-auth-ntlm.c
|
||||
index 7108a32..da8e69b 100644
|
||||
--- a/libsoup/auth/soup-auth-ntlm.c
|
||||
+++ b/libsoup/auth/soup-auth-ntlm.c
|
||||
@@ -16,6 +16,10 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
#include "soup-auth-ntlm.h"
|
||||
#include "soup.h"
|
||||
#include "soup-message-private.h"
|
||||
--
|
||||
2.36.1
|
||||
|
||||
Reference in New Issue
Block a user