summaryrefslogtreecommitdiff
path: root/lang/ruby
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2013-10-28 14:26:59 +0000
committertaca <taca@pkgsrc.org>2013-10-28 14:26:59 +0000
commitaa3fb43b967cfd940e14129d4706efbc5182e38e (patch)
treecdb9444b9331e28f491bf612a22f61fc8f56e22c /lang/ruby
parenta97643256f01a39efbe6ec92cb57e9329435e719 (diff)
downloadpkgsrc-aa3fb43b967cfd940e14129d4706efbc5182e38e.tar.gz
Fix build problem on some platforms; FreeBSD and MirBSD.
For FreeBSD: * Fix careless mistake of patch to configure. For MirBSD (and possibly OpenBSD): * Don't pass empy string (before semicolon to sed(1). * Correct suffix for libruby's shared library. No PKGREVISION bump since this is simply fix for build problem.
Diffstat (limited to 'lang/ruby')
-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 0e58ca8ddac..bd7a10f10e1 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.101 2013/07/21 02:27:45 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.102 2013/10/28 14:26:59 taca Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -338,7 +338,11 @@ RUBY_SHLIBVER= ${RUBY_VER}
RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
.endif
.elif ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
+.if ${_RUBY_VER_MINOR} == 0
+RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_API_MINOR}
+.else
RUBY_SHLIBVER= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}${_RUBY_API_MINOR}
+.endif
.elif ${OPSYS} == "Darwin"
RUBY_SHLIB= ${RUBY_VER}.${RUBY_SHLIBVER}.${RUBY_SLEXT}
.if ${RUBY_VER} == "18"