2005-06-16 08:57:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.35 2005/06/16 06:58:01 jlam Exp $
|
1999-07-09 07:43:37 +02:00
|
|
|
|
2001-06-30 16:30:02 +02:00
|
|
|
DISTNAME= ruby-${RUBY_VERSION}
|
2005-03-06 17:46:05 +01:00
|
|
|
PKGREVISION= 2
|
2004-03-16 03:01:09 +01:00
|
|
|
CATEGORIES= lang ruby
|
2001-06-30 16:30:02 +02:00
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
1999-07-09 07:43:37 +02:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= taca@NetBSD.org
|
2001-06-30 16:30:02 +02:00
|
|
|
HOMEPAGE= http://www.ruby-lang.org/en/
|
2005-03-06 17:46:05 +01:00
|
|
|
COMMENT= Wrapper package for Ruby programming language
|
1999-07-09 07:43:37 +02:00
|
|
|
|
2004-11-27 16:02:10 +01:00
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRAPPER= yes
|
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
1999-07-09 07:43:37 +02:00
|
|
|
|
2004-11-27 16:02:10 +01:00
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
2002-01-22 18:16:03 +01:00
|
|
|
|
2005-03-06 17:46:05 +01:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-base>=${RUBY_VERSION}:../${RUBY_PKGPREFIX}-base
|
2004-11-27 16:02:10 +01:00
|
|
|
|
|
|
|
RUBY_COMMANDS= irb ruby
|
|
|
|
.if ${RUBY_VER} >= 18
|
2005-02-21 16:35:53 +01:00
|
|
|
RUBY_COMMANDS+= erb h2rb rdoc ri testrb
|
2004-11-27 16:02:10 +01:00
|
|
|
.endif
|
2000-01-22 14:31:44 +01:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin man/man1
|
|
|
|
|
2001-06-30 16:30:02 +02:00
|
|
|
do-install:
|
2004-11-27 16:02:10 +01:00
|
|
|
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
|
|
|
|
.if ${RUBY_NAME} != "ruby"
|
2005-03-06 14:05:38 +01:00
|
|
|
.for f in ${RUBY_COMMANDS}
|
|
|
|
${LN} -sf ${f}${RUBY_VER} ${LOCALBASE}/bin/${f}
|
|
|
|
${ECHO} bin/${f} >> ${PLIST_SRC}
|
2004-11-27 16:02:10 +01:00
|
|
|
.endfor
|
|
|
|
${LN} -sf ${RUBY_NAME}.1 ${PREFIX}/man/man1/ruby.1
|
|
|
|
${ECHO} man/man1/ruby.1 >> ${PLIST_SRC}
|
|
|
|
.endif
|
1999-07-09 07:43:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|