description GNU regex library
homepage https://www.gnu.org/directory/regex.html
distname ${my_name}-${version}
master_sites https://ftp.gnu.org/old-gnu/${my_name}/ \
ftp://ftp.gnu.org/old-gnu/${my_name}/
checksums md5 6c25ca10e71adeede101e7646e796ebd
set command "libtool -lSystem -dynamic -install_name ${prefix}/lib/libgnuregex.dylib -o libgnuregex.dylib regex.o"
system "cd ${worksrcpath} && ${command}"
xinstall -m 0644 ${worksrcpath}/regex.h ${destroot}${prefix}/include/gnuregex.h
xinstall ${worksrcpath}/libgnuregex.dylib ${destroot}${prefix}/lib
# Newer versions of GNU regex are available in the GNU libc tarball
# in the files posix/regex.c and posix/regex.h.