pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby lang/ruby/gem.mk: fix handlingo of RUBYGEM_M...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6239c42951b3
branches: trunk
changeset: 390483:6239c42951b3
user: taca <taca%pkgsrc.org@localhost>
date: Tue Dec 20 02:53:10 2022 +0000
description:
lang/ruby/gem.mk: fix handlingo of RUBYGEM_MANPAGES
Globael setting for RUBYGEM_MANPAGES is also required.
diffstat:
lang/ruby/gem.mk | 27 +++++++++++++++++++--------
1 files changed, 19 insertions(+), 8 deletions(-)
diffs (60 lines):
diff -r 512cea59bff0 -r 6239c42951b3 lang/ruby/gem.mk
--- a/lang/ruby/gem.mk Tue Dec 20 00:32:35 2022 +0000
+++ b/lang/ruby/gem.mk Tue Dec 20 02:53:10 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gem.mk,v 1.50 2022/12/18 14:52:08 taca Exp $
+# $NetBSD: gem.mk,v 1.51 2022/12/20 02:53:10 taca Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -10,6 +10,12 @@
# Possible values: Yes No
# Default: No
#
+# RUBYGEM_USE_MANPAGES
+# Enable man pages support to ruby gem.
+#
+# Possible values: Yes No
+# Default: Yes
+#
# === Package-settable variables ===
#
# OVERRIDE_GEMSPEC
@@ -110,7 +116,7 @@
# Optional parameter to pass to gem on install stage.
#
# RUBYGEM_MANPAGES
-# Add man pages support to ruby gem. This is user-settable.
+# Add man pages support to ruby gem.
#
# Possible values: Yes No
# Default: No
@@ -164,17 +170,22 @@
#
# Handling of ruby-manpages plugin.
#
+RUBYGEM_USE_MANPAGES?= yes
RUBYGEM_MANPAGES?= no
PLIST_VARS+= rubygem_man
-.if ${RUBYGEM_MANPAGES:tl} == "no"
-RUBY_MANPAGES_INSTALLED!= ${PKG_INFO} -e ${RUBY_PKGPREFIX}-manpages || ${TRUE}
-. if ${RUBY_MANPAGES_INSTALLED}
-PKG_SKIP_REASON+= "Please uninstall ${RUBY_PKGPREFIX}-manpages or set RUBYGEM_MANPAGES to yes."
+.if ${RUBYGEM_USE_MANPAGES:tl} == "yes"
+. if ${RUBYGEM_MANPAGES:tl} == "yes"
+BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-manpages>=0.6.1:../../misc/ruby-manpages
+PLIST.rubygem_man= yes
. endif
.else
-BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-manpages>=0.6.1:../../misc/ruby-manpages
-PLIST.rubygem_man= yes
+. if ${RUBYGEM_MANPAGES:tl} == "yes"
+RUBY_MANPAGES_INSTALLED!= ${PKG_INFO} -e ${RUBY_PKGPREFIX}-manpages || ${TRUE}
+. if ${RUBY_MANPAGES_INSTALLED}
+PKG_SKIP_REASON+= "Please uninstall ${RUBY_PKGPREFIX}-manpages or set RUBYGEM_USE_MANPAGES to yes."
+. endif
+. endif
.endif
# If any of the DISTFILES are gems, then skip the normal do-extract actions
Home |
Main Index |
Thread Index |
Old Index