2008-03-04 17:38:11 +01:00
|
|
|
# $NetBSD: Makefile,v 1.46 2008/03/04 16:38:13 jlam Exp $
|
1999-07-09 07:43:37 +02:00
|
|
|
|
2007-09-09 16:20:26 +02:00
|
|
|
DISTNAME= # empty
|
|
|
|
PKGNAME= ruby-${RUBY_VERSION_SUFFIX}
|
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]*
|
2008-03-04 17:38:11 +01:00
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-11-27 16:02:10 +01:00
|
|
|
NO_CHECKSUM= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= yes
|
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
|
|
|
|
2007-10-25 23:04:21 +02:00
|
|
|
.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
|
|
|
|
|
2001-06-30 16:30:02 +02:00
|
|
|
do-install:
|
2004-11-27 16:02:10 +01:00
|
|
|
.if ${RUBY_NAME} != "ruby"
|
2007-10-25 23:04:21 +02:00
|
|
|
. for f in ${RUBY_COMMANDS}
|
2008-03-04 17:38:11 +01:00
|
|
|
${LN} -sf ${f}${RUBY_VER} ${DESTDIR}${PREFIX}/bin/${f}
|
2007-10-25 23:04:21 +02:00
|
|
|
. endfor
|
2008-03-04 17:38:11 +01:00
|
|
|
${LN} -sf ${RUBY_NAME}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ruby.1
|
2004-11-27 16:02:10 +01:00
|
|
|
.endif
|
1999-07-09 07:43:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|