[134759] trunk/dports/graphics/lib2geom

devans at macports.org devans at macports.org
Mon Apr 6 21:28:33 PDT 2015


Revision: 134759
          https://trac.macports.org/changeset/134759
Author:   devans at macports.org
Date:     2015-04-06 21:28:32 -0700 (Mon, 06 Apr 2015)
Log Message:
-----------
lib2geom: add +doc variant to generate and install HTML API documentation.

Modified Paths:
--------------
    trunk/dports/graphics/lib2geom/Portfile

Added Paths:
-----------
    trunk/dports/graphics/lib2geom/files/patch-Doxyfile.diff

Modified: trunk/dports/graphics/lib2geom/Portfile
===================================================================
--- trunk/dports/graphics/lib2geom/Portfile	2015-04-07 03:16:20 UTC (rev 134758)
+++ trunk/dports/graphics/lib2geom/Portfile	2015-04-07 04:28:32 UTC (rev 134759)
@@ -33,6 +33,7 @@
                 port:gsl
 
 patchfiles      patch-src-2geom-CMakeLists.txt.diff \
+                patch-Doxyfile.diff \
                 patch-pow-ambiguous.diff
 
 configure.args-append \
@@ -43,4 +44,20 @@
 test.cmd        ctest
 test.target
 
+variant doc description {Generate and install HTML API documentation} {
+    depends_build-append \
+                port:graphviz \
+                port:doxygen
+
+    post-build {
+        system "cd ${workpath}/${name}-${version} && ${prefix}/bin/doxygen"
+    }
+
+    post-destroot {
+        xinstall -d ${destroot}${prefix}/share/doc/${name}/html
+        eval xinstall -m 644 [glob ${workpath}/${name}-${version}/doc/html/*] \
+            ${destroot}${prefix}/share/doc/${name}/html
+    }
+}
+
 livecheck.type  none

Added: trunk/dports/graphics/lib2geom/files/patch-Doxyfile.diff
===================================================================
--- trunk/dports/graphics/lib2geom/files/patch-Doxyfile.diff	                        (rev 0)
+++ trunk/dports/graphics/lib2geom/files/patch-Doxyfile.diff	2015-04-07 04:28:32 UTC (rev 134759)
@@ -0,0 +1,11 @@
+--- Doxyfile.orig	2015-04-06 18:57:38.000000000 -0700
++++ Doxyfile	2015-04-06 18:58:06.000000000 -0700
+@@ -1576,7 +1576,7 @@
+ # If the GENERATE_LATEX tag is set to YES doxygen will generate LaTeX output.
+ # The default value is: YES.
+ 
+-GENERATE_LATEX         = YES
++GENERATE_LATEX         = NO
+ 
+ # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
+ # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150406/85c3822d/attachment.html>


More information about the macports-changes mailing list