summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-06-18 05:20:04 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-06-18 05:20:04 +0000
commit0f084d5028228fe057ea53846c3235a7b9bc26e2 (patch)
tree4b6861db295c93a15af5f2b3a74701d95eebff27
parent- Update to 0.8.6 (diff)
- Add WITH_GNUSTEP_DEVEL
- resolve namespace confict Approved by: knu
Notes
Notes: svn path=/head/; revision=83231
-rw-r--r--devel/ruby-gnustep/Makefile8
-rw-r--r--devel/ruby-gnustep/files/patch-RIGSCore.m23
-rw-r--r--devel/ruby-gnustep/pkg-plist16
3 files changed, 38 insertions, 9 deletions
diff --git a/devel/ruby-gnustep/Makefile b/devel/ruby-gnustep/Makefile
index 8b71054ab379..244cb7ec4c67 100644
--- a/devel/ruby-gnustep/Makefile
+++ b/devel/ruby-gnustep/Makefile
@@ -43,9 +43,15 @@ GNUSTEP_NETWORK_ROOT= ${GNUSTEP_PREFIX}/Network
GNUSTEP_USER_ROOT= ${GNUSTEP_PREFIX}/Local/Users
GNUSTEP_MAKEFILES= ${GNUSTEP_SYSTEM_ROOT}/Makefiles
+BACKBUNDLEDIR= ${GNUSTEP_PREFIX}/System/Library/Bundles/libgnustep-back.bundle/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu/
+.if defined(WITH_GNUSTEP_DEVEL)
+SYSLIBDIR= ${GNUSTEP_PREFIX}/System/Library/Libraries/${GNU_ARCH}/${OPSYS:L}
+PLIST_SUB+= LOCALLIBRARY=Local/Library
+.else
SYSLIBDIR= ${GNUSTEP_PREFIX}/System/Libraries/${GNU_ARCH}/${OPSYS:L}
+PLIST_SUB+= LOCALLIBRARY=Local
+.endif
COMBOLIBDIR= ${SYSLIBDIR}/gnu-gnu-gnu
-BACKBUNDLEDIR= ${GNUSTEP_PREFIX}/System/Library/Bundles/libgnustep-back.bundle/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu/
.include <bsd.port.pre.mk>
diff --git a/devel/ruby-gnustep/files/patch-RIGSCore.m b/devel/ruby-gnustep/files/patch-RIGSCore.m
new file mode 100644
index 000000000000..41a84983ebc7
--- /dev/null
+++ b/devel/ruby-gnustep/files/patch-RIGSCore.m
@@ -0,0 +1,23 @@
+--- Source/RIGSCore.m.orig Sat May 31 18:23:50 2003
++++ Source/RIGSCore.m Sun Jun 1 16:57:00 2003
+@@ -988,7 +988,7 @@
+ (see below)
+ */
+ #ifdef GNUSTEP
+-static MethodList_t class_nextMethodList( Class class, void ** iterator_ptr)
++static MethodList_t rb_class_nextMethodList( Class class, void ** iterator_ptr)
+ {
+ MethodList_t mlist;
+
+@@ -1015,7 +1015,11 @@
+
+ while(class) {
+
++#ifdef GNUSTEP
++ while( (mlist = rb_class_nextMethodList(class, &iterator)) != NULL) {
++#else
+ while( (mlist = class_nextMethodList(class, &iterator)) != NULL) {
++#endif
+
+ for(i = 0; i < mlist->method_count; i++) {
+ SEL sel = mlist->method_list[i].method_name;
diff --git a/devel/ruby-gnustep/pkg-plist b/devel/ruby-gnustep/pkg-plist
index 1076909d6749..8315d24db51c 100644
--- a/devel/ruby-gnustep/pkg-plist
+++ b/devel/ruby-gnustep/pkg-plist
@@ -63,14 +63,14 @@
%%RUBY_SITELIBDIR%%/rigs/NSWindow.rb
%%RUBY_SITEARCHLIBDIR%%/librigs.so
@dirrm %%RUBY_SITELIBDIR%%/rigs
-GNUstep/Local/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/librigs.so.0.2.1
-GNUstep/Local/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/librigs.so.0
-GNUstep/Local/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/librigs.so
-@unexec /bin/rmdir %D/GNUstep/Local/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu 2> /dev/null || true
-@unexec /bin/rmdir %D/GNUstep/Local/Libraries/%%GNU_ARCH%%/%%OPSYS%% 2> /dev/null || true
-@unexec /bin/rmdir %D/GNUstep/Local/Libraries/%%GNU_ARCH%% 2> /dev/null || true
-@unexec /bin/rmdir %D/GNUstep/Local/Libraries 2> /dev/null || true
-@unexec /bin/rmdir %D/GNUstep/Local/Headers 2> /dev/null || true
+GNUstep/%%LOCALLIBRARY%%/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/librigs.so.0.2.1
+GNUstep/%%LOCALLIBRARY%%/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/librigs.so.0
+GNUstep/%%LOCALLIBRARY%%/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/librigs.so
+@unexec /bin/rmdir %D/GNUstep/%%LOCALLIBRARY%%/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu 2> /dev/null || true
+@unexec /bin/rmdir %D/GNUstep/%%LOCALLIBRARY%%/Libraries/%%GNU_ARCH%%/%%OPSYS%% 2> /dev/null || true
+@unexec /bin/rmdir %D/GNUstep/%%LOCALLIBRARY%%/Libraries/%%GNU_ARCH%% 2> /dev/null || true
+@unexec /bin/rmdir %D/GNUstep/%%LOCALLIBRARY%%/Libraries 2> /dev/null || true
+@unexec /bin/rmdir %D/GNUstep/%%LOCALLIBRARY%%/Headers 2> /dev/null || true
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/Base/Simple.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/Gui/CurrencyConverter/CurrencyConverter.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/Gui/CurrencyConverter/CurrencyConverterIcon.tiff