diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-12-12 12:53:03 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-12-12 12:53:03 +0000 |
commit | 0d3df60c24898be91b03264458423280da3d3f20 (patch) | |
tree | 58b3536eb3544ea1fa71ed7cb2522606b66751d0 /lang/ruby16-shim-ruby18 | |
parent | 090023c26f10e742096660ebe5e4e16b26843911 (diff) | |
download | ports-0d3df60c24898be91b03264458423280da3d3f20.tar.gz ports-0d3df60c24898be91b03264458423280da3d3f20.zip |
Notes
Diffstat (limited to 'lang/ruby16-shim-ruby18')
-rw-r--r-- | lang/ruby16-shim-ruby18/Makefile | 20 | ||||
-rw-r--r-- | lang/ruby16-shim-ruby18/distinfo | 2 | ||||
-rw-r--r-- | lang/ruby16-shim-ruby18/pkg-plist | 2 |
3 files changed, 22 insertions, 2 deletions
diff --git a/lang/ruby16-shim-ruby18/Makefile b/lang/ruby16-shim-ruby18/Makefile index dcc7367d0fa4..d5a6bab51f13 100644 --- a/lang/ruby16-shim-ruby18/Makefile +++ b/lang/ruby16-shim-ruby18/Makefile @@ -6,7 +6,7 @@ # PORTNAME= shim-ruby18 -PORTVERSION= 1.7.3.2002.11.10 +PORTVERSION= 1.7.3.2002.12.11 CATEGORIES= lang devel ruby MASTER_SITES= ${MASTER_SITE_RUBY} MASTER_SITE_SUBDIR= shim @@ -30,7 +30,25 @@ WRKSRC= ${WRKDIR}/shim/ruby16 IGNORE= is only for ruby 1.6, ruby ${RUBY_VER} does not need it .endif +.if ${RUBY_VER} == ${RUBY_DEFAULT_VER} +IF_DEFAULT= "" +.else +IF_DEFAULT= "@comment " +.endif + +INSTALLED_SCRIPTS= ${PREFIX}/bin/erb + +PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} \ + pre-install: ${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL +post-install: +.if ${RUBY_VER} == ${RUBY_DEFAULT_VER} + for f in ${INSTALLED_SCRIPTS}; do \ + ${LN} -f $${f}${RUBY_R} $${f}${_RUBY_SUFFIX}; \ + done +.endif + + .include <bsd.port.post.mk> diff --git a/lang/ruby16-shim-ruby18/distinfo b/lang/ruby16-shim-ruby18/distinfo index 5398c13066a9..a39230c5c5a0 100644 --- a/lang/ruby16-shim-ruby18/distinfo +++ b/lang/ruby16-shim-ruby18/distinfo @@ -1 +1 @@ -MD5 (ruby/shim-ruby16_18-1.7.3.2002.11.10.tar.bz2) = 04ff91afa6db0b33153b871d64bbb453 +MD5 (ruby/shim-ruby16_18-1.7.3.2002.12.11.tar.bz2) = 66b2e02c5d64b4c684d0e0ff39039d65 diff --git a/lang/ruby16-shim-ruby18/pkg-plist b/lang/ruby16-shim-ruby18/pkg-plist index b3234ef33adf..00e950195a68 100644 --- a/lang/ruby16-shim-ruby18/pkg-plist +++ b/lang/ruby16-shim-ruby18/pkg-plist @@ -1,3 +1,5 @@ +%%IF_DEFAULT%%bin/erb%%RUBY_R%% +bin/erb%%_RUBY_SUFFIX%% @comment features/ruby18 %%RUBY_SITEARCHLIBDIR%%/features/ruby18/file_ruby18.so %%RUBY_SITEARCHLIBDIR%%/features/ruby18/io_ruby18.so |