source: trunk/dports/sysutils/gnuregex/Portfile

Last change on this file was 84998, checked in by jmr@…, 6 years ago

gnuregex: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 84998 2011-10-07 00:54:32Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            gnuregex
6set my_name     regex
7version         0.12
8revision        2
9categories      sysutils
10license         GPL-2+
11maintainers     nomaintainer
12platforms       darwin
13description     GNU regex library
14
15long_description \
16    ${description}
17
18homepage        http://www.gnu.org/directory/regex.html
19distname        ${my_name}-${version}
20
21master_sites    http://ftp.gnu.org/old-gnu/${my_name}/ \
22                ftp://ftp.gnu.org/old-gnu/${my_name}/
23
24checksums       md5 6c25ca10e71adeede101e7646e796ebd
25
26build.args      subdirs=test
27
28post-build {
29    set command "libtool -lSystem -dynamic -install_name ${prefix}/lib/libgnuregex.dylib -o libgnuregex.dylib regex.o"
30    ui_debug "$command"
31    system "cd ${worksrcpath} && ${command}"
32}
33
34test.run        yes
35test.args       ${build.args}
36test.target     check
37
38destroot {
39    xinstall -m 0644 ${worksrcpath}/regex.h ${destroot}${prefix}/include/gnuregex.h
40    xinstall ${worksrcpath}/libgnuregex.dylib ${destroot}${prefix}/lib
41}
42
43# Newer versions of GNU regex are available in the GNU libc tarball
44# in the files posix/regex.c and posix/regex.h.
45livecheck.type  none
Note: See TracBrowser for help on using the repository browser.