Revision
70369
Author
ryandesign@macports.org
Date
2010-08-07 03:41:28 -0700 (Sat, 07 Aug 2010)

Log Message

mldonkey: use lablgtk2 to avoid current problems with gtk1 (see #24915)

Modified Paths

Diff

Modified: trunk/dports/net/mldonkey/Portfile (70368 => 70369)


--- trunk/dports/net/mldonkey/Portfile	2010-08-07 09:43:33 UTC (rev 70368)
+++ trunk/dports/net/mldonkey/Portfile	2010-08-07 10:41:28 UTC (rev 70369)
@@ -4,7 +4,7 @@
 
 name			mldonkey
 version			3.0.3
-revision		1
+revision		2
 categories		net
 maintainers		nomaintainer
 description		OCaml/GTK client for the eDonkey p2p network
@@ -27,9 +27,22 @@
 # ocaml is not universal
 universal_variant no
 
+pre-configure {
+	if {![file exists ${prefix}/lib/ocaml/lablgtk2/lablrsvg.a]} {
+		ui_error "${name} needs lablgtk2 to be installed with librsvg support."
+		ui_error "Please rebuild lablgtk2 using the command:"
+		ui_error ""
+		ui_error "    sudo port upgrade --enforce-variants lablgtk2 +rsvg"
+		ui_error ""
+		return -code error "incompatible lablgtk2 installation"
+	}
+}
+
+configure.args	--enable-gui=newgui2
+
 use_bzip2		yes
 depends_lib		port:ocaml \
-				port:lablgtk \
+				port:lablgtk2 \
 				port:expat \
 				port:bzip2 \
 				port:file \