pkgsrc/devel/ruby-setup/Makefile
2014-03-17 14:08:41 +00:00

38 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2014/03/17 14:08:41 taca Exp $
# $FreeBSD: ports/devel/ruby-setup.rb/Makefile,v 1.20 2006/06/08 20:25:19 sem Exp $
DISTNAME= setup-3.4.1
PKGREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= http://i.loveruby.net/archive/setup/
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.loveruby.net/en/setup.html
COMMENT= Common installer script for ruby packages
LICENSE= gnu-lgpl-v2.1
NO_BUILD= yes
DOCS_EN= doc.en/* NEWS.en Usage_en.txt README.en ChangeLog TODO
DOCS_JA= doc.ja/* NEWS.ja Usage_ja.txt README.ja
REPLACE_RUBY= setup.rb
INSTALLATION_DIRS= bin ${RUBY_DOC}/setup/ja ${RUBY_EG}/setup \
${RUBY_VENDORLIB}
PLIST_SUBST+= RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/setup.rb \
${DESTDIR}${PREFIX}/bin/${RUBY_PKGPREFIX}-setup
${INSTALL_DATA} ${WRKSRC}/setup.rb ${DESTDIR}${PREFIX}/${RUBY_VENDORLIB}
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/setup
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/setup/ja
.endfor
${INSTALL_DATA} ${WRKSRC}/sample/* ${DESTDIR}${PREFIX}/${RUBY_EG}/setup
.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"