Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2018 23:25:26 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479904 - in head/games/rubygem-lolcat: . files
Message-ID:  <201809162325.w8GNPQgr044319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Sep 16 23:25:26 2018
New Revision: 479904
URL: https://svnweb.freebsd.org/changeset/ports/479904

Log:
  Change RUN_DEPENDS from rubygem-trollop to rubygem-optimist
  
  - Bump PORTREVISION for dependency and package change

Added:
  head/games/rubygem-lolcat/files/
  head/games/rubygem-lolcat/files/patch-optimist   (contents, props changed)
Modified:
  head/games/rubygem-lolcat/Makefile

Modified: head/games/rubygem-lolcat/Makefile
==============================================================================
--- head/games/rubygem-lolcat/Makefile	Sun Sep 16 23:25:21 2018	(r479903)
+++ head/games/rubygem-lolcat/Makefile	Sun Sep 16 23:25:26 2018	(r479904)
@@ -2,6 +2,7 @@
 
 PORTNAME=	lolcat
 PORTVERSION=	99.9.19
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	RG
 
@@ -12,8 +13,8 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	rubygem-manpages>=0.6.1:devel/rubygem-manpages \
-		rubygem-paint>=2.0.0:devel/rubygem-paint \
-		rubygem-trollop>=2.1.3:devel/rubygem-trollop
+		rubygem-optimist>=3.0.0:devel/rubygem-optimist \
+		rubygem-paint>=2.0.0:devel/rubygem-paint
 
 NO_ARCH=	yes
 USE_RUBY=	yes

Added: head/games/rubygem-lolcat/files/patch-optimist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/rubygem-lolcat/files/patch-optimist	Sun Sep 16 23:25:26 2018	(r479904)
@@ -0,0 +1,40 @@
+--- lib/lolcat/cat.rb.orig	2018-09-16 16:29:11 UTC
++++ lib/lolcat/cat.rb
+@@ -27,11 +27,11 @@ require "lolcat/version"
+ require "lolcat/lol"
+ 
+ require 'stringio'
+-require 'trollop'
++require 'optimist'
+ 
+ module Lol
+   def self.cat!
+-    p = Trollop::Parser.new do
++    p = Optimist::Parser.new do
+       version "lolcat #{Lolcat::VERSION} (c)2011 moe@busyloop.net"
+       banner <<HEADER
+ 
+@@ -67,10 +67,10 @@ Report lolcat translation bugs to <http:
+ FOOTER
+     end
+ 
+-    opts = Trollop::with_standard_exception_handling p do
++    opts = Optimist::with_standard_exception_handling p do
+       begin
+         o = p.parse ARGV
+-      rescue Trollop::HelpNeeded
++      rescue Optimist::HelpNeeded
+         buf = StringIO.new
+         p.educate buf
+         buf.rewind
+--- lolcat.gemspec.orig	2018-09-16 16:29:11 UTC
++++ lolcat.gemspec
+@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+       s.add_development_dependency(%q<rake>.freeze, [">= 0"])
+       s.add_runtime_dependency(%q<paint>.freeze, ["~> 2.0.0"])
+-      s.add_runtime_dependency(%q<trollop>.freeze, ["= 2.1.3"])
++      s.add_runtime_dependency(%q<optimist>.freeze, ["~> 3.0.0"])
+       s.add_runtime_dependency(%q<manpages>.freeze, ["~> 0.6.1"])
+     else
+       s.add_dependency(%q<rake>.freeze, [">= 0"])



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809162325.w8GNPQgr044319>