Change RUN_DEPENDS from rubygem-trollop to rubygem-optimist

- Bump PORTREVISION for dependency and package change
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-09-16 23:25:26 +00:00
parent 6351cabb5c
commit 9d10d42d4a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=479904
2 changed files with 43 additions and 2 deletions

View File

@ -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

View File

@ -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"])