Ticket #22778: tre2.diff

File tre2.diff, 1.0 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

revised patch that also installs documentation files and indicates the license

  • Portfile

     
    33PortSystem          1.0
    44name                tre
    55version             0.8.0
     6revision            1
    67categories          devel
    78platforms           darwin
    89maintainers         erickt
     10license             BSD
    911description         TRE is a lightweight POSIX compliant regular expression library
    1012long_description    TRE is a lightweight POSIX compliant regular expression library
    1113homepage            http://laurikari.net/tre/
     
    1820                    port:libiconv
    1921test.run            yes
    2022test.target         check
     23
     24post-build {
     25    reinplace -E {s|-arch [a-z0-9_]+||g} ${worksrcpath}/tre.pc
     26}
     27
     28post-destroot {
     29    set docdir ${destroot}${prefix}/share/doc/${name}
     30    xinstall -d ${docdir}
     31    xinstall -m 644 -W ${worksrcpath} \
     32        AUTHORS \
     33        ChangeLog \
     34        LICENSE \
     35        NEWS \
     36        README \
     37        THANKS \
     38        TODO \
     39        ${docdir}
     40}