[73683] trunk/dports/lang/oorexx
ryandesign at macports.org
ryandesign at macports.org
Sat Nov 20 23:00:16 PST 2010
Revision: 73683
http://trac.macports.org/changeset/73683
Author: ryandesign at macports.org
Date: 2010-11-20 23:00:12 -0800 (Sat, 20 Nov 2010)
Log Message:
-----------
oorexx: since the developers have closed the bug report without fixing the problem, and clearly cannot be bothered to understand that requiring the user to set DYLD_LIBRARY_PATH is not an acceptable circumstance, we will fix the problem for them
Modified Paths:
--------------
trunk/dports/lang/oorexx/Portfile
Added Paths:
-----------
trunk/dports/lang/oorexx/files/
trunk/dports/lang/oorexx/files/patch-common-platform-unix-SysLibrary.cpp.diff
Modified: trunk/dports/lang/oorexx/Portfile
===================================================================
--- trunk/dports/lang/oorexx/Portfile 2010-11-21 06:59:38 UTC (rev 73682)
+++ trunk/dports/lang/oorexx/Portfile 2010-11-21 07:00:12 UTC (rev 73683)
@@ -7,7 +7,7 @@
name oorexx
conflicts rexx
version 4.0.1
-revision 1
+revision 2
categories lang
platforms darwin
maintainers openmaintainer krischik
@@ -28,14 +28,8 @@
sha1 ce22a3caf3f69ae753cccc2904289ee65cd47934 \
rmd160 ffe481d70f76f8c895736f0893c90036556b60fa
-post-activate {
- ui_msg "#########################################################################################"
- ui_msg "# You need to set: #"
- ui_msg "# #"
- ui_msg "# export DYLD_LIBRARY_PATH=${prefix}/lib/ooRexx #"
- ui_msg "# #"
- ui_msg "# A bug report has been filed: #"
- ui_msg "# https://sourceforge.net/tracker/?func=detail&aid=2997646&group_id=119701&atid=684731 #"
- ui_msg "#########################################################################################"
-}
+patchfiles patch-common-platform-unix-SysLibrary.cpp.diff
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/common/platform/unix/SysLibrary.cpp
+}
Added: trunk/dports/lang/oorexx/files/patch-common-platform-unix-SysLibrary.cpp.diff
===================================================================
--- trunk/dports/lang/oorexx/files/patch-common-platform-unix-SysLibrary.cpp.diff (rev 0)
+++ trunk/dports/lang/oorexx/files/patch-common-platform-unix-SysLibrary.cpp.diff 2010-11-21 07:00:12 UTC (rev 73683)
@@ -0,0 +1,15 @@
+--- common/platform/unix/SysLibrary.cpp.orig 2010-05-02 14:16:05.000000000 -0500
++++ common/platform/unix/SysLibrary.cpp 2010-11-21 00:44:13.000000000 -0600
+@@ -88,10 +88,10 @@
+ sprintf(nameBuffer, "lib%s%s", name, ORX_SHARED_LIBRARY_EXT);
+ // try loading directly
+ libraryHandle = dlopen(nameBuffer, RTLD_LAZY);
+- // if not found, then try from /usr/lib
++ // if not found, then try from @PREFIX@/lib/ooRexx
+ if (libraryHandle == NULL)
+ {
+- sprintf(nameBuffer, "/usr/lib/lib%s%s", name, ORX_SHARED_LIBRARY_EXT);
++ sprintf(nameBuffer, "@PREFIX@/lib/ooRexx/lib%s%s", name, ORX_SHARED_LIBRARY_EXT);
+ libraryHandle = dlopen(nameBuffer, RTLD_LAZY);
+ // still can't find it?
+ if (libraryHandle == NULL)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101120/de1b4145/attachment.html>
More information about the macports-changes
mailing list