From 877486087ddcec26f8e1a64028927b35ef2ce08a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 18 Feb 2010 04:47:45 +0100 Subject: [PATCH] ruby: update to 1.9.1p376, convert to subpkgs. --HG-- extra : convert_revision : 6b9c35be4ef930df22d81d2a2263710302c89313 --- srcpkgs/ruby-devel | 1 + srcpkgs/ruby-gems | 1 + srcpkgs/ruby-irb | 1 + srcpkgs/ruby-rdoc | 1 + srcpkgs/ruby-ri | 1 + srcpkgs/ruby/ruby-devel.template | 24 ++++++++++++++++++ srcpkgs/ruby/ruby-gems.template | 30 +++++++++++++++++++++++ srcpkgs/ruby/ruby-irb.template | 25 +++++++++++++++++++ srcpkgs/ruby/ruby-rdoc.template | 31 ++++++++++++++++++++++++ srcpkgs/ruby/ruby-ri.template | 25 +++++++++++++++++++ srcpkgs/ruby/template | 26 ++++++++++++++------ xbps-src/common/mapping_shlib_binpkg.txt | 1 + 12 files changed, 159 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/ruby-devel create mode 120000 srcpkgs/ruby-gems create mode 120000 srcpkgs/ruby-irb create mode 120000 srcpkgs/ruby-rdoc create mode 120000 srcpkgs/ruby-ri create mode 100644 srcpkgs/ruby/ruby-devel.template create mode 100644 srcpkgs/ruby/ruby-gems.template create mode 100644 srcpkgs/ruby/ruby-irb.template create mode 100644 srcpkgs/ruby/ruby-rdoc.template create mode 100644 srcpkgs/ruby/ruby-ri.template diff --git a/srcpkgs/ruby-devel b/srcpkgs/ruby-devel new file mode 120000 index 00000000000..a38a43ef7ab --- /dev/null +++ b/srcpkgs/ruby-devel @@ -0,0 +1 @@ +ruby \ No newline at end of file diff --git a/srcpkgs/ruby-gems b/srcpkgs/ruby-gems new file mode 120000 index 00000000000..a38a43ef7ab --- /dev/null +++ b/srcpkgs/ruby-gems @@ -0,0 +1 @@ +ruby \ No newline at end of file diff --git a/srcpkgs/ruby-irb b/srcpkgs/ruby-irb new file mode 120000 index 00000000000..a38a43ef7ab --- /dev/null +++ b/srcpkgs/ruby-irb @@ -0,0 +1 @@ +ruby \ No newline at end of file diff --git a/srcpkgs/ruby-rdoc b/srcpkgs/ruby-rdoc new file mode 120000 index 00000000000..a38a43ef7ab --- /dev/null +++ b/srcpkgs/ruby-rdoc @@ -0,0 +1 @@ +ruby \ No newline at end of file diff --git a/srcpkgs/ruby-ri b/srcpkgs/ruby-ri new file mode 120000 index 00000000000..a38a43ef7ab --- /dev/null +++ b/srcpkgs/ruby-ri @@ -0,0 +1 @@ +ruby \ No newline at end of file diff --git a/srcpkgs/ruby/ruby-devel.template b/srcpkgs/ruby/ruby-devel.template new file mode 100644 index 00000000000..6323ac94c77 --- /dev/null +++ b/srcpkgs/ruby/ruby-devel.template @@ -0,0 +1,24 @@ +# Template file for 'ruby-devel'. +# +short_desc="ruby development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run db-devel +Add_dependency run gdbm-devel +Add_dependency run openssl-devel +Add_dependency run zlib-devel +Add_dependency run readline-devel +Add_dependency run ncurses-devel +Add_dependency run ncursesw-devel +Add_dependency run ruby + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/lib/ruby/1.9.1 + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/ruby/1.9.1/mkmf.rb \ + ${DESTDIR}/usr/lib/ruby/1.9.1 +} diff --git a/srcpkgs/ruby/ruby-gems.template b/srcpkgs/ruby/ruby-gems.template new file mode 100644 index 00000000000..b4b0d295235 --- /dev/null +++ b/srcpkgs/ruby/ruby-gems.template @@ -0,0 +1,30 @@ +# Template file for 'ruby-gems'. +# +short_desc="Package management framework for Ruby libraries/applications" +long_desc=" + This is a way to package Ruby libraries/applications for distribution. + RubyGems provides the ability to manage concurrent versions of libraries + and dependencies between those libraries. Using RubyGems, you can: + + * download and install Ruby libraries easily + * not worry about libraries A and B depending on different versions of + library C + * easily remove libraries you no longer use + + This package provides RubyGems with Ruby 1.9.1." + +noarch=yes + +Add_dependency run ruby-rdoc +Add_dependency run ruby + +do_install() +{ + local libdir=/usr/lib/ruby/1.9.1 + + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/${libdir} + + mv ${SRCPKGDESTDIR}/usr/bin/gem ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/${libdir}/ubygems.rb ${DESTDIR}/${libdir} + mv ${SRCPKGDESTDIR}/${libdir}/rubygems ${DESTDIR}/${libdir} +} diff --git a/srcpkgs/ruby/ruby-irb.template b/srcpkgs/ruby/ruby-irb.template new file mode 100644 index 00000000000..d7a7306be05 --- /dev/null +++ b/srcpkgs/ruby/ruby-irb.template @@ -0,0 +1,25 @@ +# Template file for 'ruby-irb'. +# +short_desc="Interactive Ruby" +long_desc=" + The irb is acronym for Interactive RuBy. It evaluates Ruby expression from + the terminal. + + This package provides the irb which uses Ruby 1.9.1." + +noarch=yes + +Add_dependency run ruby + +do_install() +{ + local libdir=/usr/lib/ruby/1.9.1 + + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/${libdir} \ + ${DESTDIR}/usr/share/man/man1 + + mv ${SRCPKGDESTDIR}/usr/bin/irb ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/${libdir}/irb ${DESTDIR}/${libdir} + mv ${SRCPKGDESTDIR}/usr/share/man/man1/irb* \ + ${DESTDIR}/usr/share/man/man1 +} diff --git a/srcpkgs/ruby/ruby-rdoc.template b/srcpkgs/ruby/ruby-rdoc.template new file mode 100644 index 00000000000..f03838db1c9 --- /dev/null +++ b/srcpkgs/ruby/ruby-rdoc.template @@ -0,0 +1,31 @@ +# Template file for 'ruby-rdoc'. +# +short_desc="Generate documentation from Ruby source files" +long_desc=" + RDoc - Documentation from Ruby Source Files: + + * Generates structured HTML and XML documentation from Ruby source + and C extensions. + * Automatically extracts class, module, method, and attribute + definitions. These can be annotated using inline comments. + * Analyzes method visibility. + * Handles aliasing. + * Uses non-intrusive and implicit markup in the comments. Readers of + the original source needn't know that it is marked up at all. + + This package provides the RDoc tool which uses Ruby ${version}." + +noarch=yes + +Add_dependency run ruby-irb +Add_dependency run ruby + +do_install() +{ + local libdir=/usr/lib/ruby/1.9.1 + + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/${libdir} + + mv ${SRCPKGDESTDIR}/usr/bin/rdoc ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/${libdir}/rdoc ${DESTDIR}/${libdir} +} diff --git a/srcpkgs/ruby/ruby-ri.template b/srcpkgs/ruby/ruby-ri.template new file mode 100644 index 00000000000..8bd77cdf279 --- /dev/null +++ b/srcpkgs/ruby/ruby-ri.template @@ -0,0 +1,25 @@ +# Template file for 'ruby-ri'. +# +short_desc="Ruby Interactive reference" +long_desc=" + ri is a command line tool that displays descriptions of built-in Ruby + methods, classes, and modules. For methods, it shows you the calling + sequence and a description. For classes and modules, it shows a synopsis + along with a list of the methods the class or module implements. + + This package provides ri command and descriptions about Ruby 1.9.1." + +noarch=yes + +Add_dependency run ruby-rdoc +Add_dependency run ruby + +do_install() +{ + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/man/man1 + + mv ${SRCPKGDESTDIR}/usr/bin/ri ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/share/ri ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/share/man/man1/ri* \ + ${DESTDIR}/usr/share/man/man1 +} diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template index d07b257100d..18144fbbb0a 100644 --- a/srcpkgs/ruby/template +++ b/srcpkgs/ruby/template @@ -1,7 +1,7 @@ # Template build file for 'ruby'. pkgname=ruby ruby_ver="1.9.1" -ruby_distpatchver="p129" +ruby_distpatchver="p376" ruby_distver="${ruby_ver}-${ruby_distpatchver}" version=${ruby_ver}${ruby_distpatchver} wrksrc="${pkgname}-${ruby_distver}" @@ -10,17 +10,27 @@ build_style=gnu_configure configure_args="--enable-pthread --enable-shared --disable-rpath" short_desc="Ruby programming language" maintainer="Juan RP " -checksum=27b7a8ace1d17cec237020ae9355230b53f8c3875f8d942de903e7d58d14253b +checksum=58b8fc1645283fcf3d5be195dffcaf55b7c85cbc210074273b57b835409b21ca long_desc=" Ruby is the interpreted scripting language for quick and easy object oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward and extensible." -Add_dependency full glibc -Add_dependency full gdbm -Add_dependency full openssl -Add_dependency full zlib -Add_dependency full readline -Add_dependency build ncurses +subpackages="ruby-devel ruby-gems ruby-irb ruby-rdoc ruby-ri" + +Add_dependency run glibc +Add_dependency run db +Add_dependency run gdbm +Add_dependency run openssl +Add_dependency run zlib +Add_dependency run readline +Add_dependency run ncursesw Add_dependency run ncurses-libs +Add_dependency build db-devel +Add_dependency build gdbm-devel +Add_dependency build openssl-devel +Add_dependency build zlib-devel +Add_dependency build readline-devel +Add_dependency build ncurses-devel +Add_dependency build ncursesw-devel diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index a465755dbd4..ea28335449e 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -436,3 +436,4 @@ libgvplugin_gtk.so graphviz libparted-2.1.so libparted libparted-devel libopenobex.so libopenobex libopenobex-devel libntfs-3g.so.73 ntfs-3g ntfs-3g-devel +libruby.so.1 ruby ruby-devel