[70788] trunk/dports/ruby
kimuraw at macports.org
kimuraw at macports.org
Sat Aug 21 04:24:41 PDT 2010
Revision: 70788
http://trac.macports.org/changeset/70788
Author: kimuraw at macports.org
Date: 2010-08-21 04:24:38 -0700 (Sat, 21 Aug 2010)
Log Message:
-----------
ruby/rb19-rcairo: new port rb19-rcairo, rb-rcairo for ruby19
Added Paths:
-----------
trunk/dports/ruby/rb19-rcairo/
trunk/dports/ruby/rb19-rcairo/Portfile
trunk/dports/ruby/rb19-rcairo/files/
trunk/dports/ruby/rb19-rcairo/files/patch-extconf.rb.diff
Added: trunk/dports/ruby/rb19-rcairo/Portfile
===================================================================
--- trunk/dports/ruby/rb19-rcairo/Portfile (rev 0)
+++ trunk/dports/ruby/rb19-rcairo/Portfile 2010-08-21 11:24:38 UTC (rev 70788)
@@ -0,0 +1,38 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup ruby 1.0
+
+ruby.setup rcairo 1.8.1 extconf.rb \
+ {README COPYING GPL samples doc} {} ruby19
+name rb19-rcairo
+maintainers kimuraw
+description Ruby bindings for cairo
+long_description \
+ Ruby bindings for Cairo. Cairo is a 2D graphics library \
+ with support for multiple output devices.
+categories-append graphics
+checksums md5 14efc24f0cbe281b32882d64f1b0d4b9 \
+ rmd160 e0e8681e3abd324c33c3e11c0df37f34e470d59c \
+ sha1 d5ea5ab624b9e00372cb7009e8cbfdae0e7d8c9a
+platforms darwin
+
+depends_lib-append path:lib/pkgconfig/cairo.pc:cairo
+configure.env-append PKG_CONFIG=${prefix}/bin/pkg-config
+configure.args-append --vendor
+# patch-extconf.rb.diff: fix wrong location of cairo.bundle with ruby-1.9.2
+patchfiles patch-extconf.rb.diff
+
+homepage http://cairographics.org/rcairo/
+master_sites http://cairographics.org/releases/
+
+test.env-append PKG_CONFIG=${prefix}/bin/pkg-config
+test.run yes
+test.dir ${worksrcpath}
+test.cmd ${ruby.bin}
+test.target test/run-test.rb
+test.args --testcase=PaperTest
+
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex {The latest version is <a href="http://cairographics.org/releases/rcairo-([\d.]+).tar.gz">}
Property changes on: trunk/dports/ruby/rb19-rcairo/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/ruby/rb19-rcairo/files/patch-extconf.rb.diff
===================================================================
--- trunk/dports/ruby/rb19-rcairo/files/patch-extconf.rb.diff (rev 0)
+++ trunk/dports/ruby/rb19-rcairo/files/patch-extconf.rb.diff 2010-08-21 11:24:38 UTC (rev 70788)
@@ -0,0 +1,25 @@
+diff --git extconf.rb extconf.rb
+index e7428c0..f178191 100755
+--- extconf.rb
++++ extconf.rb
+@@ -97,6 +97,7 @@ makefile = File.read("Makefile")
+ File.open("Makefile", "w") do |f|
+ objs = []
+ co = nil
++ dllib = nil
+ makefile.each_line do |line|
+ if wine
+ line.gsub!(/\s+gcc\b/, " i586-mingw32msvc-gcc")
+@@ -106,9 +107,11 @@ File.open("Makefile", "w") do |f|
+
+ case line
+ when /^DLLIB\s*=\s*/
+- dllib = $POSTMATCH
++ dllib = $POSTMATCH.chomp
+ f.puts("DLLIB = #{ext_dir_name}/#{dllib}")
+ f.puts("IMPLIB = #{ext_dir_name}/libruby-#{dllib.gsub(/\..+?$/, '.lib')}")
++ when /(\$\(RUBYARCHDIR\)\/)\$\(DLLIB\)/
++ f.puts("#{$PREMATCH}#{$1}#{dllib}#{$POSTMATCH}")
+ when /^(SRCS)\s*=\s*/
+ name = $1
+ vars = $POSTMATCH.split.collect {|var| "$(srcdir)/#{var}"}.join(" ")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100821/4044db1e/attachment.html>
More information about the macports-changes
mailing list