[70369] trunk/dports/net/mldonkey/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Aug 7 03:41:31 PDT 2010


Revision: 70369
          http://trac.macports.org/changeset/70369
Author:   ryandesign at 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:
--------------
    trunk/dports/net/mldonkey/Portfile

Modified: trunk/dports/net/mldonkey/Portfile
===================================================================
--- 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 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100807/9425991e/attachment.html>


More information about the macports-changes mailing list