summaryrefslogtreecommitdiffstats
path: root/lang/ruby_static
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-06-04 14:54:32 +0000
committerknu <knu@FreeBSD.org>2001-06-04 14:54:32 +0000
commitd2fda4d75090d760c7e0d70fbfafc92df31a93f2 (patch)
tree267720349b21325ef72b9234bbff8c0ae4856769 /lang/ruby_static
parent50d74821005e5cf938004c9705e327165a03f9a2 (diff)
downloadFreeBSD-ports-d2fda4d75090d760c7e0d70fbfafc92df31a93f2.zip
FreeBSD-ports-d2fda4d75090d760c7e0d70fbfafc92df31a93f2.tar.gz
Introduce RUBY_DEFALUT_VER to choose a default version of ruby to use.
Introduce RUBY_R in preparation for ruby_r & ruby_r-devel ports. Define RUBY_CONFIGURE_ARGS.
Diffstat (limited to 'lang/ruby_static')
-rw-r--r--lang/ruby_static/Makefile13
-rw-r--r--lang/ruby_static/pkg-plist2
2 files changed, 12 insertions, 3 deletions
diff --git a/lang/ruby_static/Makefile b/lang/ruby_static/Makefile
index be92b26..285cc73 100644
--- a/lang/ruby_static/Makefile
+++ b/lang/ruby_static/Makefile
@@ -41,9 +41,16 @@ CONFIGURE_ENV= XLDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS!= cd ${_RUBY_PORTDIR} && ${MAKE} -V CONFIGURE_ARGS
CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-shared:M-*} \
--with-static-linked-ext=yes \
- --with-libc_r=no \
--with-opt-dir="${LOCALBASE}"
+.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
+IF_DEFAULT= ""
+.else
+IF_DEFAULT= "@comment "
+.endif
+
+PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT}
+
do-fetch:
@${DO_NADA}
@@ -65,6 +72,8 @@ do-extract:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY_WITH_SUFFIX}_s
- ${LN} -fs ${RUBY_WITH_SUFFIX}_s ${RUBY_WITHOUT_SUFFIX}_s
+.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
+ ${LN} -fs ruby${_RUBY_SUFFIX}_s ${RUBY_WITHOUT_SUFFIX}_s
+.endif
.include <bsd.port.post.mk>
diff --git a/lang/ruby_static/pkg-plist b/lang/ruby_static/pkg-plist
index d631781..e8e4eb3 100644
--- a/lang/ruby_static/pkg-plist
+++ b/lang/ruby_static/pkg-plist
@@ -1,2 +1,2 @@
-bin/ruby_s
+%%IF_DEFAULT%%bin/ruby_s
bin/ruby%%_RUBY_SUFFIX%%_s
OpenPOWER on IntegriCloud