2007-03-15 17:41:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.43 2007/03/15 16:41:01 taca Exp $
|
1999-07-09 07:43:37 +02:00
|
|
|
|
2007-03-15 17:41:01 +01:00
|
|
|
DISTNAME= ruby-${RUBY_VERSION}
|
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
|
|
|
|
2005-11-02 10:00:44 +01:00
|
|
|
CONFLICTS= pkg_alternatives-[0-9]*
|
2004-11-27 16:02:10 +01:00
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= 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-07-19 12:01:15 +02:00
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-base>=${RUBY_VERSION}:../../lang/${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
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2005-06-16 08:57:37 +02:00
|
|
|
|
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}
|
2005-06-17 06:49:45 +02:00
|
|
|
${LN} -sf ${f}${RUBY_VER} ${PREFIX}/bin/${f}
|
2005-03-06 14:05:38 +01:00
|
|
|
${ECHO} bin/${f} >> ${PLIST_SRC}
|
2004-11-27 16:02:10 +01:00
|
|
|
.endfor
|
2007-01-07 10:13:46 +01:00
|
|
|
${LN} -sf ${RUBY_NAME}.1 ${PREFIX}/${PKGMANDIR}/man1/ruby.1
|
2004-11-27 16:02:10 +01:00
|
|
|
${ECHO} man/man1/ruby.1 >> ${PLIST_SRC}
|
|
|
|
.endif
|
1999-07-09 07:43:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|