From owner-svn-ports-head@freebsd.org Sun Apr 15 20:02:22 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52618F87DC8; Sun, 15 Apr 2018 20:02:22 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D0EA2825D5; Sun, 15 Apr 2018 20:02:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 94F11137B5; Sun, 15 Apr 2018 20:02:20 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3FK2Kem082528; Sun, 15 Apr 2018 20:02:20 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3FK2Ja6082523; Sun, 15 Apr 2018 20:02:19 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201804152002.w3FK2Ja6082523@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 15 Apr 2018 20:02:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467412 - in head/devel: . rubygem-manpages rubygem-manpages/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . rubygem-manpages rubygem-manpages/files X-SVN-Commit-Revision: 467412 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2018 20:02:22 -0000 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 +# $FreeBSD$ + +PORTNAME= manpages +PORTVERSION= 0.6.1 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@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 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