diff options
author | taca <taca@pkgsrc.org> | 2005-10-16 15:09:01 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2005-10-16 15:09:01 +0000 |
commit | 1ea4b5f2cb22c08d15ead7f5f879181e4799d553 (patch) | |
tree | ec556835bfbe96c5fd08f8bb8a03a87a44a7e278 | |
parent | 5f9f3ecaf8ec9704f939da094e215272be085cc8 (diff) | |
download | pkgsrc-1ea4b5f2cb22c08d15ead7f5f879181e4799d553.tar.gz |
Don't set to DIST_SUBDIR to ruby here.
o Change DIST_SUBDIR handling; introduce USE_RUBY_DIST_SUBDIR and set
DIST_SUBDIR if USE_RUBY_DIST_SUBDIR is defined to /[yY][eE][sS]/.
o Add more macros to replace in FILES_SUBST, MESSAGE_SUBST and PLIST_SUBST.
-rw-r--r-- | lang/ruby/rubyversion.mk | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk index 73b181048ef..a82113a7879 100644 --- a/lang/ruby/rubyversion.mk +++ b/lang/ruby/rubyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubyversion.mk,v 1.13 2005/09/11 15:54:22 taca Exp $ +# $NetBSD: rubyversion.mk,v 1.14 2005/10/16 15:09:01 taca Exp $ # .ifndef _RUBYVERSION_MK @@ -183,15 +183,11 @@ RUBY_DOCDIR?= ${LOCALBASE}/share/doc/${RUBY_NAME} RUBY_EXAMPLESDIR?= ${LOCALBASE}/share/examples/${RUBY_NAME} # -# make ruby based packages' distfiles to one place. +# set ruby reletaed package to common DIST_SUBDIR # -RUBY_DIST_SUBDIR?= ruby - -# -# make ruby reletaed package to common DIST_SUBDIR -# -.if !empty(RUBY_DIST_SUBDIR) -DIST_SUBDIR?= ${RUBY_DIST_SUBDIR} +_RUBY_DIST_SUBDIR?= ruby +.if defined(USE_RUBY_DIST_SUBDIR) && !empty(USE_RUBY_DIST_SUBDIR:M[yY][eE][sS]) +DIST_SUBDIR?= ${_RUBY_DIST_SUBDIR} .endif # @@ -211,12 +207,18 @@ PLIST_RUBY_DIRS= RUBY_LIBDIR="${RUBY_LIBDIR}" \ RUBY_EXAMPLESDIR="${RUBY_EXAMPLESDIR}" \ RUBY_DLEXT="${RUBY_DLEXT}" -PLIST_SUBST+= RUBY_VER="${RUBY_VER}" \ +# +# substitutions +# +FILES_SUBST+= RUBY_NAME="${RUBY_NAME}" RUBY_VER="${RUBY_VER}" + +MESSAGE_SUBST+= RUBY_VER="${RUBY_VER}" \ RUBY_VERSION="${RUBY_VERSION}" \ - RUBY_VER_DIR="${RUBY_VER_DIR}" \ ${PLIST_RUBY_DIRS:S,DIR="${LOCALBASE}/,DIR=",} -MESSAGE_SUBST+= RUBY_VER="${RUBY_VER}" \ + +PLIST_SUBST+= RUBY_VER="${RUBY_VER}" \ RUBY_VERSION="${RUBY_VERSION}" \ + RUBY_VER_DIR="${RUBY_VER_DIR}" \ ${PLIST_RUBY_DIRS:S,DIR="${LOCALBASE}/,DIR=",} .endif # _RUBY_MK |