Revision
75874
Author
ryandesign@macports.org
Date
2011-02-11 10:24:31 -0800 (Fri, 11 Feb 2011)

Log Message

tre: remove -arch flags from tre.pc file, also install doc files, indicate license; see #22778 (maintainer timeout)

Modified Paths

Diff

Modified: trunk/dports/devel/tre/Portfile (75873 => 75874)


--- trunk/dports/devel/tre/Portfile	2011-02-11 17:20:50 UTC (rev 75873)
+++ trunk/dports/devel/tre/Portfile	2011-02-11 18:24:31 UTC (rev 75874)
@@ -3,9 +3,11 @@
 PortSystem          1.0
 name                tre
 version             0.8.0
+revision            1
 categories          devel
 platforms           darwin
 maintainers         erickt
+license             BSD
 description         TRE is a lightweight POSIX compliant regular expression library
 long_description    TRE is a lightweight POSIX compliant regular expression library
 homepage            http://laurikari.net/tre/
@@ -18,3 +20,21 @@
                     port:libiconv
 test.run            yes
 test.target         check
+
+post-build {
+    reinplace -E {s|-arch [a-z0-9_]+||g} ${worksrcpath}/tre.pc
+}
+
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        ChangeLog \
+        LICENSE \
+        NEWS \
+        README \
+        THANKS \
+        TODO \
+        ${docdir}
+}