[25608] trunk/dports/devel/gtk2hs/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Fri May 25 18:19:29 PDT 2007


Revision: 25608
          http://trac.macosforge.org/projects/macports/changeset/25608
Author:   gwright at macports.org
Date:     2007-05-25 18:19:28 -0700 (Fri, 25 May 2007)

Log Message:
-----------
Add ${prefix}/lib to the library-dirs in gtk.package.conf.  This
lets the library work correctly with non-macports ghc installations.

Modified Paths:
--------------
    trunk/dports/devel/gtk2hs/Portfile

Modified: trunk/dports/devel/gtk2hs/Portfile
===================================================================
--- trunk/dports/devel/gtk2hs/Portfile	2007-05-26 01:05:55 UTC (rev 25607)
+++ trunk/dports/devel/gtk2hs/Portfile	2007-05-26 01:19:28 UTC (rev 25608)
@@ -4,7 +4,7 @@
 
 name	        gtk2hs	
 version		0.9.11
-revision	1
+revision	2
 categories	devel graphics 
 platforms	darwin
 maintainers	gwright at macports.org
@@ -41,6 +41,14 @@
 		--enable-opengl			\
 		--without-pkgreg
 
+# Fix gtk.package.conf to allow interoperating with non-macports
+# ghc. (Macports' ghc adds ${prefix}/lib to the linker path
+# automatically.)
+
+post-destroot	{ reinplace "s|library-dirs: |library-dirs: \"${prefix}/lib\",|" \
+			${destroot}${prefix}/lib/${name}/gtk.package.conf
+		}
+
 # Note that the order of package registration is important: certain
 # packages must be registered before the packages that depend on them.
 
@@ -49,3 +57,4 @@
 			system "ghc-pkg update ${destroot}${prefix}/lib/${name}/${pkg}.package.conf"
 		  }
 		}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070525/c9687f17/attachment.html


More information about the macports-changes mailing list