Skip to content

Commit

Permalink
libsoup-devel: new port for testing
Browse files Browse the repository at this point in the history
* See: #14601
  • Loading branch information
mascguy committed May 17, 2022
1 parent 7bd0837 commit 71333c3
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions gnome/libsoup-devel/Portfile
@@ -0,0 +1,91 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup meson 1.0

name libsoup-devel
conflicts libsoup
set my_name libsoup
version 2.74.2
revision 0

categories gnome net
platforms darwin
license LGPL-2+
maintainers {mascguy @mascguy} {devans @dbevans} openmaintainer

description Soup is an HTTP library implementation in C.
long_description Soup provides a queued asynchronous callback-based \
mechanism for sending and servicing SOAP requests \
and a WSDL (Web Service Definition Language) for C \
compilers which generates client stubs and server \
skeletons for easily calling and implementing SOAP \
methods.
homepage https://wiki.gnome.org/Projects/libsoup

set branch [join [lrange [split ${version} .] 0 1] .]
master_sites gnome:sources/${my_name}/${branch}/
use_xz yes
distname ${my_name}-${version}
dist_subdir ${my_name}

checksums rmd160 b9d6df15524618f8376ed9735902952b49b0ddc6 \
sha256 f0a427656e5fe19e1df71c107e88dfa1b2e673c25c547b7823b6018b40d01159 \
size 1497356

depends_build-append \
port:pkgconfig \
port:gtk-doc \
port:curl \
path:bin/vala:vala

depends_lib port:brotli \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:glib-networking \
path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
port:kerberos5 \
port:libpsl \
port:libxml2 \
port:sqlite3 \
port:zlib

configure.args -Dbrotli=enabled \
-Dgnome=false \
-Dgssapi=enabled \
-Dgtk_doc=true \
-Dintrospection=enabled \
-Dntlm=disabled \
-Dsysprof=disabled \
-Dvapi=enabled \
-Dtests=false

if {![info exists universal_possible]} {
set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
}
# uses g-ir-scanner, which uses $CC from env
if {${universal_possible} && [variant_isset universal]} {
foreach arch ${configure.universal_archs} {
lappend merger_build_env(${arch}) "CC=${configure.cc} -arch ${arch}"
lappend merger_destroot_env(${arch}) "CC=${configure.cc} -arch ${arch}"
}
} else {
build.env-append "CC=${configure.cc} ${configure.cc_archflags}"
destroot.env-append "CC=${configure.cc} ${configure.cc_archflags}"
}

platform darwin 8 {
# meson on Tiger cannot use rpaths, so we workaround with this to find dylib
destroot.env-append "DYLD_LIBRARY_PATH=${build_dir}/${my_name}"
}

variant gnome description {Enable GNOME support} {
configure.args-replace -Dgnome=false -Dgnome=true
}

default_variants +gnome

livecheck.type gnome
livecheck.name ${my_name}
# restrict livecheck to 2.* release branch
# new 3.* branch breaks API/ABI
livecheck.regex LATEST-IS-(2\\.\\d*\[02468\](?:\\.\\d+)*)

0 comments on commit 71333c3

Please sign in to comment.