Skip to content

Commit

Permalink
ferite: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 18, 2024
1 parent b285803 commit 70b9474
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lang/ferite/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ PortSystem 1.0

name ferite
version 1.1.17
revision 1
revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories lang
license BSD
platforms darwin
maintainers nomaintainer

description embeddable scripting language
Expand All @@ -21,7 +20,14 @@ homepage http://ferite.org/
master_sites sourceforge:project/ferite/ferite/${branch}

checksums rmd160 c6c1236bdf04be8a47cd7ff996c6b003e8e65f23 \
sha256 d407f3db45482e17f41820fb029cf8b06e6104699b8d7340f3946f57d3f4e690
sha256 d407f3db45482e17f41820fb029cf8b06e6104699b8d7340f3946f57d3f4e690 \
size 2174774

# https://github.com/Homebrew/legacy-homebrew/issues/15105
patchfiles-append patch-pcre_info.diff

depends_lib port:pcre \
port:libxml2

# ld: library not found for -lferitestream
use_parallel_build no
11 changes: 11 additions & 0 deletions lang/ferite/files/patch-pcre_info.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- modules/regexp/regexp_Regexp.c 2009-07-17 14:59:19.000000000 +0800
+++ modules/regexp/regexp_Regexp.c 2024-08-31 15:10:36.000000000 +0800
@@ -88,7 +88,7 @@
}

/* get the number of subparts */
- captured_str_cnt = pcre_info( rgx->compiled_re, NULL, NULL ) + 1;
+ captured_str_cnt = pcre_fullinfo( rgx->compiled_re, NULL, 0, NULL ) + 1;
/* create an offset array */
size_offsets = (int)(captured_str_cnt * 3);
offsets = (int *)fmalloc(size_offsets * sizeof(int));

0 comments on commit 70b9474

Please sign in to comment.