2008-03-13 19:45:05 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2008/03/13 18:45:05 jlam Exp $
|
2005-04-10 03:01:33 +02:00
|
|
|
|
2008-01-16 23:56:42 +01:00
|
|
|
DISTNAME= rubygems-1.0.1
|
2008-03-12 16:07:47 +01:00
|
|
|
PKGREVISION= 2
|
2005-04-10 03:01:33 +02:00
|
|
|
CATEGORIES= misc ruby
|
2008-01-16 23:56:42 +01:00
|
|
|
MASTER_SITES= http://rubyforge.org/frs/download.php/29548/
|
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
|
2005-11-03 06:12:42 +01:00
|
|
|
RUBY_REQD= 1.8.3
|
2007-12-02 23:32:51 +01:00
|
|
|
|
2005-04-10 03:01:33 +02:00
|
|
|
REPLACE_RUBY_DIRS= ${WRKSRC}/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
|
|
|
|
INSTALL_TARGET+= --format-executable
|
|
|
|
.if ${_USE_DESTDIR} != "no"
|
|
|
|
INSTALL_TARGET+= --buildroot=${DESTDIR:Q}
|
|
|
|
.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"
|