OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 03-Mar-2006 21:58:41
Branch: HEAD Handle: 2006030320584100
Modified files:
openpkg-src/subversion subversion.spec
Log:
add optional Ruby binding support. Submitted by:
<[EMAIL PROTECTED]>
Summary:
Revision Changes Path
1.103 +20 -1 openpkg-src/subversion/subversion.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/subversion/subversion.spec
============================================================================
$ cvs diff -u -r1.102 -r1.103 subversion.spec
--- openpkg-src/subversion/subversion.spec 2 Jan 2006 14:51:29 -0000
1.102
+++ openpkg-src/subversion/subversion.spec 3 Mar 2006 20:58:41 -0000
1.103
@@ -41,13 +41,14 @@
Group: SCM
License: Apache/BSD
Version: %{V_opkg}
-Release: 20060102
+Release: 20060303
# package options
%option with_cvs2svn no
%option with_svn2cvs no
%option with_perl no
%option with_python no
+%option with_ruby no
# list of sources
Source0:
http://subversion.tigris.org/tarballs/subversion-%{V_dist}.tar.gz
@@ -85,6 +86,10 @@
BuildPreReq: python, swig
PreReq: python
%endif
+%if "%{with_ruby}" == "yes"
+BuildPreReq: ruby
+PreReq: ruby
+%endif
AutoReq: no
AutoReqProv: no
@@ -160,6 +165,9 @@
%if "%{with_python}" == "yes"
--with-python=%{l_prefix}/bin/python \
%endif
+%if "%{with_ruby}" == "yes"
+ --with-ruby=%{l_prefix}/bin/ruby \
+%endif
--disable-nls \
--disable-shared \
--without-apxs
@@ -179,6 +187,11 @@
%{l_make} %{l_mflags} swig-py
%endif
+ # build Ruby bindings
+%if "%{with_ruby}" == "yes"
+ %{l_make} %{l_mflags} swig-rb
+%endif
+
%install
# install package
rm -rf $RPM_BUILD_ROOT
@@ -201,6 +214,12 @@
$RPM_BUILD_ROOT%{l_prefix}/lib/python
%endif
+ # install Ruby bindings
+%if "%{with_ruby}" == "yes"
+ %{l_make} %{l_mflags} install-swig-rb DESTDIR=$RPM_BUILD_ROOT
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/libsvn_swig_ruby*
+%endif
+
# adjust APR installation for SVN local namespace
( cd $RPM_BUILD_ROOT%{l_prefix}/include/apr-0
for i in *; do
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]