[36865] trunk/dports/databases/oracle-instantclient/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri May 16 19:49:21 PDT 2008
Revision: 36865
http://trac.macosforge.org/projects/macports/changeset/36865
Author: ryandesign at macports.org
Date: 2008-05-16 19:49:21 -0700 (Fri, 16 May 2008)
Log Message:
-----------
oracle-instantclient: Leopard is required, at least for the Intel version; #15296
Modified Paths:
--------------
trunk/dports/databases/oracle-instantclient/Portfile
Modified: trunk/dports/databases/oracle-instantclient/Portfile
===================================================================
--- trunk/dports/databases/oracle-instantclient/Portfile 2008-05-17 02:44:39 UTC (rev 36864)
+++ trunk/dports/databases/oracle-instantclient/Portfile 2008-05-17 02:49:21 UTC (rev 36865)
@@ -40,7 +40,14 @@
}
platform i386 {
+ pre-fetch {
+ if {${os.major} < 9} {
+ return -code error "${name} on Intel requires Mac OS X 10.5 or greater."
+ }
+ }
+
version 10.2.0.4.0
+ revision 1
worksrcdir instantclient_[join [lrange [split ${version} .] 0 1] _]
set weird_prefix /scratch/plebld/208
@@ -74,18 +81,16 @@
# Annoyingly, I can't do that for the Intel version right now because
# install_name_tool says "malformed object (unknown load command 8)" (or 7).
- if {![variant_isset i386]} {
- # For each dylib in the distribution, change the directory of its own
- # "soname" to our ${lib_dir}.
- foreach lib [glob -directory ${worksrcpath} *.dylib*] {
- system "install_name_tool -id ${lib_dir}/[strsed ${lib} /^.*\\///] ${lib}"
-
- # Then for each dependent dylib with a weird path that this dylib
- # references, fix the reference to use our ${lib_dir}.
- foreach dep [exec otool -L ${lib}] {
- if [string match "${weird_prefix}/*" ${dep}] {
- system "install_name_tool -change ${dep} ${lib_dir}/[strsed ${dep} /^.*\\///] ${lib}"
- }
+ # For each dylib in the distribution, change the directory of its own
+ # "soname" to our ${lib_dir}.
+ foreach lib [glob -directory ${worksrcpath} *.dylib*] {
+ system "install_name_tool -id ${lib_dir}/[strsed ${lib} /^.*\\///] ${lib}"
+
+ # Then for each dependent dylib with a weird path that this dylib
+ # references, fix the reference to use our ${lib_dir}.
+ foreach dep [exec otool -L ${lib}] {
+ if [string match "${weird_prefix}/*" ${dep}] {
+ system "install_name_tool -change ${dep} ${lib_dir}/[strsed ${dep} /^.*\\///] ${lib}"
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080516/f76fc8ad/attachment.htm
More information about the macports-changes
mailing list