Skip to content
Permalink
Browse files

uriparser: Update to 0.9.3

  • Loading branch information
ryandesign committed Apr 28, 2019
1 parent 5f1d0e2 commit e3ea2638e0176128ed9e9e341a3ea8212069e48f
Showing with 24 additions and 21 deletions.
  1. +10 −21 devel/uriparser/Portfile
  2. +14 −0 devel/uriparser/files/testrunner.patch
@@ -1,13 +1,14 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0

github.setup uriparser uriparser 0.9.1 uriparser-
github.setup uriparser uriparser 0.9.3 uriparser-
revision 0
checksums rmd160 894281bcd38afd582e8f277f08346f9dc3d24ec6 \
sha256 75248f3de3b7b13c8c9735ff7b86ebe72cbb8ad043291517d7d53488e0893abe \
size 372722
checksums rmd160 8fce419da21d3e5081d6eaa35eb3a3a84c8f6287 \
sha256 28af4adb05e811192ab5f04566bebc5ebf1c30d9ec19138f944963d52419e28f \
size 173073

categories devel www
platforms darwin
@@ -23,24 +24,12 @@ homepage https://uriparser.github.io
github.tarball_from releases
use_bzip2 yes

configure.cppflags
# Only used by tests but detected at configure time.
depends_build-append port:gtest

configure.args --disable-doc \
--disable-test
patchfiles testrunner.patch

configure.args -DURIPARSER_BUILD_DOCS=OFF

test.run yes
test.target check

# Needed by libkml's build system.
destroot.delete_la_files no

pre-activate {
# libkml @1.2.0_1 and earlier installed a copy of liburiparser.dylib.
if {![catch {set installed [lindex [registry_active libkml] 0]}]} {
set _version [lindex $installed 1]
set _revision [lindex $installed 2]
if {[vercmp $_version 1.2.0] < 0 || ([vercmp $_version 1.2.0] == 0 && $_revision <= 1)} {
registry_deactivate_composite libkml "" [list ports_nodepcheck 1]
}
}
}
@@ -0,0 +1,14 @@
Fix crash in testrunner
https://github.com/uriparser/uriparser/issues/67
https://github.com/uriparser/uriparser/commit/f870e6c68696a6018702caa5c8a2feba9b0f99fa
--- test/MemoryManagerSuite.cpp.orig
+++ test/MemoryManagerSuite.cpp
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

+#undef NDEBUG // because we rely on assert(3) further down
+
#include <cassert>
#include <cerrno>
#include <cstring> // memcpy

0 comments on commit e3ea263

Please sign in to comment.
You can’t perform that action at this time.