Received: by mail.netbsd.org (Postfix, from userid 605) id CBE8E85005; Fri, 11 Nov 2022 14:06:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 077D784FFE for ; Fri, 11 Nov 2022 14:06:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id vPth1PniOjvG for ; Fri, 11 Nov 2022 14:06:25 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 2A24E84D13 for ; Fri, 11 Nov 2022 14:06:25 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1E4F2FA90; Fri, 11 Nov 2022 14:06:25 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1668175585183110" MIME-Version: 1.0 Date: Fri, 11 Nov 2022 14:06:25 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/misc/ruby-manpages To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20221111140625.1E4F2FA90@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1668175585183110 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: taca Date: Fri Nov 11 14:06:25 UTC 2022 Added Files: pkgsrc/misc/ruby-manpages: DESCR Makefile PLIST distinfo pkgsrc/misc/ruby-manpages/patches: patch-lib_rubygems__plugin.rb patch-lib_rubygems_commands_manpages__command.rb Log Message: misc/ruby-manpages: add package version 0.6.1 Required by ruby-lolcat package. Manpages This plugin will add man pages support to ruby gems. Instead of adding a new command like gem-man it will try to link the files to a place the man command automatically discovers. With rvm and chruby it works out of the box, but sadly for rbenv we need to add hooks that modify the man symlink depending on the ruby version currently used. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/misc/ruby-manpages/DESCR \ pkgsrc/misc/ruby-manpages/Makefile pkgsrc/misc/ruby-manpages/PLIST \ pkgsrc/misc/ruby-manpages/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems__plugin.rb \ pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems_commands_manpages__command.rb Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1668175585183110 Content-Disposition: inline Content-Length: 5752 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/misc/ruby-manpages/DESCR diff -u /dev/null pkgsrc/misc/ruby-manpages/DESCR:1.1 --- /dev/null Fri Nov 11 14:06:25 2022 +++ pkgsrc/misc/ruby-manpages/DESCR Fri Nov 11 14:06:24 2022 @@ -0,0 +1,9 @@ +Manpages + +This plugin will add man pages support to ruby gems. Instead of adding a +new command like gem-man it will try to link the files to a place the man +command automatically discovers. + +With rvm and chruby it works out of the box, but sadly for rbenv we need to +add hooks that modify the man symlink depending on the ruby version +currently used. Index: pkgsrc/misc/ruby-manpages/Makefile diff -u /dev/null pkgsrc/misc/ruby-manpages/Makefile:1.1 --- /dev/null Fri Nov 11 14:06:25 2022 +++ pkgsrc/misc/ruby-manpages/Makefile Fri Nov 11 14:06:24 2022 @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1 2022/11/11 14:06:24 taca Exp $ + +DISTNAME= manpages-0.6.1 +CATEGORIES= misc + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/bitboxer/manpages +COMMENT= Adds support for man pages to rubygems +LICENSE= mit + +USE_LANGUAGES= # none + +SUBST_CLASSES+= path +SUBST_MESSAGE.path= Fixing man path. +SUBST_STAGE.path= pre-configure +SUBST_FILES.path= lib/rubygems/commands/manpages_command.rb +SUBST_FILES.path+= lib/rubygems_plugin.rb +SUBST_VARS.path+= PKGMANDIR + +.include "../../lang/ruby/gem.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/misc/ruby-manpages/PLIST diff -u /dev/null pkgsrc/misc/ruby-manpages/PLIST:1.1 --- /dev/null Fri Nov 11 14:06:25 2022 +++ pkgsrc/misc/ruby-manpages/PLIST Fri Nov 11 14:06:24 2022 @@ -0,0 +1,30 @@ +@comment $NetBSD: PLIST,v 1.1 2022/11/11 14:06:24 taca Exp $ +${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/.gitignore +${GEM_LIBDIR}/.rspec +${GEM_LIBDIR}/.rubocop.yml +${GEM_LIBDIR}/.rubocop_todo.yml +${GEM_LIBDIR}/.travis.yml +${GEM_LIBDIR}/CHANGELOG.md +${GEM_LIBDIR}/CODE_OF_CONDUCT.md +${GEM_LIBDIR}/Gemfile +${GEM_LIBDIR}/Gemfile.lock +${GEM_LIBDIR}/LICENSE +${GEM_LIBDIR}/README.md +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/lib/manpages.rb +${GEM_LIBDIR}/lib/manpages/gem_version.rb +${GEM_LIBDIR}/lib/manpages/install.rb +${GEM_LIBDIR}/lib/manpages/man_files.rb +${GEM_LIBDIR}/lib/manpages/uninstall.rb +${GEM_LIBDIR}/lib/manpages/version.rb +${GEM_LIBDIR}/lib/rubygems/commands/manpages_command.rb +${GEM_LIBDIR}/lib/rubygems_plugin.rb +${GEM_LIBDIR}/manpages.gemspec +${GEM_LIBDIR}/rbenv/hooks/install-man.bash +${GEM_LIBDIR}/rbenv/hooks/version-name-change-man.bash +${GEM_LIBDIR}/rbenv/rbenv_hook_install.sh +${GEM_LIBDIR}/rbenv/remove_hook_folders.sh +${GEM_LIBDIR}/rbenv/vars.sh +${PLIST.ruby_plugins}${GEM_PLUGINSDIR}/manpages_plugin.rb +${GEM_HOME}/specifications/${GEM_NAME}.gemspec Index: pkgsrc/misc/ruby-manpages/distinfo diff -u /dev/null pkgsrc/misc/ruby-manpages/distinfo:1.1 --- /dev/null Fri Nov 11 14:06:25 2022 +++ pkgsrc/misc/ruby-manpages/distinfo Fri Nov 11 14:06:24 2022 @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2022/11/11 14:06:24 taca Exp $ + +BLAKE2s (manpages-0.6.1.gem) = f9be6aa72e19fee514ce924206691ff49323ec1c68d1c91160244dc090eaa28b +SHA512 (manpages-0.6.1.gem) = 70839c45db9d0eeef94587853db1514842b7a7e9fed7a967c7a1e9fcfe1ae204de93e04a8bdb24c4dfe6641cef5a27d29136bc4ae6e233040d1d2aa71b077378 +Size (manpages-0.6.1.gem) = 14848 bytes +SHA1 (patch-lib_rubygems__plugin.rb) = cc70539c9eee2c77b7c7bcb0c245eb21c4476801 +SHA1 (patch-lib_rubygems_commands_manpages__command.rb) = a4ab65190a9ef1bab7805d2eb76f39dd97743937 Index: pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems__plugin.rb diff -u /dev/null pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems__plugin.rb:1.1 --- /dev/null Fri Nov 11 14:06:25 2022 +++ pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems__plugin.rb Fri Nov 11 14:06:24 2022 @@ -0,0 +1,24 @@ +$NetBSD: patch-lib_rubygems__plugin.rb,v 1.1 2022/11/11 14:06:24 taca Exp $ + +Fixate manpath. + +--- lib/rubygems_plugin.rb.orig 2022-11-08 15:03:34.185367972 +0000 ++++ lib/rubygems_plugin.rb +@@ -6,7 +6,7 @@ Gem::CommandManager.instance.register_co + + Gem.post_install do |installer| + source_dir = installer.spec.gem_dir +- target_dir = File.expand_path("#{installer.bin_dir}/../share/man") ++ target_dir = File.expand_path("#{installer.bin_dir}/../@PKGMANDIR@") + + Manpages::Install.new(installer.spec, source_dir, target_dir).install_manpages + end +@@ -14,7 +14,7 @@ end + Gem.pre_uninstall do |uninstaller| + bin_dir = uninstaller.bin_dir || Gem.bindir(uninstaller.spec.base_dir) + source_dir = uninstaller.spec.gem_dir +- target_dir = File.expand_path("#{bin_dir}/../share/man") ++ target_dir = File.expand_path("#{bin_dir}/../@PKGMANDIR@") + + Manpages::Uninstall.new(uninstaller.spec, source_dir, target_dir).uninstall_manpages + end Index: pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems_commands_manpages__command.rb diff -u /dev/null pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems_commands_manpages__command.rb:1.1 --- /dev/null Fri Nov 11 14:06:25 2022 +++ pkgsrc/misc/ruby-manpages/patches/patch-lib_rubygems_commands_manpages__command.rb Fri Nov 11 14:06:24 2022 @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_rubygems_commands_manpages__command.rb,v 1.1 2022/11/11 14:06:24 taca Exp $ + +Fixate manpath. + +--- lib/rubygems/commands/manpages_command.rb.orig 2022-11-08 15:03:34.184546225 +0000 ++++ lib/rubygems/commands/manpages_command.rb +@@ -38,7 +38,7 @@ class Gem::Commands::ManpagesCommand < G + Manpages::GemVersion.new(spec).latest? + + say "Installing man pages for #{spec.name} #{spec.version}" +- target_dir = File.expand_path("#{Gem.bindir}/../share/man") ++ target_dir = File.expand_path("#{Gem.bindir}/../@PKGMANDIR@") + Manpages::Install.new(spec, spec.gem_dir, target_dir).install_manpages + end + end --_----------=_1668175585183110--