pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc/ruby-manpages



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat Dec 31 16:20:40 UTC 2022

Modified Files:
        pkgsrc/misc/ruby-manpages: Makefile distinfo
Added Files:
        pkgsrc/misc/ruby-manpages/patches: patch-lib_manpages_man__files.rb

Log Message:
misc/ruby-manpages: more better adaptation with pkg_alternatives

* Take maintainer ship.
* More better adaptation with pkg_alternatices; install manual pages
  with ${RUBY_VER} as like commands.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/misc/ruby-manpages/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/ruby-manpages/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/ruby-manpages/patches/patch-lib_manpages_man__files.rb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/ruby-manpages/Makefile
diff -u pkgsrc/misc/ruby-manpages/Makefile:1.3 pkgsrc/misc/ruby-manpages/Makefile:1.4
--- pkgsrc/misc/ruby-manpages/Makefile:1.3      Thu Dec 29 16:21:35 2022
+++ pkgsrc/misc/ruby-manpages/Makefile  Sat Dec 31 16:20:39 2022
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.3 2022/12/29 16:21:35 taca Exp $
+# $NetBSD: Makefile,v 1.4 2022/12/31 16:20:39 taca Exp $
 
 DISTNAME=      manpages-0.6.1
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    misc
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+MAINTAINER=    taca%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/bitboxer/manpages
 COMMENT=       Adds support for man pages to rubygems
 LICENSE=       mit

Index: pkgsrc/misc/ruby-manpages/distinfo
diff -u pkgsrc/misc/ruby-manpages/distinfo:1.2 pkgsrc/misc/ruby-manpages/distinfo:1.3
--- pkgsrc/misc/ruby-manpages/distinfo:1.2      Thu Dec 29 16:21:35 2022
+++ pkgsrc/misc/ruby-manpages/distinfo  Sat Dec 31 16:20:39 2022
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.2 2022/12/29 16:21:35 taca Exp $
+$NetBSD: distinfo,v 1.3 2022/12/31 16:20:39 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_manpages_install.rb) = cb490bc69237aa8d2bbcae1f314c644f2bf09d0e
+SHA1 (patch-lib_manpages_man__files.rb) = 55757e60d132a876bcbad0fe94256522867cdafd
 SHA1 (patch-lib_rubygems__plugin.rb) = fe8e5bf91c42caf9a19f4f4658f6fa16a6e99f7c
 SHA1 (patch-lib_rubygems_commands_manpages__command.rb) = a4ab65190a9ef1bab7805d2eb76f39dd97743937

Added files:

Index: pkgsrc/misc/ruby-manpages/patches/patch-lib_manpages_man__files.rb
diff -u /dev/null pkgsrc/misc/ruby-manpages/patches/patch-lib_manpages_man__files.rb:1.1
--- /dev/null   Sat Dec 31 16:20:40 2022
+++ pkgsrc/misc/ruby-manpages/patches/patch-lib_manpages_man__files.rb  Sat Dec 31 16:20:39 2022
@@ -0,0 +1,27 @@
+$NetBSD: patch-lib_manpages_man__files.rb,v 1.1 2022/12/31 16:20:39 taca Exp $
+
+* Install manual page with RUBY_VER style.
+
+--- lib/manpages/man_files.rb.orig     2022-12-30 09:50:10.725925400 +0000
++++ lib/manpages/man_files.rb
+@@ -1,7 +1,9 @@
+ require "pathname"
++require "rbconfig"
+ 
+ module Manpages
+   class ManFiles
++    RUBY_VER = RbConfig::CONFIG["MAJOR"] + RbConfig::CONFIG["MINOR"]
+     attr_reader :man_dir
+ 
+     def initialize(gem_dir, target_dir = "")
+@@ -23,7 +25,9 @@ module Manpages
+ 
+     def man_file_path(file)
+       man_section = file.extname.match(/\.(\d*)/)
+-      @target_dir.join("man#{man_section[1]}", file.basename)
++      suffix = ".#{man_section[1]}"
++      name = file.basename(suffix).to_s + RUBY_VER + suffix
++      @target_dir.join("man#{man_section[1]}", name)
+     end
+   end
+ end



Home | Main Index | Thread Index | Old Index