aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-06-02 19:16:49 +0800
committerswills <swills@FreeBSD.org>2013-06-02 19:16:49 +0800
commit68df2af8c58e8ec44d4fe1fdc2cbae2867cee7e4 (patch)
tree1dc08a05893d2e9c8a60d119f76648380e725c65 /multimedia
parent34c6d0bfbd80e514b251f6605869f83534d94032 (diff)
downloadfreebsd-ports-gnome-68df2af8c58e8ec44d4fe1fdc2cbae2867cee7e4.tar.gz
freebsd-ports-gnome-68df2af8c58e8ec44d4fe1fdc2cbae2867cee7e4.tar.zst
freebsd-ports-gnome-68df2af8c58e8ec44d4fe1fdc2cbae2867cee7e4.zip
- Fix with Ruby 1.9
PR: ports/179068 Submitted by: Phil Oleson <oz@nixil.net> Approved by: gslin@gslin.org (maintainer)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/ruby-flvtool2/Makefile9
-rw-r--r--multimedia/ruby-flvtool2/files/patch-setup.rb12
2 files changed, 13 insertions, 8 deletions
diff --git a/multimedia/ruby-flvtool2/Makefile b/multimedia/ruby-flvtool2/Makefile
index 54a41fe384b1..232e4b65826d 100644
--- a/multimedia/ruby-flvtool2/Makefile
+++ b/multimedia/ruby-flvtool2/Makefile
@@ -12,14 +12,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= gslin@gslin.org
COMMENT= Manipulation tool for Macromedia Flash Video files
-DEPRECATED= Does not work with Ruby 1.9
-EXPIRATION_DATE= 2013-05-02
-
USE_RUBY= yes
USE_RUBY_SETUP= yes
-.include <bsd.port.pre.mk>
-.if ${RUBY_VER} == 1.9
-BROKEN= does not build with ruby 1.9
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/multimedia/ruby-flvtool2/files/patch-setup.rb b/multimedia/ruby-flvtool2/files/patch-setup.rb
new file mode 100644
index 000000000000..bce17aefafcc
--- /dev/null
+++ b/multimedia/ruby-flvtool2/files/patch-setup.rb
@@ -0,0 +1,12 @@
+--- setup.rb.orig 2013-05-28 15:52:34.000000000 -0600
++++ setup.rb 2013-05-28 15:54:12.000000000 -0600
+@@ -1311,6 +1311,9 @@ class Installer
+ File.open(path) {|f|
+ line = f.gets
+ }
++ if RUBY_VERSION >= "1.9"
++ line.force_encoding('ASCII-8BIT')
++ end
+ return nil unless /\A#!/ =~ line
+ parse(line)
+ end