pkgsrc/lang/ruby/Makefile
taca c2eeeac6fc lang/ruby: reset PKGREVISION
Reset PKGREVISION with updates of all ruby{26,27,30}.
2021-04-11 12:43:17 +00:00

50 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.69 2021/04/11 12:43:17 taca Exp $
DISTNAME= # empty
PKGNAME= ruby-${RUBY_VERSION}
CATEGORIES= lang ruby
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= taca@NetBSD.org
HOMEPAGE= https://www.ruby-lang.org/en/
COMMENT= Wrapper package for Ruby programming language
CONFLICTS= pkg_alternatives-[0-9]*
NO_CONFIGURE= yes
NO_BUILD= yes
.include "../../lang/ruby/rubyversion.mk"
DEPENDS+= ${RUBY_BASE}>=${RUBY_VERSION}:${RUBY_SRCDIR}
.if ${RUBY_VER} == "26"
RUBY_COMMANDS= bundle bundler erb gem irb rake rdoc ri ruby
.elif ${RUBY_VER} == "27"
RUBY_COMMANDS= bundle bundler erb gem irb racc rake racc2y rdoc ri ruby y2racc
.elif ${RUBY_VER} == "30"
RUBY_COMMANDS= bundle bundler erb gem irb racc rake rbs rdoc ri ruby typeprof
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
CHECK_INTERPRETER_SKIP= bin/* ${PKGMANDIR}/man1/ruby.1
.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_SUFFIX} ${DESTDIR}${PREFIX}/bin/${f}
. endfor
${LN} -sf ${RUBY_NAME}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ruby.1
.endif
.include "../../mk/bsd.pkg.mk"