pkgsrc/misc/ruby-gem_plugin/Makefile
minskim 87a042abb2 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.
2006-10-31 19:43:02 +00:00

28 lines
721 B
Makefile

# $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"