svn commit: r467412 - in head/devel: . rubygem-manpages rubygem-manpages/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Apr 15 20:02:22 UTC 2018
Author: sunpoet
Date: Sun Apr 15 20:02:19 2018
New Revision: 467412
URL: https://svnweb.freebsd.org/changeset/ports/467412
Log:
Add rubygem-manpages 0.6.1
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.
WWW: https://github.com/bitboxer/manpages
Added:
head/devel/rubygem-manpages/
head/devel/rubygem-manpages/Makefile (contents, props changed)
head/devel/rubygem-manpages/distinfo (contents, props changed)
head/devel/rubygem-manpages/files/
head/devel/rubygem-manpages/files/patch-lib-manpages-install.rb (contents, props changed)
head/devel/rubygem-manpages/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sun Apr 15 20:02:13 2018 (r467411)
+++ head/devel/Makefile Sun Apr 15 20:02:19 2018 (r467412)
@@ -5616,6 +5616,7 @@
SUBDIR += rubygem-lru_redux
SUBDIR += rubygem-lumberjack
SUBDIR += rubygem-main
+ SUBDIR += rubygem-manpages
SUBDIR += rubygem-map
SUBDIR += rubygem-marcel
SUBDIR += rubygem-memoist
Added: head/devel/rubygem-manpages/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-manpages/Makefile Sun Apr 15 20:02:19 2018 (r467412)
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= manpages
+PORTVERSION= 0.6.1
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Detect man pages within gems and exposes them to the man command
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem shebangfix
+
+SHEBANG_FILES= rbenv/rbenv_hook_install.sh \
+ rbenv/remove_hook_folders.sh
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/share/man|/man|' \
+ ${WRKSRC}/README.md \
+ ${WRKSRC}/lib/rubygems/commands/manpages_command.rb \
+ ${WRKSRC}/lib/rubygems_plugin.rb \
+ ${WRKSRC}/rbenv/hooks/version-name-change-man.bash \
+ ${WRKSRC}/rbenv/vars.sh
+
+.include <bsd.port.mk>
Added: head/devel/rubygem-manpages/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-manpages/distinfo Sun Apr 15 20:02:19 2018 (r467412)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1523459153
+SHA256 (rubygem/manpages-0.6.1.gem) = cdbad16823c8510c15a93d4cdbd46e7b4290aff8b10f3d4b70caa8e62c8de686
+SIZE (rubygem/manpages-0.6.1.gem) = 14848
Added: head/devel/rubygem-manpages/files/patch-lib-manpages-install.rb
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-manpages/files/patch-lib-manpages-install.rb Sun Apr 15 20:02:19 2018 (r467412)
@@ -0,0 +1,17 @@
+--- lib/manpages/install.rb.orig 2018-04-11 18:58:24 UTC
++++ lib/manpages/install.rb
+@@ -1,4 +1,5 @@
+ require "fileutils"
++require "pathname"
+
+ module Manpages
+ class Install
+@@ -26,7 +27,7 @@ module Manpages
+
+ begin
+ FileUtils.mkdir_p(man_target_file.dirname)
+- FileUtils.ln_s(file, man_target_file, force: true)
++ FileUtils.ln_s(file.relative_path_from(man_target_file.dirname), man_target_file, force: true)
+ rescue
+ puts "Problems creating symlink #{man_target_file}"
+ end
Added: head/devel/rubygem-manpages/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-manpages/pkg-descr Sun Apr 15 20:02:19 2018 (r467412)
@@ -0,0 +1,5 @@
+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.
+
+WWW: https://github.com/bitboxer/manpages
More information about the svn-ports-head
mailing list