ruby: update to 1.9.1p376, convert to subpkgs.

--HG--
extra : convert_revision : 6b9c35be4ef930df22d81d2a2263710302c89313
This commit is contained in:
Juan RP 2010-02-18 04:47:45 +01:00
parent 82b63b06d4
commit 877486087d
12 changed files with 159 additions and 8 deletions

1
srcpkgs/ruby-devel Symbolic link
View File

@ -0,0 +1 @@
ruby

1
srcpkgs/ruby-gems Symbolic link
View File

@ -0,0 +1 @@
ruby

1
srcpkgs/ruby-irb Symbolic link
View File

@ -0,0 +1 @@
ruby

1
srcpkgs/ruby-rdoc Symbolic link
View File

@ -0,0 +1 @@
ruby

1
srcpkgs/ruby-ri Symbolic link
View File

@ -0,0 +1 @@
ruby

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 <xtraeme@gmail.com>"
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

View File

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