2008-06-19 16:52:11 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2008/06/19 14:52:36 taca Exp $
|
2005-04-10 03:01:33 +02:00
|
|
|
|
2008-04-13 08:01:59 +02:00
|
|
|
DISTNAME= rubygems-1.1.1
|
2008-06-19 16:52:11 +02:00
|
|
|
PKGREVISION= 2
|
2005-04-10 03:01:33 +02:00
|
|
|
CATEGORIES= misc ruby
|
2008-04-13 08:01:59 +02:00
|
|
|
MASTER_SITES= http://rubyforge.org/frs/download.php/35283/
|
2005-04-10 03:01:33 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
2006-08-07 18:12:27 +02:00
|
|
|
HOMEPAGE= http://www.rubygems.org/
|
2005-04-10 03:01:33 +02:00
|
|
|
COMMENT= Ruby standard for publishing and managing third party libraries
|
|
|
|
|
2008-03-08 01:43:54 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-12-02 23:32:51 +01:00
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= yes
|
2008-06-19 16:52:11 +02:00
|
|
|
RUBY_REQD= 1.8.7
|
2007-12-02 23:32:51 +01:00
|
|
|
|
2008-03-18 04:47:07 +01:00
|
|
|
REPLACE_RUBY_DIRS= bin
|
2007-12-13 15:46:58 +01:00
|
|
|
REPLACE_RUBY_PAT= [a-z]*
|
2005-04-10 03:01:33 +02:00
|
|
|
|
2008-03-13 19:45:05 +01:00
|
|
|
GEM_HOME= ${PREFIX}/lib/ruby/gems/${RUBY_VER_DIR}
|
|
|
|
GEM_DOCDIR= ${GEM_HOME}/doc/${DISTNAME}
|
|
|
|
|
|
|
|
REQD_DIRS= ${GEM_HOME:H}
|
|
|
|
REQD_DIRS+= ${GEM_HOME}
|
|
|
|
REQD_DIRS+= ${GEM_HOME}/cache
|
|
|
|
REQD_DIRS+= ${GEM_HOME}/doc
|
|
|
|
REQD_DIRS+= ${GEM_HOME}/gems
|
|
|
|
REQD_DIRS+= ${GEM_HOME}/specifications
|
|
|
|
|
|
|
|
# Generate a dynamic PLIST for the rubygems documentation directory.
|
|
|
|
GENERATE_PLIST+= \
|
|
|
|
${ECHO} "@comment The following lines are automatically generated." && \
|
|
|
|
( cd ${DESTDIR}${PREFIX} && \
|
|
|
|
${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} \! -type d -print | \
|
|
|
|
${SORT} && \
|
|
|
|
${FIND} ${GEM_DOCDIR:S|${PREFIX}/||} -type d -print | \
|
|
|
|
${SORT} -r | ${SED} -e "s,^,@dirrm ," );
|
2007-05-23 03:51:19 +02:00
|
|
|
|
2005-04-10 03:01:33 +02:00
|
|
|
.include "../../lang/ruby/modules.mk"
|
2007-05-23 03:51:19 +02:00
|
|
|
|
2008-03-08 01:43:54 +01:00
|
|
|
# Force the Gem repository to be under ${DESTDIR}. This is harmless
|
|
|
|
# because this packages depends on no other gems.
|
|
|
|
#
|
2008-03-13 19:45:05 +01:00
|
|
|
INSTALL_ENV+= GEM_HOME=${DESTDIR}${GEM_HOME}
|
2008-03-08 01:43:54 +01:00
|
|
|
|
|
|
|
INSTALL_TARGET= install
|
2008-03-31 17:40:43 +02:00
|
|
|
INSTALL_TARGET+= --no-format-executable # "bin/gem", not "bin/gem18"
|
2008-03-08 01:43:54 +01:00
|
|
|
.if ${_USE_DESTDIR} != "no"
|
2008-03-31 17:40:43 +02:00
|
|
|
INSTALL_TARGET+= --install-root=${DESTDIR:Q}
|
2008-03-08 01:43:54 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# rubygem's setup.rb is not the typical setup.rb -- manually run the
|
|
|
|
# command to install.
|
|
|
|
#
|
|
|
|
do-install:
|
2008-03-13 19:45:05 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
|
|
|
|
${RUBY} setup.rb ${INSTALL_TARGET}
|
2007-05-23 03:51:19 +02:00
|
|
|
|
2005-04-10 03:01:33 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|