summaryrefslogtreecommitdiff
path: root/lang/ruby/rubyversion.mk
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-03-15 08:35:24 +0000
committermarino <marino@pkgsrc.org>2012-03-15 08:35:24 +0000
commitc0bae9d51311f722c5d914f9b0d6de04d4ac27c7 (patch)
treecd1dbda71d107105806486362a260bb56f7eaee5 /lang/ruby/rubyversion.mk
parent7aa37b797030e994a67103983e5d1cf682300e13 (diff)
downloadpkgsrc-c0bae9d51311f722c5d914f9b0d6de04d4ac27c7.tar.gz
lang/ruby: Fix ruby193-base for DragonFly
The maintainers of ruby have changed the shared library naming scheme for FreeBSD and DragonFly: For ruby18, it's libruby18.so.18 (last part = RUBY_VER) For ruby19, it's libruby19.so.19 (last part = RUBY_VER) for ruby193, it's libruby193.so.191 (last part derived from API, not version) The rubyversion.mk was never updated to reflect that, and as a result ruby 1.9.3 has never built on DragonFly. This commit will allow lang/ruby193-base package to build.
Diffstat (limited to 'lang/ruby/rubyversion.mk')
-rw-r--r--lang/ruby/rubyversion.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index 1ad685ccbab..9246eaee123 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.74 2012/02/23 14:15:58 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.75 2012/03/15 08:35:24 marino Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -321,7 +321,11 @@ RUBY_STATICLIB?= ${RUBY_VER}-static.a
RUBY_SHLIBVER= ${_RUBY_API_MAJOR}.${_RUBY_API_MINOR}
_RUBY_SHLIBALIAS= ${RUBY_VER}.${RUBY_SLEXT}.${_RUBY_API_MAJOR}
.elif ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
+.if ${RUBY_VER} == "18" || ${RUBY_VER} == "19"
RUBY_SHLIBVER= ${RUBY_VER}
+.else
+RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
+.endif
.elif ${OPSYS} == "OpenBSD"
RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
.elif ${OPSYS} == "Darwin"