diff options
author | knu <knu@FreeBSD.org> | 2000-09-07 06:40:09 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-09-07 06:40:09 +0800 |
commit | 44efb98e71dd05a2a4939c39ede9993e0fcc11b3 (patch) | |
tree | a9b1ddf30b91deb2a8230607b4a09be9e216a121 /Mk | |
parent | 568c1e4f8c473501357084922ab7d496f0a9bc96 (diff) | |
download | freebsd-ports-gnome-44efb98e71dd05a2a4939c39ede9993e0fcc11b3.tar.gz freebsd-ports-gnome-44efb98e71dd05a2a4939c39ede9993e0fcc11b3.tar.zst freebsd-ports-gnome-44efb98e71dd05a2a4939c39ede9993e0fcc11b3.zip |
Add _RUBY_SUFFIX, which is always set to "${RUBY_VER:S/.//}".
Allow users to override RUBY_VERSION and RUBY_SUFFIX.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index 0d5b8dcdafd8..bffd05c3f157 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -10,7 +10,7 @@ Ruby_Include= bsd.ruby.mk Ruby_Include_MAINTAINER= knu@FreeBSD.org # -# [User variables] +# [variables that each port can define] # # RUBY_VER - Set to the alternative short version of ruby (see below for current value). # USE_RUBY - Says that the port uses ruby for building and running. @@ -23,13 +23,14 @@ Ruby_Include_MAINTAINER= knu@FreeBSD.org # USE_RUBY_AMSTD - Says that the port uses amstd for building and running. # USE_RUBY_RD - Says that the port uses rd to generate documents. # -# [Non-user variables] +# [variables that each port should not define] # # RUBY_PKGNAMEPREFIX - Common PKGNAMEPREFIX for ruby ports (default: ruby${RUBY_SUFFIX}-) # RUBY_VERSION - Full version of ruby (see below for current value). # RUBY_SHLIBVER - Major version of libruby (see below for current value). # RUBY_ARCH - Directory name of architecture dependent libraries. # RUBY_SUFFIX - Suffix for ruby binaries and directories. +# _RUBY_SUFFIX - String to be used as RUBY_SUFFIX. Always ${RUBY_VER:S/.//}. # RUBY_NAME - Ruby's name with trailing suffix. # # RUBY - Set to full path of ruby. @@ -53,18 +54,19 @@ Ruby_Include_MAINTAINER= knu@FreeBSD.org # RUBY_VER?= 1.6 +_RUBY_SUFFIX= ${RUBY_VER:S/.//} .if ${RUBY_VER} == 1.4 -RUBY_VERSION= 1.4.6 -RUBY_SUFFIX= ${RUBY_VER:S/.//} +RUBY_VERSION?= 1.4.6 +RUBY_SUFFIX?= ${_RUBY_SUFFIX} .else -RUBY_VERSION= 1.6.0 -RUBY_SUFFIX= # empty +RUBY_VERSION?= 1.6.0 +RUBY_SUFFIX?= # empty .endif RUBY_PKGNAMEPREFIX?= ruby${RUBY_SUFFIX}- # could be rb${RUBY_SUFFIX}- RUBY_VER= ${RUBY_VERSION:R} -RUBY_SHLIBVER?= ${RUBY_VER:S/.//} +RUBY_SHLIBVER?= ${_RUBY_SUFFIX} RUBY_ARCH?= ${ARCH}-freebsd${OSREL} RUBY_NAME?= ruby${RUBY_SUFFIX} @@ -103,6 +105,7 @@ PLIST_SUB+= RUBY_VERSION="${RUBY_VERSION}" \ RUBY_VER="${RUBY_VER}" \ RUBY_SHLIBVER="${RUBY_SHLIBVER}" \ RUBY_ARCH="${RUBY_ARCH}" \ + _RUBY_SUFFIX="${_RUBY_SUFFIX}" \ RUBY_SUFFIX="${RUBY_SUFFIX}" \ RUBY_NAME="${RUBY_NAME}" \ ${PLIST_RUBY_DIRS:S,DIR="${LOCALBASE}/,DIR=",} |