diff options
author | minskim <minskim@pkgsrc.org> | 2006-10-31 19:43:02 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-10-31 19:43:02 +0000 |
commit | 87a042abb219fb8dc01a1e0b908f0e1f02c0922f (patch) | |
tree | 955c738f39f4ba3aef8992bd59833ee797c89b71 /misc | |
parent | 860964bc82a1eb43a0336bdc2d545e3250d7f38f (diff) | |
download | pkgsrc-87a042abb219fb8dc01a1e0b908f0e1f02c0922f.tar.gz |
Import ruby-gem_plugin.
GemPlugin is a system that lets your users install gems and lets you
load them as additional features to use in your software. It
originated from the Mongrel (mongrel.rubyforge.org) project but proved
useful enough to break out into a separate project.
GemPlugin works by listing the gems installed, and doing a require_gem
on any that have the right dependencies. For example, if a gem
depends on "gem_plugin" and "mongrel" then it will load as a Mongrel
plugin. This makes it so that users of the plugins only need to gem
install (and maybe config a bit), and plugin authors only need to make
gems.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-gem_plugin/DESCR | 11 | ||||
-rw-r--r-- | misc/ruby-gem_plugin/Makefile | 28 | ||||
-rw-r--r-- | misc/ruby-gem_plugin/PLIST | 116 | ||||
-rw-r--r-- | misc/ruby-gem_plugin/distinfo | 6 | ||||
-rw-r--r-- | misc/ruby-gem_plugin/patches/patch-aa | 12 |
5 files changed, 173 insertions, 0 deletions
diff --git a/misc/ruby-gem_plugin/DESCR b/misc/ruby-gem_plugin/DESCR new file mode 100644 index 00000000000..0c8dc554ce2 --- /dev/null +++ b/misc/ruby-gem_plugin/DESCR @@ -0,0 +1,11 @@ +GemPlugin is a system that lets your users install gems and lets you +load them as additional features to use in your software. It +originated from the Mongrel (mongrel.rubyforge.org) project but proved +useful enough to break out into a separate project. + +GemPlugin works by listing the gems installed, and doing a require_gem +on any that have the right dependencies. For example, if a gem +depends on "gem_plugin" and "mongrel" then it will load as a Mongrel +plugin. This makes it so that users of the plugins only need to gem +install (and maybe config a bit), and plugin authors only need to make +gems. diff --git a/misc/ruby-gem_plugin/Makefile b/misc/ruby-gem_plugin/Makefile new file mode 100644 index 00000000000..4c24348dbbd --- /dev/null +++ b/misc/ruby-gem_plugin/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/10/31 19:43:02 minskim Exp $ + +DISTNAME= gem_plugin-0.2.1 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} +CATEGORIES= misc +MASTER_SITES= http://rubyforge.org/frs/download.php/9199/ +EXTRACT_SUFX= .gem + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= http://mongrel.rubyforge.org/ +COMMENT= Gem-based plugin system + +CONFLICTS+= ruby[1-9]*-gem_plugin-[0-9]* +BUILD_DEPENDS+= rake>=0.7:../../devel/rake +DEPENDS+= rubygems-[0-9]*:../../misc/rubygems + +FIND_PREFIX:= RAKE_PREFIX=rake +.include "../../mk/find-prefix.mk" + +.include "../../lang/ruby/modules.mk" + +do-build: + cd ${WRKSRC} && ${RAKE_PREFIX}/bin/rake package + +do-install: + ${GEM} install ${WRKSRC}/pkg/${DISTNAME}.gem -l + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/ruby-gem_plugin/PLIST b/misc/ruby-gem_plugin/PLIST new file mode 100644 index 00000000000..49f8b544156 --- /dev/null +++ b/misc/ruby-gem_plugin/PLIST @@ -0,0 +1,116 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/31 19:43:03 minskim Exp $ +bin/gpgen +lib/ruby/gems/1.8/cache/gem_plugin-${PKGVERSION}.gem +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin.src/M000001.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Base.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Base.src/M000002.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Base.src/M000003.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Base.src/M000004.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000005.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000006.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000007.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000008.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000009.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000010.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src/M000011.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/PluginNotLoaded.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/created.rid +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/files/README.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/files/lib/gem_plugin_rb.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/fr_class_index.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/fr_file_index.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/fr_method_index.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/index.html +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/rdoc-style.css +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Base/category%3d-c.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Base/cdesc-Base.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Base/inherited-c.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Base/new-c.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/cdesc-Manager.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/config-i.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/create-i.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/load-i.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/loaded%3f-i.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/new-c.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/register-i.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager/resource-i.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Plugin-c.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/PluginNotLoaded/cdesc-PluginNotLoaded.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/cdesc-GemPlugin.yaml +lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/created.rid +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/COPYING +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/LICENSE +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/README +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/Rakefile +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/bin/gpgen +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin.src/M000001.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Base.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Base.src/M000002.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Base.src/M000003.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Base.src/M000004.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000005.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000006.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000007.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000008.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000009.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000010.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src/M000011.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/PluginNotLoaded.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/created.rid +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/files/COPYING.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/files/LICENSE.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/files/README.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/files/lib/gem_plugin_rb.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/fr_class_index.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/fr_file_index.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/fr_method_index.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/index.html +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/rdoc-style.css +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/lib/gem_plugin.rb +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/COPYING +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/LICENSE +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/README +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/Rakefile +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/lib/project/init.rb +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/resources/defaults.yaml +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/tools/rakehelp.rb +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/test/test_plugins.rb +lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/tools/rakehelp.rb +lib/ruby/gems/1.8/specifications/gem_plugin-${PKGVERSION}.gemspec +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/tools +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/test +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/tools +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/resources +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/lib/project +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources/lib +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/resources +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/lib +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/files/lib +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/files +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Manager.src +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin/Base.src +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin.src +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes/GemPlugin +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc/classes +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc/rdoc +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/doc +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION}/bin +@dirrm lib/ruby/gems/1.8/gems/gem_plugin-${PKGVERSION} +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/PluginNotLoaded +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Manager +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin/Base +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri/GemPlugin +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/ri +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/files/lib +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/files +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Manager.src +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin/Base.src +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin.src +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes/GemPlugin +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc/classes +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION}/rdoc +@dirrm lib/ruby/gems/1.8/doc/gem_plugin-${PKGVERSION} diff --git a/misc/ruby-gem_plugin/distinfo b/misc/ruby-gem_plugin/distinfo new file mode 100644 index 00000000000..e2ca79c1f41 --- /dev/null +++ b/misc/ruby-gem_plugin/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/10/31 19:43:02 minskim Exp $ + +SHA1 (gem_plugin-0.2.1.gem) = 72fbcb0af506e1e2a82d254bd8f528eb3688057f +RMD160 (gem_plugin-0.2.1.gem) = 0a59d2ade202d04e38b6d4317d9f3430653252e6 +Size (gem_plugin-0.2.1.gem) = 43520 bytes +SHA1 (patch-aa) = 9030f254281909fc6beaf82853c54867e7a32efc diff --git a/misc/ruby-gem_plugin/patches/patch-aa b/misc/ruby-gem_plugin/patches/patch-aa new file mode 100644 index 00000000000..f14865b4348 --- /dev/null +++ b/misc/ruby-gem_plugin/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/10/31 19:43:03 minskim Exp $ + +--- Rakefile.orig 2006-10-14 20:47:40.000000000 -0700 ++++ Rakefile +@@ -25,7 +25,6 @@ setup_gem(name, version) do |spec| + spec.test_file = "test/test_plugins.rb" + spec.files += Dir.glob("resources/**/*") + spec.executables=["gpgen"] +- spec.add_dependency("rake", ">= 0.7") + end + + task :install => [:test, :package] do |