[71256] trunk/dports/x11/xorg-libX11/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Sep 6 23:15:08 PDT 2010


Revision: 71256
          http://trac.macports.org/changeset/71256
Author:   jeremyhu at macports.org
Date:     2010-09-06 23:15:07 -0700 (Mon, 06 Sep 2010)
Log Message:
-----------
xorg-libX11: Force on the xcb backend and create a docs variant

Modified Paths:
--------------
    trunk/dports/x11/xorg-libX11/Portfile

Modified: trunk/dports/x11/xorg-libX11/Portfile
===================================================================
--- trunk/dports/x11/xorg-libX11/Portfile	2010-09-07 06:04:35 UTC (rev 71255)
+++ trunk/dports/x11/xorg-libX11/Portfile	2010-09-07 06:15:07 UTC (rev 71256)
@@ -5,6 +5,7 @@
 
 name		xorg-libX11
 version		1.3.5
+revision	1
 categories	x11 devel
 maintainers	jeremyhu openmaintainer
 description	X.org libX11
@@ -39,17 +40,36 @@
 
 configure.env-append RAWCPP=${configure.cpp}
 
+configure.args \
+	--with-xcb \
+	--without-groff \
+	--without-ps2pdf \
+	--disable-specs
+
+build.args V=1
+
 # Depending on ghostscript for the PDF documentation creates a dependency
-# loop, so we just don't build the specs. #23413
-configure.args  --without-xcb --disable-specs
-variant x11_xcb description "use XCB for low-level protocol implementation" {
-	depends_lib-append port:xorg-libxcb
-	configure.args-delete --without-xcb
-	configure.args-append --with-xcb
+# loop, so you may want to install first without the docs variant
+variant docs description "Install extra documentation" {
+	depends_build-append \
+		port:groff \
+		port:ps2pdf
+
+	configure.args-delete \
+		--without-groff \
+		--without-ps2pdf \
+		--disable-specs
+
+	configure.args-append \
+		--with-groff \
+		--with-ps2pdf \
+		--enable-specs
+
+	configure.env-append \
+		GROFF="${prefix}/bin/groff" \
+		PS2PDF="${prefix}/bin/ps2pdf"
 }
 
-build.args V=1
-
 livecheck.type  regex
 livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
 livecheck.regex libX11-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100906/ac612b3a/attachment.html>


More information about the macports-changes mailing list