diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2008-04-06 08:58:21 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2008-04-06 08:58:21 +0000 |
commit | fae8e0f615b1dfcff35249a7a11ebfba7391bc56 (patch) | |
tree | cbba292aa57c0d2e7bb423ca0366362b198eec85 /textproc/rubygem-syntax/Makefile | |
parent | 090dbb7b77d15ec9d072089f51c17e73d6e22f59 (diff) |
Notes
Diffstat (limited to 'textproc/rubygem-syntax/Makefile')
-rw-r--r-- | textproc/rubygem-syntax/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/rubygem-syntax/Makefile b/textproc/rubygem-syntax/Makefile index cc263b117951..6a0376b5055b 100644 --- a/textproc/rubygem-syntax/Makefile +++ b/textproc/rubygem-syntax/Makefile @@ -14,14 +14,18 @@ PKGNAMEPREFIX= rubygem- MAINTAINER= dinoex@FreeBSD.org COMMENT= A module for using Systax highlighting in Ruby +USE_RUBY= yes + .include <bsd.port.pre.mk> #.include "${PORTSDIR}/devel/ruby-gems/Makefile.common" # syntax.gem has invalid content, we need to buuild the gem ourself +.if ${RUBY_VER} == 1.8 BUILD_DEPENDS+= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems RUN_DEPENDS+= ${BUILD_DEPENDS} +.endif -REV= 1.8 +REV= ${RUBY_VER} GEMS_BASE_DIR= lib/ruby/gems/${REV} GEMS_DIR= ${GEMS_BASE_DIR}/gems DOC_DIR= ${GEMS_BASE_DIR}/doc @@ -48,7 +52,7 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}" \ GEM_CACHE="${GEM_CACHE}" \ EXTRACT_SUFX="${EXTRACT_SUFX}" -RUBYGEMBIN= ${LOCALBASE}/bin/gem18 +RUBYGEMBIN= ${LOCALBASE}/bin/gem${RUBY_VER:S/.//} do-build: cd ${WRKSRC} && ${RUBYGEMBIN} build syntax.gemspec |