[103929] trunk/dports/ruby/rb-ncurses-ruby/Portfile

kimuraw at macports.org kimuraw at macports.org
Sun Mar 10 01:57:41 PST 2013


Revision: 103929
          https://trac.macports.org/changeset/103929
Author:   kimuraw at macports.org
Date:     2013-03-10 01:57:41 -0800 (Sun, 10 Mar 2013)
Log Message:
-----------
ruby/rb-ncurses-ruby: upgrade to 1.3.0, simplify Portfile with ruby.setup extconf.rb

Modified Paths:
--------------
    trunk/dports/ruby/rb-ncurses-ruby/Portfile

Modified: trunk/dports/ruby/rb-ncurses-ruby/Portfile
===================================================================
--- trunk/dports/ruby/rb-ncurses-ruby/Portfile	2013-03-10 08:09:53 UTC (rev 103928)
+++ trunk/dports/ruby/rb-ncurses-ruby/Portfile	2013-03-10 09:57:41 UTC (rev 103929)
@@ -3,9 +3,8 @@
 PortSystem          1.0
 PortGroup           ruby 1.0
 
-set myname          ncurses-ruby
-ruby.setup          ${myname} 1.2.3 fetch
-revision            1
+ruby.setup          ncurses-ruby 1.3.0 extconf.rb {}
+revision            0
 categories-append   devel
 license             LGPL
 maintainers         nomaintainer
@@ -18,50 +17,12 @@
 platforms           darwin
 
 homepage            http://developer.berlios.de/projects/ncurses-ruby
-master_sites        http://download.berlios.de/${myname}/ \
-                    http://download2.berlios.de/${myname}/
-distname            ${myname}-${version}
+master_sites        http://download.berlios.de/${ruby.module}/ \
+                    http://download2.berlios.de/${ruby.module}/
 use_bzip2           yes
 
-checksums           md5     e00bc593fc0dbc6e311e3b6836bb5801 \
-                    sha1    156e6e663fc3ecae9b48da8e1227427e583c489a \
-                    rmd160  daad8a5044238755c1e79fc2c327e7dfe219733e
+checksums           md5     e184a0284e72124767bfab03fa340e86 \
+                    sha1    5aadb31eaa946a276cc7531a4795a878dbcb2220 \
+                    rmd160  ea8e2f8101215e9251f9a56def570f46d128a196
 
-depends_lib-append  port:ncurses port:rb-rubygems
-
-# Do a fake gem-like install by first generating a gem, then install it
-
-# Use gemspec from pkgsrc
-# http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/devel/ruby-ncurses/files/gemspec
-post-extract {
-   copy ${filespath}/${myname}.gemspec ${worksrcpath}
-}
-
-patchfiles          extconf.rb.diff
-
-use_configure       no
-
-build {
-   system "cd ${worksrcpath} && ${ruby.gem} build ${myname}.gemspec -- --with-ncurses-include=${prefix}/include/ncurses"
-}
-
-destroot {
-   # This is basically just copied from the ruby portgroup, with a 
-   # change to the gem location since we just built it
-   xinstall -d -m 0755 ${destroot}${prefix}/lib/ruby/gems/${ruby.version}
-   system "cd ${worksrcpath} && ${ruby.gem} install --local --force --install-dir ${destroot}${prefix}/lib/ruby/gems/${ruby.version} ${worksrcpath}/ncurses-${version}.gem -- --with-ncurses-include=${prefix}/include/ncurses"
-   set binDir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}/bin
-   if {[file isdirectory $binDir]} {
-      foreach file [readdir $binDir] {
-         file copy [file join $binDir $file] ${destroot}${prefix}/bin
-      }
-   }
-   # symlink to the vendor location so software expecting a non-gem
-   # install can still find it
-   set rubyarch [exec ${prefix}/bin/ruby -rrbconfig -e "puts Config::CONFIG\['sitearch'\]"]
-   file mkdir ${destroot}${ruby.lib}/${rubyarch}
-   set ruby.gemdir ${prefix}/lib/ruby/gems/${ruby.version}/gems
-   ln -s ${ruby.gemdir}/ncurses-${version}/lib/ncurses.rb ${destroot}${ruby.lib}
-   ln -s ${ruby.gemdir}/ncurses-${version}/lib/ncurses_bin.bundle \
-      ${destroot}${ruby.lib}/${rubyarch}
-}
+depends_lib-append  port:ncurses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130310/c0fac556/attachment.html>


More information about the macports-changes mailing list