ruby-power_assert: skip the package if the version is same as ruby-base avoids this error in bulk builds: => Creating binary package .../packages/ruby31-power_assert-2.0.1.tgz pkg_add: Conflicting PLIST with ruby31-base-3.1.2nb3: lib/ruby/gems/3.1.0/cache/power_assert-2.0.1.gemdiff -r1.23 -r1.24 pkgsrc/devel/ruby-power_assert/Makefile
(tnn)
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2021/08/31 15:12:12 taca Exp $
+# $NetBSD: Makefile,v 1.24 2022/08/19 14:16:47 tnn Exp $
DISTNAME= power_assert-2.0.1
CATEGORIES= devel
@@ -9,6 +9,12 @@
LICENSE= 2-clause-bsd
USE_LANGUAGES= # none
+
+.include "../../lang/ruby/rubyversion.mk"
+
+.if "power_assert-${RUBY_POWER_ASSERT_VER}" == ${DISTNAME}
+PKG_SKIP_REASON+= "${DISTNAME} is included in ${RUBY_BASE}"
+.endif
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"