summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-02-18 06:28:46 +0000
committertaca <taca@pkgsrc.org>2012-02-18 06:28:46 +0000
commit8f52a180cb5db92ec7af6301fcc23848edd43fd3 (patch)
tree0128dde66e8c9cbb7dda3cae31cf6215d42bbbac /lang
parent916acfed3918658d0c7a900a919f7d821cf0d82a (diff)
downloadpkgsrc-8f52a180cb5db92ec7af6301fcc23848edd43fd3.tar.gz
o Document RUBY_EXTNAME
o Define default PKGNAME for Ruby extensions which included in the Ruby's distribution file.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/ruby/Makefile.common b/lang/ruby/Makefile.common
index 46de3a77a45..82972a08ba5 100644
--- a/lang/ruby/Makefile.common
+++ b/lang/ruby/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.25 2012/02/18 06:24:21 taca Exp $
+# $NetBSD: Makefile.common,v 1.26 2012/02/18 06:28:46 taca Exp $
#
# Ruby base distribution common definition
# used by databases/ruby-gdbm/Makefile
@@ -14,6 +14,11 @@
# used by lang/ruby193-base/Makefile
# used by textproc/ruby-psych/Makefile
# used by x11/ruby-tk/Makefile
+#
+# RUBY_EXTNAME
+# RUBY_EXTNAME defines name of extension which included in
+# the Ruby's distribution file.
+#
# Ruby's license
.if ${RUBY_VER} == "18" || ${RUBY_VER} == "19"
@@ -65,6 +70,7 @@ PLIST_SUBST+= RUBY_SHLIBVER=${RUBY_SHLIBVER:Q} \
DIST_SUBDIR= ruby193-base-201202170
.endif
+PKGNAME?= ${RUBY_PKGPREFIX}-${RUBY_EXTNAME}-${RUBY_VERSION_FULL}
DISTINFO_FILE= ${.CURDIR}/../../lang/${RUBY_BASE}/distinfo
PATCHDIR= ${.CURDIR}/../../lang/${RUBY_BASE}/patches
do-patch: