diff --git a/textproc/colorer/Portfile b/textproc/colorer/Portfile
index 5daa9063fa0..2a46b95d4e5 100644
a
|
b
|
|
1 | 1 | # -*- 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 |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
| 4 | PortGroup cmake 1.1 |
| 5 | PortGroup github 1.0 |
| 6 | |
| 7 | github.setup colorer colorer-library 1.3.1 v |
| 8 | revision 0 |
| 9 | checksums rmd160 6d2d420ece212244251ab79d84615f3e3bd463bb \ |
| 10 | sha256 82dcd0bc6bbbed0ddbb055b9053f885e405ef2c0676c7487d65b047f78b0dd1e \ |
| 11 | size 238247 |
4 | 12 | |
5 | 13 | name colorer |
6 | | version take5.be5 |
7 | | revision 2 |
8 | | license MPL-1.1 GPL-2 LGPL-2.1 |
| 14 | license MIT |
9 | 15 | categories textproc devel |
10 | | platforms darwin |
11 | | maintainers ryandesign openmaintainer |
| 16 | maintainers {ryandesign @ryandesign} openmaintainer |
| 17 | |
12 | 18 | description A library that provides source text syntax highlighting services |
13 | 19 | |
14 | 20 | long_description \ |
15 | | Colorer take5 is a syntax highlighting and text parsing library, that \ |
| 21 | Colorer is a syntax highlighting and text parsing library, that \ |
16 | 22 | provides services of text parsing in host editor systems in real-time and \ |
17 | 23 | transforming results into colored text. Result information allows to \ |
18 | 24 | search and build outlined lists of functions, structures, and to search \ |
19 | 25 | and indent programming language constructions (brackets, paired tags). |
20 | 26 | |
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 | | } |
| 27 | github.tarball_from archive |
50 | 28 | |
51 | | configure.cmd sh src/libcolorer/linux/configure |
52 | | configure.args --srcdir=. |
| 29 | depends_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 |
53 | 36 | |
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 | | } |
58 | 37 | |
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 |
| 38 | compiler.cxx_standard \ |
| 39 | 2017 |
69 | 40 | |
70 | | destroot.destdir prefix=${destroot}${prefix} |
71 | | destroot.args -B |
| 41 | # https://trac.macports.org/ticket/68248 |
| 42 | cmake.module_path-append \ |
| 43 | ${prefix}/lib/libfmt10/cmake/fmt |
72 | 44 | |
73 | | livecheck.type regex |
74 | | livecheck.url ${homepage}whatsnew/history.html |
75 | | livecheck.regex {<h2>([^,]*), Latest} |
| 45 | configure.args -DCOLORER_USE_VCPKG=OFF |