[25605] trunk/dports/textproc/expat/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 25 16:33:27 PDT 2007
Revision: 25605
http://trac.macosforge.org/projects/macports/changeset/25605
Author: nox at macports.org
Date: 2007-05-25 16:33:27 -0700 (Fri, 25 May 2007)
Log Message:
-----------
Added standard documentation installation.
Added examples variant.
Changed some statements to use built-in and shorthand commands.
Modified Paths:
--------------
trunk/dports/textproc/expat/Portfile
Modified: trunk/dports/textproc/expat/Portfile
===================================================================
--- trunk/dports/textproc/expat/Portfile 2007-05-25 23:24:28 UTC (rev 25604)
+++ trunk/dports/textproc/expat/Portfile 2007-05-25 23:33:27 UTC (rev 25605)
@@ -3,7 +3,7 @@
PortSystem 1.0
name expat
version 2.0.0
-revision 1
+revision 2
categories textproc devel
maintainers ryandesign at macports.org openmaintainer at macports.org
description XML 1.0 parser written in C
@@ -17,12 +17,13 @@
checksums md5 d945df7f1c0868c5c73cf66ba9596f3f \
sha1 9ff011a75a1f5b60145c4afdec520442cb398d93 \
rmd160 f52ccab26950d0148c3e8b644d7c9021734de318
-configure.args --mandir=\\\${prefix}/share/man
-destroot.destdir prefix=${destroot}${prefix}
+configure.args --mandir=${prefix}/share/man
+set docdir ${prefix}/share/doc/${name}-${version}
+
pre-test {
cd ${worksrcpath}/lib
- file copy -force expat.h expat_external.h ../tests
+ copy -force expat.h expat_external.h ../tests
}
# extract from tests/README.txt: "Expat must be built and installed
# before "make check" can be executed."
@@ -30,18 +31,24 @@
test.target check
post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
- ${destroot}${prefix}/share/examples/${name}
- xinstall -m 644 -W ${worksrcpath} COPYING Changes README \
- ${destroot}${prefix}/share/doc/${name}
- eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath}/examples elements.c outline.c \
- ${destroot}${prefix}/share/examples/${name}
+ xinstall -m 0755 -d ${destroot}${docdir}/html
+ xinstall -m 0644 -W ${worksrcpath} COPYING Changes README ${destroot}${docdir}
+ eval xinstall -m 0644 [glob ${worksrcpath}/doc/*] ${destroot}${docdir}/html
+
cd ${destroot}${prefix}/lib
- system "ln -s libexpat.1.dylib libexpat.0.dylib"
+ ln -s libexpat.1.dylib libexpat.0.dylib
}
variant no_static {
configure.args-append --disable-static
}
+
+variant examples {
+ set examplesdir ${docdir}/examples
+
+ post-destroot {
+ xinstall -m 0755 -d ${destroot}${examplesdir}
+ xinstall -m 0644 -W ${worksrcpath}/examples elements.c outline.c \
+ ${destroot}${examplesdir}
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070525/37e30dab/attachment.html
More information about the macports-changes
mailing list