Files
2026-03-22 20:02:37 +04:00

44 lines
1.5 KiB
Tcl

# -*- 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 github 1.0
PortGroup boost 1.0
github.setup strozfriedberg lightgrep 1.5.0
github.tarball_from releases
name liblightgrep
revision 2
categories devel
maintainers nomaintainer
license GPL-3+
description Search for regular expressions as defined in Unicode \
Technical Standard 18
long_description {*}${description}, https://www.unicode.org/reports/tr18/
checksums rmd160 d3087790c73394eb9ec1064decfbbf684aaa6d9a \
sha256 fe7aa3ed64472b6f57b5048b5584d3df2794507747e5d76213f60c256f8c82fa \
size 772212
depends_build port:bison \
port:libtool \
port:pkgconfig
depends_lib path:lib/pkgconfig/icu-uc.pc:icu
patchfiles patch-ssize_t.diff
# Do not force a wrong library.
# ** We presume you're using a recent clang and libc++.
# checking whether C++ compiler accepts -stdlib=libc++... yes
# configure: CXXFLAGS: -pipe -I/opt/local/libexec/boost/1.76/include -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -stdlib=libc++
if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libc++"} {
patchfiles-append \
patch-unbreak-gcc-build.diff
}
compiler.cxx_standard 2017
configure.args-append --with-boost=[boost::install_area]