diff options
author | taca <taca@pkgsrc.org> | 2011-02-21 15:00:34 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2011-02-21 15:00:34 +0000 |
commit | 7d3c1050fbfc82c33dd294e97435e771636e4e3c (patch) | |
tree | 574b943b9f46614703135768633bec0de40c39b9 /lang/ruby | |
parent | 39078d1651ebf5f045227ebb12f5c0e0f1caabd4 (diff) | |
download | pkgsrc-7d3c1050fbfc82c33dd294e97435e771636e4e3c.tar.gz |
Introduce RUBY_ABI_VERSION and use it BUILDLINK_ABI_DEPENDS.
There are ABI incompatibility amaong Ruby 1.8.7 patchlevel 302, 330 and 334,
So it would be handle if such problem in future.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/buildlink3.mk | 4 | ||||
-rw-r--r-- | lang/ruby/rubyversion.mk | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lang/ruby/buildlink3.mk b/lang/ruby/buildlink3.mk index 3c0c9121ca3..8e7b49429c2 100644 --- a/lang/ruby/buildlink3.mk +++ b/lang/ruby/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.12 2010/09/10 03:20:31 taca Exp $ +# $NetBSD: buildlink3.mk,v 1.13 2011/02/21 15:00:34 taca Exp $ BUILDLINK_TREE+= ${RUBY_BASE} @@ -10,7 +10,7 @@ RUBY_BUILDLINK3_MK:= .endif BUILDLINK_API_DEPENDS.${RUBY_BASE}?= ${RUBY_BASE}>=${RUBY_REQD} -BUILDLINK_ABI_DEPENDS.${RUBY_BASE}?= ${RUBY_BASE}>=${RUBY_API_VERSION} +BUILDLINK_ABI_DEPENDS.${RUBY_BASE}?= ${RUBY_BASE}>=${RUBY_ABI_VERSION} BUILDLINK_PKGSRCDIR.${RUBY_BASE}?= ../../lang/${RUBY_BASE} BUILDLINK_FILES.${RUBY_BASE}+= lib/libruby${RUBY_VER}.* BUILDLINK_FILES.${RUBY_BASE}+= lib/ruby/${RUBY_VER_DIR}/${RUBY_ARCH}/*.h diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk index 1f55cdfd327..d42e29f6aa6 100644 --- a/lang/ruby/rubyversion.mk +++ b/lang/ruby/rubyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubyversion.mk,v 1.58 2011/02/21 14:31:06 taca Exp $ +# $NetBSD: rubyversion.mk,v 1.59 2011/02/21 15:00:34 taca Exp $ # .if !defined(_RUBYVERSION_MK) @@ -14,7 +14,7 @@ RUBY19_VERSION= 1.9.2 RUBY18_PATCHLEVEL= pl334 RUBY19_PATCHLEVEL= pl180 -# current API compatible version. +# current API compatible version; used for version of shared library RUBY18_API_VERSION= 1.8.7 RUBY19_API_VERSION= 1.9.1 @@ -54,9 +54,11 @@ RUBY_PATCH_LEVEL= ${RUBY${RUBY_VER}_PATCHLEVEL} .if ${RUBY_VERSION} == ${RUBY18_VERSION} RUBY_API_VERSION= ${RUBY18_API_VERSION} RUBY_VERSION_SUFFIX= ${RUBY_VERSION}${RUBY_PATCH_LEVEL:S/pl/./} +RUBY_ABI_VERSION= ${RUBY_VERSION_SUFFIX} .elif ${RUBY_VERSION} == ${RUBY19_VERSION} RUBY_API_VERSION= ${RUBY19_API_VERSION} RUBY_VERSION_SUFFIX= ${RUBY_VERSION}${RUBY_PATCH_LEVEL} +RUBY_ABI_VERSION= ${RUBY19_API_VERSION} .endif # RUBY_VERSION_SUPPORTED defines the list of ${RUBY_VER} which is |