summaryrefslogtreecommitdiff
path: root/devel/ruby-subversion/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ruby-subversion/Makefile')
-rw-r--r--devel/ruby-subversion/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/devel/ruby-subversion/Makefile b/devel/ruby-subversion/Makefile
index 7629d3e220d..1b6a8ed6c36 100644
--- a/devel/ruby-subversion/Makefile
+++ b/devel/ruby-subversion/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2008/04/04 15:31:39 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2008/06/19 14:48:43 taca Exp $
PKGNAME= ${RUBY_PKGPREFIX}-subversion-${SVNVER}
-PKGREVISION= 1
+PKGREVISION= 2
COMMENT= Ruby bindings for Subversion
.include "../../devel/subversion/Makefile.common"
@@ -11,20 +11,22 @@ SHLIBTOOL_OVERRIDE= # empty
REPLACE_RUBY_DIRS= tools
CONFIGURE_ENV+= RUBY=${RUBY:Q}
+CONFIGURE_ARGS+= --with-ruby-sitedir=${PREFIX}/${RUBY_VENDORLIB_BASE}
BUILD_TARGET= swig-rb-lib swig-rb
INSTALL_TARGET= install-swig-rb
TEST_TARGET= check-swig-rb
+INSTALLATION_DIRS+= ${SVNEXAMPLES:S/${PREFIX}\///}/ruby
+
post-patch:
${RM} ${WRKSRC}/build-outputs.mk
${CP} ${FILESDIR}/build-outputs.mk ${WRKSRC}/build-outputs.mk
post-install:
- ${RM} ${RUBY_SITEARCHLIBDIR}/svn/ext/*.la
- ${INSTALL_DATA_DIR} ${SVNEXAMPLES}/ruby
- ${INSTALL_DATA} ${WRKSRC}/tools/*/*.rb ${SVNEXAMPLES}/ruby
+ ${RM} ${DESTDIR}${PREFIX}/${RUBY_VENDORARCHLIB}/svn/ext/*.la
+ ${INSTALL_DATA} ${WRKSRC}/tools/*/*.rb ${DESTDIR}${SVNEXAMPLES}/ruby
.include "../../devel/subversion-base/buildlink3.mk"
.include "../../lang/ruby/modules.mk"