From 71333c30fa498f310e7b977bceaf2d1377957560 Mon Sep 17 00:00:00 2001 From: Christopher Nielsen Date: Tue, 17 May 2022 08:14:21 -0400 Subject: [PATCH] libsoup-devel: new port for testing * See: https://github.com/macports/macports-ports/pull/14601 --- gnome/libsoup-devel/Portfile | 91 ++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 gnome/libsoup-devel/Portfile diff --git a/gnome/libsoup-devel/Portfile b/gnome/libsoup-devel/Portfile new file mode 100644 index 0000000000000..09b50c5dbb0de --- /dev/null +++ b/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+)*)