[47907] trunk/dports/python/py25-shogun

snc at macports.org snc at macports.org
Mon Mar 9 14:04:32 PDT 2009


Revision: 47907
          http://trac.macports.org/changeset/47907
Author:   snc at macports.org
Date:     2009-03-09 14:04:32 -0700 (Mon, 09 Mar 2009)
Log Message:
-----------
removed hard-coded paths, ticket #18549. maintainer timeout.

Modified Paths:
--------------
    trunk/dports/python/py25-shogun/Portfile
    trunk/dports/python/py25-shogun/files/patch-src-configure.diff

Modified: trunk/dports/python/py25-shogun/Portfile
===================================================================
--- trunk/dports/python/py25-shogun/Portfile	2009-03-09 20:55:38 UTC (rev 47906)
+++ trunk/dports/python/py25-shogun/Portfile	2009-03-09 21:04:32 UTC (rev 47907)
@@ -68,6 +68,10 @@
   depends_lib-append port:lp_solve
 }
 
+post-destroot {
+    reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/src/configure
+}
+
 post-clean {
-  ui_msg "Make sure that /opt/local/lib is in your DYLD_LIBRARY_PATH or the sg module will not load properly!"
+  ui_msg "Make sure that ${prefix}/lib is in your DYLD_LIBRARY_PATH or the sg module will not load properly!"
 }

Modified: trunk/dports/python/py25-shogun/files/patch-src-configure.diff
===================================================================
--- trunk/dports/python/py25-shogun/files/patch-src-configure.diff	2009-03-09 20:55:38 UTC (rev 47906)
+++ trunk/dports/python/py25-shogun/files/patch-src-configure.diff	2009-03-09 21:04:32 UTC (rev 47907)
@@ -6,7 +6,7 @@
  
  # some hopefully reasonable defaults
 -MAKEDEPEND="gcc -MM"
-+MAKEDEPEND="/opt/local/bin/gcc-mp-4.3 -MM"
++MAKEDEPEND="@PREFIX@/bin/gcc-mp-4.3 -MM"
  MAKEDEPENDOPTS=""
  SRCDIR="`dirname $0`"
  EXT_SRC_HEADER=h
@@ -15,7 +15,7 @@
  _pathdebug=no
  _profile=no
 -_prefix="/usr/local"
-+_prefix="/opt/local"
++_prefix="@PREFIX@"
  _destdir="/"
  _bindir=""
  _datadir=""
@@ -55,7 +55,7 @@
  EOF
  		echocheck "lpsolve Developer Files"
 -		LPSOLVELINKFLAGS="-L /usr/lib/lp_solve -llpsolve55"
-+		LPSOLVELINKFLAGS="-L/opt/local/lib/ -llpsolve55"
++		LPSOLVELINKFLAGS="-L at PREFIX@/lib/ -llpsolve55"
  		if cc_check $LPSOLVELINKFLAGS
  		then 
  			echores "yes"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090309/59622ca8/attachment.html>


More information about the macports-changes mailing list