Revision
79835
Author
and.damore@macports.org
Date
2011-06-27 15:22:18 -0700 (Mon, 27 Jun 2011)

Log Message

port iverilog, added docs to destroot

Modified Paths

Diff

Modified: trunk/dports/science/iverilog/Portfile (79834 => 79835)


--- trunk/dports/science/iverilog/Portfile	2011-06-27 22:22:14 UTC (rev 79834)
+++ trunk/dports/science/iverilog/Portfile	2011-06-27 22:22:18 UTC (rev 79835)
@@ -37,6 +37,24 @@
     depends_build-append    port:bison
 }
 
+
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -W ${worksrcpath} \
+        BUGS.txt developer-quick-start.txt lpm.txt t-dll.txt \
+        QUICK_START.txt extensions.txt macosx.txt va_math.txt \
+        README.txt glossary.txt mingw.txt vpi.txt \
+        attributes.txt ieee1364-notes.txt netlist.txt \
+        xilinx-hint.txt ivl_target.txt swift.txt \
+        ${docdir}
+
+    set exampledir ${destroot}${prefix}/share/example
+    xinstall -d ${exampledir}
+    file copy ${worksrcpath}/examples ${exampledir}
+    file rename ${exampledir}/examples ${exampledir}/${name}
+}
+
 # g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
 universal_variant no