Ticket #68985: colorer.diff

File colorer.diff, 3.8 KB (added by ryandesign (Ryan Carsten Schmidt), 10 months ago)
  • textproc/colorer/Portfile

    diff --git a/textproc/colorer/Portfile b/textproc/colorer/Portfile
    index 5daa9063fa0..2a46b95d4e5 100644
    a b  
    11# -*- 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
    22
    33PortSystem      1.0
     4PortGroup       cmake 1.1
     5PortGroup       github 1.0
     6
     7github.setup    colorer colorer-library 1.3.1 v
     8revision        0
     9checksums       rmd160  6d2d420ece212244251ab79d84615f3e3bd463bb \
     10                sha256  82dcd0bc6bbbed0ddbb055b9053f885e405ef2c0676c7487d65b047f78b0dd1e \
     11                size    238247
    412
    513name            colorer
    6 version         take5.be5
    7 revision        2
    8 license         MPL-1.1 GPL-2 LGPL-2.1
     14license         MIT
    915categories      textproc devel
    10 platforms       darwin
    11 maintainers     ryandesign openmaintainer
     16maintainers     {ryandesign @ryandesign} openmaintainer
     17
    1218description     A library that provides source text syntax highlighting services
    1319
    1420long_description \
    15     Colorer take5 is a syntax highlighting and text parsing library, that \
     21    Colorer is a syntax highlighting and text parsing library, that \
    1622    provides services of text parsing in host editor systems in real-time and \
    1723    transforming results into colored text. Result information allows to \
    1824    search and build outlined lists of functions, structures, and to search \
    1925    and indent programming language constructions (brackets, paired tags).
    2026
    21 homepage        http://colorer.sourceforge.net/
    22 master_sites    sourceforge:project/colorer/Library%20sources/Colorer-${version}
    23 distname        Colorer-${version}
    24 use_zip         yes
    25 
    26 checksums       md5     075ede3afc260766fe13c71850a5e6c0 \
    27                 sha1    53cd454779621c09954ce70b6d06a4e1903ed6af \
    28                 rmd160  87c9ad2b99343c19e74211e658eb73ebcf0bcea9
    29 
    30 post-extract {
    31     copy \
    32         ${worksrcpath}/src/libcolorer/linux/Makefile.in \
    33         ${worksrcpath}
    34 }
    35 
    36 variant universal {}
    37 
    38 patchfiles      patch-Makefile.in.diff \
    39                 patch-src-colorer-makefile.gcc.diff \
    40                 patch-src-libcolorer-makefile.gcc.diff \
    41                 patch-src-shared-common-Logging.cpp.diff
    42 
    43 post-patch {
    44     # error: cast from 'int*' to 'int' loses precision
    45     reinplace s/int(/bool(/ ${worksrcpath}/src/shared/unicode/BitArray.cpp
    46 
    47     # Do not force installation as root
    48     reinplace {s/-g 0 -o 0//} ${worksrcpath}/Makefile.in
    49 }
     27github.tarball_from archive
    5028
    51 configure.cmd   sh src/libcolorer/linux/configure
    52 configure.args  --srcdir=.
     29depends_lib-append \
     30                port:libfmt10 \
     31                path:lib/pkgconfig/icu-uc.pc:icu \
     32                port:minizip \
     33                port:spdlog \
     34                port:xercesc3 \
     35                port:zlib
    5336
    54 set extra_cflags "[get_canonical_archflags cc]"
    55 if {[string match *clang* ${configure.compiler}]} {
    56     append extra_cflags " -Wno-error=address-of-temporary"
    57 }
    5837
    59 build.target colorer
    60 # Yes, this build system uses "CPP" for the C compiler and "LINK" for the C++ compiler.
    61 build.args          ARCHFLAGS="[get_canonical_archflags]" \
    62                     CPP=${configure.cc} \
    63                     CPPFLAGS_CUSTOM="${extra_cflags}" \
    64                     FLAGS= \
    65                     LIBINC="[regsub {^lib} ${configure.cxx_stdlib} {-l}]" \
    66                     LINK=${configure.cxx} \
    67                     prefix=${prefix}
    68 use_parallel_build yes
     38compiler.cxx_standard \
     39                2017
    6940
    70 destroot.destdir    prefix=${destroot}${prefix}
    71 destroot.args       -B
     41# https://trac.macports.org/ticket/68248
     42cmake.module_path-append \
     43                ${prefix}/lib/libfmt10/cmake/fmt
    7244
    73 livecheck.type  regex
    74 livecheck.url   ${homepage}whatsnew/history.html
    75 livecheck.regex {<h2>([^,]*), Latest}
     45configure.args  -DCOLORER_USE_VCPKG=OFF