pkgsrc/lang/ruby/Makefile
jlam b5e6ca3a7e Move code that generates a dynamic PLIST from the {pre,do,post}-install
targets and into a GENERATE_PLIST variable definition.  Remove some
unnecessary empty PLISTs as a result of properly setting GENERATE_PLIST.
2007-10-25 21:04:21 +00:00

46 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.45 2007/10/25 21:04:22 jlam Exp $
DISTNAME= # empty
PKGNAME= ruby-${RUBY_VERSION_SUFFIX}
CATEGORIES= lang ruby
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.ruby-lang.org/en/
COMMENT= Wrapper package for Ruby programming language
CONFLICTS= pkg_alternatives-[0-9]*
NO_CHECKSUM= yes
NO_CONFIGURE= yes
NO_BUILD= yes
.include "../../lang/ruby/rubyversion.mk"
DEPENDS+= ${RUBY_PKGPREFIX}-base>=${RUBY_VERSION}:../../lang/${RUBY_PKGPREFIX}-base
RUBY_COMMANDS= irb ruby
.if ${RUBY_VER} >= 18
RUBY_COMMANDS+= erb h2rb rdoc ri testrb
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
.if ${RUBY_NAME} == "ruby"
GENERATE_PLIST+= ${ECHO} "@comment This plist intentionally left empty";
.else
. for f in ${RUBY_COMMANDS}
GENERATE_PLIST+= ${ECHO} bin/${f};
. endfor
GENERATE_PLIST+= ${ECHO} man/man1/ruby.1;
.endif
do-install:
.if ${RUBY_NAME} != "ruby"
. for f in ${RUBY_COMMANDS}
${LN} -sf ${f}${RUBY_VER} ${PREFIX}/bin/${f}
. endfor
${LN} -sf ${RUBY_NAME}.1 ${PREFIX}/${PKGMANDIR}/man1/ruby.1
.endif
.include "../../mk/bsd.pkg.mk"