Date: Mon, 4 Jul 2005 03:51:24 +0900 (JST) From: IWATSUKI Hiroyuki <don@na.rim.or.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: lev@FreeBSD.org Subject: ports/82949: [PATCH] devel/subversion: Ruby bindings Message-ID: <200507031851.j63IpOSH083836@lemmy.moonrock.local> Resent-Message-ID: <200507031900.j63J0SDH086519@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82949 >Category: ports >Synopsis: [PATCH] devel/subversion: Ruby bindings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jul 03 19:00:27 GMT 2005 >Closed-Date: >Last-Modified: >Originator: IWATSUKI Hiroyuki >Release: FreeBSD 5.4-STABLE i386 >Organization: Natsume Co., Ltd. >Environment: System: FreeBSD lemmy.moonrock.local 5.4-STABLE FreeBSD 5.4-STABLE #10: Sun Jul 3 00:51:56 JST >Description: - Added a support for Ruby bindings. Added file(s): - files/patch-subversion::bindings::swig::ruby::libsvn_swig_ruby::swigutil_rb.c Port maintainer (lev@freebsd.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- subversion-1.2.0.patch begins here --- diff -ruN --exclude=CVS /mnt/ports/devel/subversion.orig/Makefile /mnt/ports/devel/subversion/Makefile --- /mnt/ports/devel/subversion.orig/Makefile Thu May 26 14:18:11 2005 +++ /mnt/ports/devel/subversion/Makefile Mon Jul 4 03:35:04 2005 @@ -106,6 +106,16 @@ PLIST_SUB+= WITH_PYTHON="@comment " .endif +.if defined(WITH_RUBY) +USE_RUBY= yes +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +SWIG_BINDINGS+= ruby +DEPENDS_ARGS+= WANT_SWIG_RUBY=yes +PLIST_SUB+= WITH_RUBY="" +.else +PLIST_SUB+= WITH_RUBY="@comment " +.endif + #.if defined(WITH_JAVA) #USE_JAVA= yes #JAVA_VERSION= 1.2+ @@ -217,6 +227,12 @@ @${ECHO_MSG} "You can enable Python bindings by defining WITH_PYTHON." .endif @${ECHO_MSG} "" +.if defined(WITH_RUBY) + @${ECHO_MSG} "Build with Ruby bindings." +.else + @${ECHO_MSG} "You can enable Ruby bindings by defining WITH_RUBY." +.endif + @${ECHO_MSG} "" #.if defined(WITH_JAVA) # @${ECHO_MSG} "Build with Java (JavaHL) bindings." #.else @@ -300,8 +316,8 @@ .if !defined(WITHOUT_BDB) @if [ `${APR_APU_DIR}/${APU_CONFIG} --db-version` != "4" ] ; then \ ${ECHO_MSG} "" ; \ - ${ECHO_MSG} 'You should build `'"${APR_PORT}' with db4 support to use subversion with it." ; \ - ${ECHO_MSG} 'Please rebuild `'"${APR_PORT}' with option "'`'"${OPT_NAME}' and try again." ; \ + ${ECHO_MSG} 'You should build `'"${APR_PORT}' with db4 support to use subversion with it." ; \ + ${ECHO_MSG} 'Please rebuild `'"${APR_PORT}' with option "'`'"${OPT_NAME}' and try again." ; \ ${ECHO_MSG} "" ; \ ${ECHO_MSG} "Or you can disable db4 support. Only 'fs' repository backend will be availible." ; \ ${ECHO_MSG} "To disable db4 support, define WITHOUT_BDB." ; \ @@ -319,6 +335,10 @@ cd ${WRKSRC} ; \ ${MAKE} swig-py .endif +.if defined(WITH_RUBY) + cd ${WRKSRC} ; \ + ${MAKE} swig-rb +.endif #.if defined(WITH_JAVA) # @${MKDIR} ${WRKSRC}/subversion/bindings/java/javahl/classes # cd ${WRKSRC} ; \ @@ -355,6 +375,10 @@ .if defined(WITH_PYTHON) cd ${WRKSRC} ; \ ${MAKE} install-swig-py +.endif +.if defined(WITH_RUBY) + cd ${WRKSRC} ; \ + ${MAKE} install-swig-rb .endif #.if defined(WITH_JAVA) # cd ${WRKSRC} ; \ diff -ruN --exclude=CVS /mnt/ports/devel/subversion.orig/files/patch-subversion::bindings::swig::ruby::libsvn_swig_ruby::swigutil_rb.c /mnt/ports/devel/subversion/files/patch-subversion::bindings::swig::ruby::libsvn_swig_ruby::swigutil_rb.c --- /mnt/ports/devel/subversion.orig/files/patch-subversion::bindings::swig::ruby::libsvn_swig_ruby::swigutil_rb.c Thu Jan 1 09:00:00 1970 +++ /mnt/ports/devel/subversion/files/patch-subversion::bindings::swig::ruby::libsvn_swig_ruby::swigutil_rb.c Mon Jul 4 03:04:36 2005 @@ -0,0 +1,22 @@ +--- subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c.orig Tue Mar 22 23:42:12 2005 ++++ subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c Mon Jul 4 02:40:49 2005 +@@ -1,10 +1,16 @@ +-#include "swigutil_rb.h" + #include <st.h> + +-#include <swigrun.swg> ++#if SVN_SWIG_VERSION >= 103024 ++#if SVN_SWIG_VERSION >= 103025 ++#include <swiglabels.swg> ++#endif + #include <ruby/rubyhead.swg> +-#include <common.swg> ++#include <swigrun.swg> + #include <ruby/rubydef.swg> ++#include <runtime.swg> ++#endif ++ ++#include "swigutil_rb.h" + + static VALUE mSvn = Qnil; + static VALUE mSvnCore = Qnil; diff -ruN --exclude=CVS /mnt/ports/devel/subversion.orig/pkg-plist /mnt/ports/devel/subversion/pkg-plist --- /mnt/ports/devel/subversion.orig/pkg-plist Thu May 26 05:08:44 2005 +++ /mnt/ports/devel/subversion/pkg-plist Mon Jul 4 03:02:16 2005 @@ -256,6 +256,29 @@ %%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/svn/wc.pyc %%WITH_PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/libsvn %%WITH_PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/svn +%%WITH_RUBY%%lib/libsvn_swig_ruby-1.a +%%WITH_RUBY%%lib/libsvn_swig_ruby-1.so +%%WITH_RUBY%%lib/libsvn_swig_ruby-1.so.0 +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/core.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/client.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/delta.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/fs.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/ra.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/repos.so +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/svn/ext/wc.so +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/client.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/core.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/delta.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/error.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/fs.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/info.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/ra.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/repos.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/util.rb +%%WITH_RUBY%%%%RUBY_SITELIBDIR%%/svn/wc.rb +%%WITH_RUBY%%@dirrm %%RUBY_SITEARCHLIBDIR%%/svn/ext +%%WITH_RUBY%%@dirrm %%RUBY_SITEARCHLIBDIR%%/svn +%%WITH_RUBY%%@dirrm %%RUBY_SITELIBDIR%%/svn @dirrm %%DATADIR%%/backup @dirrm %%DATADIR%%/bdb @dirrm %%DATADIR%%/client-side --- subversion-1.2.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507031851.j63IpOSH083836>