From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6F761139085 for ; Sun, 25 Dec 2016 09:58:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C71ACE0C23; Sun, 25 Dec 2016 09:58:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 99DBBE0C23 for ; Sun, 25 Dec 2016 09:58:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7AE97341142 for ; Sun, 25 Dec 2016 09:58:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DFFCC24E2 for ; Sun, 25 Dec 2016 09:58:12 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1482659880.2979ae5c0be7e01c2d43914e8f9afa1c55e95144.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rdoc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rdoc/Manifest dev-ruby/rdoc/rdoc-5.0.0.ebuild X-VCS-Directories: dev-ruby/rdoc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 2979ae5c0be7e01c2d43914e8f9afa1c55e95144 X-VCS-Branch: master Date: Sun, 25 Dec 2016 09:58:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a544ae14-9c77-48e6-ad1d-2b238e4db56c X-Archives-Hash: f2a4a5f9347ad5c85e7dbf28bdf9c243 commit: 2979ae5c0be7e01c2d43914e8f9afa1c55e95144 Author: Hans de Graaff gentoo org> AuthorDate: Sun Dec 25 09:57:42 2016 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Dec 25 09:58:00 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2979ae5c dev-ruby/rdoc: add 5.0.0 Drop all keywords except ~amd64 due to new dependency on dev-ruby/kpeg, bug 603674 Package-Manager: portage-2.3.0 dev-ruby/rdoc/Manifest | 1 + dev-ruby/rdoc/rdoc-5.0.0.ebuild | 92 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest index 2f28afe..195f6b7 100644 --- a/dev-ruby/rdoc/Manifest +++ b/dev-ruby/rdoc/Manifest @@ -1,3 +1,4 @@ DIST rdoc-4.2.0.gem 735232 SHA256 391bfe3484a69db2cfa0fa32eed9010a7878b33ae645d67558d1806c847290cc SHA512 d58aebd7969fa8ea795fd4a2b35ba92d0f7368526ae0fc7fa64956db4e3d80c1b61f472384fe7e5eaa628e9c1ee637c967caf1a52362422cb7c2757e486594de WHIRLPOOL b2b8ee2500c901b8638d1dcd1b8194ee12f447a8ecf56205f77999e75a0f038583382efc6147719d4782befd6a3e4106697ea3158deb00c6183c4388223a720c DIST rdoc-4.2.2.gem 738816 SHA256 f3341c252b1547be6ba042f5ca1ce1fc5c52e3c27d8e0d485d0486173edfed08 SHA512 446ac09e35806174dafc23939049c327693654a26fd2cec57c719359518ac53bee383564f9596ef5f569487e500970d24820127195ca2631603bccd14d037dc5 WHIRLPOOL 3ae6cb842173f961eac14f530c93cbaf198f61fe471471ad6f45530f599476781f6b6612984c136af76033382660062ad5ab12dc493a2f3850c6b1955576d1cc DIST rdoc-4.3.0.gem 738816 SHA256 8cd820f70ec4b315ffff8e0653c8ce46cc9e444f3f8e7ed21c57338c61156a8d SHA512 7ec5c8055262300c159ff2dbca3bcd09e169002acad8602db89086d2b9409a096209a1152dca68c79dcd1b5e3c1fdf55e7f89d82b33fa2ce65c816695350b029 WHIRLPOOL 98f36bf06b3cf1f6f7fc7ee57395d794d17100dc7d996f95780ecd46a2d7fb9a0990e8c8c5e424790ac5dd32382f4e3e876bfdb91ba419cc6963b7ba360c11ac +DIST rdoc-5.0.0.tar.gz 701335 SHA256 bf7b8be4afbec4f4fe38ed2d5cb4bbcccf7c4c7288547cbee12739a867488318 SHA512 922c1fc36a3186eb2784754297930306b420a27ed2dcae879ed34b9325158e1e9c4e0721a44a027805c3e921f9b975b69009ffbf734173d668ba9df1d959c061 WHIRLPOOL af68197e6681ef8f17f9d857fdadd6b628eefe0ae65abfe663b399339877977fdbea63763e0293b00da045b84e3b673b4e262ac3b7be9bd97303a6bb187c6fc1 diff --git a/dev-ruby/rdoc/rdoc-5.0.0.ebuild b/dev-ruby/rdoc/rdoc-5.0.0.ebuild new file mode 100644 index 00000000..acfd43a --- /dev/null +++ b/dev-ruby/rdoc/rdoc-5.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRAINSTALL="exe" + +inherit ruby-fakegem eutils + +DESCRIPTION="An extended version of the RDoc library from Ruby 1.8" +HOMEPAGE="https://github.com/rdoc/rdoc/" +SRC_URI="https://github.com/rdoc/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Ruby MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_bdepend " + dev-ruby/kpeg + dev-ruby/racc + test? ( + >=dev-ruby/minitest-5.8:5 + )" + +ruby_add_rdepend ">=dev-ruby/json-1.4:0" + +all_ruby_prepare() { + # Other packages also have use for a nonexistent directory, bug 321059 + sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/test_rdoc*.rb || die + + # Remove unavailable and unneeded isolate plugin for Hoe + sed -i -e '/isolate/d' Rakefile || die + + # Remove licenses line from Hoe definitions so we also use older versions. + sed -i -e '/licenses/ s:^:#:' Rakefile || die + + # Remove test that is depending on the locale, which we can't garantuee. + sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die + + # Remove test depending on FEATURES=userpriv, bug 361959 + sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die + + # Remove tests for code that is not included and not listed in Manifest.txt + rm -f test/test_rdoc_i18n_{locale,text}.rb \ + test/test_rdoc_generator_pot* || die +} + +all_ruby_compile() { + all_fakegem_compile + + if use doc ; then + ruby -Ilib -S exe/rdoc || die + fi +} + +each_ruby_compile() { + ${RUBY} -S rake generate || die +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e 'gem "json", "~>1.4"; Dir["test/test_*.rb"].each{|f| require f}' || die +} + +all_ruby_install() { + all_fakegem_install + + for bin in rdoc ri; do + ruby_fakegem_binwrapper $bin /usr/bin/$bin-2 + + for version in 20 21 22 23; do + if use ruby_targets_ruby${version}; then + ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version} + sed -i -e "1s/env ruby/ruby${version}/" \ + "${ED}/usr/bin/${bin}${version}" || die + fi + done + done +} + +pkg_postinst() { + if [[ ! -n $(readlink "${ROOT}"usr/bin/rdoc) ]] ; then + eselect ruby set $(eselect --brief --colour=no ruby show | head -n1) + fi +}