diff options
author | tv <tv@pkgsrc.org> | 2005-01-21 06:13:36 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-01-21 06:13:36 +0000 |
commit | 36633141761e1e798daa9a90d180579777dac03b (patch) | |
tree | 3f664e61ca1565c020551a20fe546ecc588f1bb6 /lang/ruby16 | |
parent | 629d4acd883ef357ffc54b558f0845693aa51a40 (diff) | |
download | pkgsrc-36633141761e1e798daa9a90d180579777dac03b.tar.gz |
Add ruby build support for Interix, modeled on NetBSD config.
Diffstat (limited to 'lang/ruby16')
-rw-r--r-- | lang/ruby16/distinfo | 6 | ||||
-rw-r--r-- | lang/ruby16/patches/patch-aa | 61 | ||||
-rw-r--r-- | lang/ruby16/patches/patch-ab | 61 |
3 files changed, 105 insertions, 23 deletions
diff --git a/lang/ruby16/distinfo b/lang/ruby16/distinfo index a9174c5e9a0..40ee98de5a2 100644 --- a/lang/ruby16/distinfo +++ b/lang/ruby16/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ +$NetBSD: distinfo,v 1.2 2005/01/21 06:13:36 tv Exp $ SHA1 (ruby/ruby-1.6.8.tar.gz) = 4b475ac1c837cd62b6dfe85359e1502a71b08cd1 Size (ruby/ruby-1.6.8.tar.gz) = 1023403 bytes -SHA1 (patch-aa) = 1c6d4f4c376ac666f9d70e3b556bef314450156f -SHA1 (patch-ab) = 6709764404153b1f3c125480256b8af23c74a218 +SHA1 (patch-aa) = ba4551cc3de31036a3cf8d50478bfdcbcadee38b +SHA1 (patch-ab) = 57abd1b0e6af14b20c3a284615160c144c18cfdc SHA1 (patch-ac) = 19f520406a9b699a4bbe53b0e9e2b69b4eb7d96a SHA1 (patch-ad) = 8a3e5eb250f517f10bea7f52fbfe8b05957b7bb4 SHA1 (patch-ae) = 2e096dcb882be923d2ff775a4271a300954a9dec diff --git a/lang/ruby16/patches/patch-aa b/lang/ruby16/patches/patch-aa index 4618d96e746..fb9f7edc026 100644 --- a/lang/ruby16/patches/patch-aa +++ b/lang/ruby16/patches/patch-aa @@ -1,8 +1,17 @@ -$NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ +$NetBSD: patch-aa,v 1.2 2005/01/21 06:13:36 tv Exp $ ---- configure.in.orig 2002-11-14 03:59:18.000000000 +0900 +--- configure.in.orig 2002-11-13 13:59:18.000000000 -0500 +++ configure.in -@@ -324,7 +324,8 @@ AC_HEADER_STDC +@@ -264,6 +264,8 @@ os2_emx*) LIBS="-lm $LIBS" + ac_cv_lib_dir_opendir=no;; + msdosdjgpp*) LIBS="-lm $LIBS" + ac_cv_func_getpgrp_void=yes;; ++interix3*) LIBS="-lm $LIBS" ++ ac_cv_func_getpgrp_void=yes;; + freebsd*) LIBS="-lm $LIBS" + AC_CACHE_CHECK([whether -lxpg4 has to be linked], + rb_cv_lib_xpg4_needed, +@@ -324,7 +326,8 @@ AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\ fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\ @@ -12,7 +21,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_UID_T -@@ -456,6 +457,49 @@ else +@@ -456,6 +459,49 @@ else AC_DEFINE_UNQUOTED(FILE_COUNT, $rb_cv_fcnt) fi @@ -62,7 +71,15 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ dnl default value for $KANJI DEFAULT_KCODE="KCODE_NONE" -@@ -563,7 +607,7 @@ if test "$with_dln_a_out" != yes; then +@@ -549,6 +595,7 @@ if test "$with_dln_a_out" != yes; then + cygwin*) ;; + mingw*) ;; + netbsd*) CCDLFLAGS=-fPIC;; ++ interix3*) ;; + *) CCDLFLAGS=-fPIC;; + esac + else +@@ -563,7 +610,7 @@ if test "$with_dln_a_out" != yes; then case "$target_os" in hpux*) DLDFLAGS="-E" @@ -71,7 +88,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ LDFLAGS="-Wl,-E" rb_cv_dlopen=yes;; solaris*) if test "$GCC" = yes; then -@@ -578,7 +622,8 @@ if test "$with_dln_a_out" != yes; then +@@ -578,7 +625,8 @@ if test "$with_dln_a_out" != yes; then rb_cv_dlopen=yes;; sunos*) LDSHARED='ld -assert nodefinitions' rb_cv_dlopen=yes;; @@ -81,7 +98,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ rb_cv_dlopen=yes;; sysv4*) LDSHARED='ld -G' rb_cv_dlopen=yes;; -@@ -589,6 +634,12 @@ if test "$with_dln_a_out" != yes; then +@@ -589,6 +637,12 @@ if test "$with_dln_a_out" != yes; then osf*) LDSHARED="$CC -shared" rb_cv_dlopen=yes ;; linux*) LDSHARED="$CC -shared" @@ -94,7 +111,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ rb_cv_dlopen=yes ;; freebsd*) LDSHARED="$CC -shared" if test "$rb_cv_binary_elf" = yes; then -@@ -601,6 +652,9 @@ if test "$with_dln_a_out" != yes; then +@@ -601,8 +655,18 @@ if test "$with_dln_a_out" != yes; then netbsd*) LDSHARED='${CC} -shared' if test "$rb_cv_binary_elf" = yes; then LDFLAGS="-Wl,-export-dynamic" @@ -103,8 +120,17 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ + RPATHFLAG=' -Wl,-R%1$-s' fi rb_cv_dlopen=yes ;; ++ interix3*) LDSHARED='${CC} -shared' ++ LDFLAGS="-Wl,-E" ++ # use special random-slot linkage in 0x[56]XXXXXXX ++ DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %%4096/2*262144+1342177280))' ++ LIBPATHFLAG=' -L%1$-s' ++ RPATHFLAG=' -Wl,-R%1$-s' ++ rb_cv_dlopen=yes ;; openbsd*) LDSHARED="ld -Bforcearchive -Bshareable" -@@ -858,6 +912,7 @@ if test "$enable_shared" = 'yes'; then + rb_cv_dlopen=yes ;; + bsdi3*) case "$CC" in +@@ -858,6 +922,7 @@ if test "$enable_shared" = 'yes'; then ;; linux*) LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)' @@ -112,7 +138,22 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_INSTALL_NAME).so' ;; freebsd*) -@@ -1071,6 +1126,10 @@ if test "$search_path" != ""; then +@@ -879,6 +944,14 @@ if test "$enable_shared" = 'yes'; then + LIBRUBY_ALIASES="" + fi + ;; ++ interix3*) ++ SOLIBS='$(LIBS)' ++ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' ++ # link explicitly to 0x48000000 ++ LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' ++ LIBRUBYARG='-Wl,-R -Wl,${prefix}/lib -L${prefix}/lib -L. -l$(RUBY_INSTALL_NAME)' ++ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_INSTALL_NAME).so' ++ ;; + openbsd*) + SOLIBS='$(LIBS)' + ;; +@@ -1071,6 +1144,10 @@ if test "$search_path" != ""; then AC_DEFINE_UNQUOTED(RUBY_SEARCH_PATH,"$search_path") fi diff --git a/lang/ruby16/patches/patch-ab b/lang/ruby16/patches/patch-ab index b691eb7e68d..7055951dc14 100644 --- a/lang/ruby16/patches/patch-ab +++ b/lang/ruby16/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ +$NetBSD: patch-ab,v 1.2 2005/01/21 06:13:36 tv Exp $ ---- configure.orig 2002-11-19 20:49:26.000000000 +0900 +--- configure.orig 2002-11-19 06:49:26.000000000 -0500 +++ configure @@ -29,6 +29,8 @@ ac_help="$ac_help --with-sitedir=DIR site libraries in DIR [PREFIX/lib/ruby/site_ruby]" @@ -11,7 +11,16 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ # Initialize some variables set by options. # The variables have the same names as the options, with -@@ -2877,7 +2879,8 @@ fi +@@ -2324,6 +2326,8 @@ os2_emx*) LIBS="-lm $LIBS" + ac_cv_lib_dir_opendir=no;; + msdosdjgpp*) LIBS="-lm $LIBS" + ac_cv_func_getpgrp_void=yes;; ++interix3*) LIBS="-lm $LIBS" ++ ac_cv_func_getpgrp_void=yes;; + freebsd*) LIBS="-lm $LIBS" + echo $ac_n "checking whether -lxpg4 has to be linked""... $ac_c" 1>&6 + echo "configure:2330: checking whether -lxpg4 has to be linked" >&5 +@@ -2877,7 +2881,8 @@ fi for ac_hdr in stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\ fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\ @@ -21,7 +30,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -@@ -4387,6 +4390,330 @@ EOF +@@ -4387,6 +4392,330 @@ EOF fi @@ -352,7 +361,15 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ DEFAULT_KCODE="KCODE_NONE" # Check whether --with-default-kcode or --without-default-kcode was given. -@@ -4524,7 +4851,7 @@ echo "configure:4501: checking whether O +@@ -4510,6 +4839,7 @@ echo "configure:4501: checking whether O + cygwin*) ;; + mingw*) ;; + netbsd*) CCDLFLAGS=-fPIC;; ++ interix3*) ;; + *) CCDLFLAGS=-fPIC;; + esac + else +@@ -4524,7 +4854,7 @@ echo "configure:4501: checking whether O case "$target_os" in hpux*) DLDFLAGS="-E" @@ -361,7 +378,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ LDFLAGS="-Wl,-E" rb_cv_dlopen=yes;; solaris*) if test "$GCC" = yes; then -@@ -4539,7 +4866,8 @@ echo "configure:4501: checking whether O +@@ -4539,7 +4869,8 @@ echo "configure:4501: checking whether O rb_cv_dlopen=yes;; sunos*) LDSHARED='ld -assert nodefinitions' rb_cv_dlopen=yes;; @@ -371,7 +388,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ rb_cv_dlopen=yes;; sysv4*) LDSHARED='ld -G' rb_cv_dlopen=yes;; -@@ -4550,6 +4878,12 @@ echo "configure:4501: checking whether O +@@ -4550,6 +4881,12 @@ echo "configure:4501: checking whether O osf*) LDSHARED="$CC -shared" rb_cv_dlopen=yes ;; linux*) LDSHARED="$CC -shared" @@ -384,7 +401,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ rb_cv_dlopen=yes ;; freebsd*) LDSHARED="$CC -shared" if test "$rb_cv_binary_elf" = yes; then -@@ -4562,6 +4896,9 @@ echo "configure:4501: checking whether O +@@ -4562,8 +4899,18 @@ echo "configure:4501: checking whether O netbsd*) LDSHARED='${CC} -shared' if test "$rb_cv_binary_elf" = yes; then LDFLAGS="-Wl,-export-dynamic" @@ -393,8 +410,17 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ + RPATHFLAG=' -Wl,-R%1$-s' fi rb_cv_dlopen=yes ;; ++ interix3*) LDSHARED='${CC} -shared' ++ LDFLAGS="-Wl,-E" ++ # use special random-slot linkage in 0x[56]XXXXXXX ++ DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %%4096/2*262144+1342177280))' ++ LIBPATHFLAG=' -L%1$-s' ++ RPATHFLAG=' -Wl,-R%1$-s' ++ rb_cv_dlopen=yes ;; openbsd*) LDSHARED="ld -Bforcearchive -Bshareable" -@@ -5070,6 +5407,7 @@ if test "$enable_shared" = 'yes'; then + rb_cv_dlopen=yes ;; + bsdi3*) case "$CC" in +@@ -5070,6 +5417,7 @@ if test "$enable_shared" = 'yes'; then ;; linux*) LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR)' @@ -402,7 +428,22 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_INSTALL_NAME).so' ;; freebsd*) -@@ -5315,6 +5653,15 @@ EOF +@@ -5091,6 +5439,14 @@ if test "$enable_shared" = 'yes'; then + LIBRUBY_ALIASES="" + fi + ;; ++ interix3*) ++ SOLIBS='$(LIBS)' ++ LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' ++ # link explicitly to 0x48000000 ++ LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' ++ LIBRUBYARG='-Wl,-R -Wl,${prefix}/lib -L${prefix}/lib -L. -l$(RUBY_INSTALL_NAME)' ++ LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_INSTALL_NAME).so' ++ ;; + openbsd*) + SOLIBS='$(LIBS)' + ;; +@@ -5315,6 +5671,15 @@ EOF fi |