summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2010-09-10 05:59:06 +0000
committertaca <taca@pkgsrc.org>2010-09-10 05:59:06 +0000
commit96e4b149e36acc3a87868b71a145bb11c1ce9066 (patch)
tree5cbaea7d5ff043687cd3b87416ff8eb855a6de4d
parent4147ba859b06f9d273423f242bf92f5b5d891bd6 (diff)
downloadpkgsrc-96e4b149e36acc3a87868b71a145bb11c1ce9066.tar.gz
* Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk.
* Add LICENSE. * Ajust new ruby package's framework.
-rw-r--r--devel/ruby-mkrf/Makefile14
-rw-r--r--devel/ruby-mkrf/distinfo3
-rw-r--r--devel/ruby-mkrf/patches/patch-aa24
3 files changed, 37 insertions, 4 deletions
diff --git a/devel/ruby-mkrf/Makefile b/devel/ruby-mkrf/Makefile
index eb4730368fe..25c1fc6ee4b 100644
--- a/devel/ruby-mkrf/Makefile
+++ b/devel/ruby-mkrf/Makefile
@@ -1,12 +1,20 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/04/04 15:17:58 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2010/09/10 05:59:06 taca Exp $
DISTNAME= mkrf-0.2.3
-PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mkrf.rubyforge.org/
COMMENT= Library for generating Rakefiles
+LICENSE= mit
-.include "../../misc/rubygems/rubygem.mk"
+USE_RAKE= RUN
+
+SUBST_CLASSES+= rake
+SUBST_STAGE.rake= pre-configure
+SUBST_FILES.rake= lib/mkrf/rakehelper.rb
+SUBST_SED.rake= -e "s|@RAKE@|${RAKE}|"
+SUBST_MESSAGE.rake= Fixate rake's path.
+
+.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-mkrf/distinfo b/devel/ruby-mkrf/distinfo
index 61838acee7c..854f9551774 100644
--- a/devel/ruby-mkrf/distinfo
+++ b/devel/ruby-mkrf/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/04/04 15:17:58 jlam Exp $
+$NetBSD: distinfo,v 1.2 2010/09/10 05:59:06 taca Exp $
SHA1 (mkrf-0.2.3.gem) = 01b9b98b36487ec12da41ea4e7df21e55ffb502d
RMD160 (mkrf-0.2.3.gem) = 44a142750af4dddb17b17deadbd4796489ce3017
Size (mkrf-0.2.3.gem) = 415232 bytes
+SHA1 (patch-aa) = cc0bd77b3cb0e18d6ca5a2ddd08680371d9b7493
diff --git a/devel/ruby-mkrf/patches/patch-aa b/devel/ruby-mkrf/patches/patch-aa
new file mode 100644
index 00000000000..eec722a23db
--- /dev/null
+++ b/devel/ruby-mkrf/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1 2010/09/10 05:59:06 taca Exp $
+
+Allow changeing rake command's name.
+
+--- lib/mkrf/rakehelper.rb.orig 2010-08-28 10:52:11.000000000 +0000
++++ lib/mkrf/rakehelper.rb
+@@ -5,7 +5,7 @@
+
+ def rake(rakedir)
+ Dir.chdir(rakedir) do
+- sh 'rake'
++ sh '@RAKE@'
+ end
+ end
+
+@@ -105,7 +105,7 @@ end
+ def sub_project(project, *targets)
+ targets.each do |target|
+ Dir.chdir "projects/#{project}" do
+- sh %{rake --trace #{target.to_s} }
++ sh %{@RAKE@ --trace #{target.to_s} }
+ end
+ end
+ end