From 5e04435ef24a74be5b59b48b50f8bfe2f187b3d8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 16 May 2013 09:39:41 +0200 Subject: [PATCH] ruby: move HTML C API docs to a new noarch pkg: ruby-devel-docs. --- srcpkgs/ruby-devel-docs | 1 + srcpkgs/ruby/template | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/ruby-devel-docs diff --git a/srcpkgs/ruby-devel-docs b/srcpkgs/ruby-devel-docs new file mode 120000 index 0000000000..a38a43ef7a --- /dev/null +++ b/srcpkgs/ruby-devel-docs @@ -0,0 +1 @@ +ruby \ No newline at end of file diff --git a/srcpkgs/ruby/template b/srcpkgs/ruby/template index 7cf5b5b2d7..5b31ca6f1b 100644 --- a/srcpkgs/ruby/template +++ b/srcpkgs/ruby/template @@ -4,7 +4,7 @@ _ruby_ver="2.0.0" _ruby_distpatchver="p195" _ruby_distver="${_ruby_ver}-${_ruby_distpatchver}" version=${_ruby_ver}${_ruby_distpatchver} -revision=1 +revision=2 wrksrc="${pkgname}-${_ruby_distver}" short_desc="Ruby programming language" homepage="http://www.ruby-lang.org/en/" @@ -33,6 +33,14 @@ if [ "$CROSS_BUILD" ]; then } fi +ruby-devel-docs_package() { + short_desc+=" - HTML C API documentation files" + noarch=yes + pkg_install() { + vmove usr/share/doc + } +} + ruby-devel_package() { depends="ruby-${version}_${revision}" short_desc+=" - development files" @@ -40,7 +48,6 @@ ruby-devel_package() { vmove usr/include vmove "usr/lib/*.a" vmove usr/lib/ruby/2.0.0/mkmf.rb - vmove usr/share/doc vmove usr/lib/pkgconfig } }