On Nov 21, 2008, at 12:42, [EMAIL PROTECTED] wrote:

Revision: 42458
          http://trac.macports.org/changeset/42458
Author:   [EMAIL PROTECTED]
Date:     2008-11-21 10:42:16 -0800 (Fri, 21 Nov 2008)
Log Message:
-----------
Build html documentation.

Modified Paths:
--------------
    trunk/dports/lang/sbcl/Portfile

Modified: trunk/dports/lang/sbcl/Portfile
===================================================================
--- trunk/dports/lang/sbcl/Portfile 2008-11-21 18:34:31 UTC (rev 42457) +++ trunk/dports/lang/sbcl/Portfile 2008-11-21 18:42:16 UTC (rev 42458)
@@ -78,8 +78,16 @@
system "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh ${host_lisp}"
 }

-default_variants       +test
+post-build {
+       if {[variant_isset html]} {
+ system "cd ${worksrcpath}/doc; INSTALL_ROOT=${destroot}${prefix} sh ${worksrcpath}/doc/make-doc.sh"
+       }
+}

+default_variants       +test +html
+
+variant html description {Builds the SBCL and ASDF documentation as HTML} {}

Why make this a variant? Unless it takes terribly long to build, I'd do it always.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to