ports/lang/J/files/patch-jlibrary_system_main_regex.ijs
Steve Wills 7cf0b81f43 lang/J: Update to j807-release
PR:		236454
Submitted by:	João Neves <sevenjp@gmail.com> (maintainer)
2019-04-28 12:10:00 +00:00

19 lines
710 B
J

--- jlibrary/system/main/regex.ijs.orig 2019-01-06 11:11:14 UTC
+++ jlibrary/system/main/regex.ijs
@@ -179,6 +179,7 @@ select. UNAME
case. 'Win' do. t=. 'jpcre2.dll'
case. 'Darwin' do. t=. 'libjpcre2.dylib'
case. 'Linux' do. t=. 'libjpcre2.so'
+case. 'FreeBSD' do. t=. 'libjpcre2.so'
case. 'Android' do. t=. 'libjpcre2.so'
end.
@@ -191,6 +192,8 @@ NB. fall back one more time
if. ('Android'-:UNAME) *. 0 = 1!:4 :: 0: <f do.
f=. (({.~i:&'/')LIBFILE),'/',t
elseif. ('Linux'-:UNAME) *. (IFUNIX>'/'e.LIBFILE) *. 0 = 1!:4 :: 0: <f do.
+ f=. 'libpcre2-8.so.0'
+elseif. ('FreeBSD'-:UNAME) *. (IFUNIX>'/'e.LIBFILE) *. 0 = 1!:4 :: 0: <f do.
f=. 'libpcre2-8.so.0'
elseif. 0 = 1!:4 :: 0: <f do.
f=. t