diff options
author | Stuart Shelton <stuart@shelton.me> | 2013-02-15 14:59:21 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2013-02-15 14:59:21 +0000 |
commit | 92626583e0d87ae1b5ce27803855d0d15ce48ac6 (patch) | |
tree | 8fc1028264fe6873a1363f0cdf0effdca66f99b6 /dev-ruby | |
parent | Out-of-tree ebuilds (diff) | |
download | srcshelton-92626583e0d87ae1b5ce27803855d0d15ce48ac6.tar.gz srcshelton-92626583e0d87ae1b5ce27803855d0d15ce48ac6.tar.bz2 srcshelton-92626583e0d87ae1b5ce27803855d0d15ce48ac6.zip |
Out-of-tree ebuilds
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/CFPropertyList/CFPropertyList-2.2.0.ebuild | 36 | ||||
-rw-r--r-- | dev-ruby/CFPropertyList/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/cora/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/cora/cora-0.0.4.ebuild | 37 | ||||
-rw-r--r-- | dev-ruby/geocoder/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/geocoder/geocoder-1.1.6.ebuild | 21 | ||||
-rw-r--r-- | dev-ruby/guard-rspec/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/guard-rspec/guard-rspec-2.3.3.ebuild | 29 | ||||
-rw-r--r-- | dev-ruby/guard/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/guard/guard-1.6.1.ebuild | 37 | ||||
-rw-r--r-- | dev-ruby/lumberjack/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/lumberjack/lumberjack-1.0.2.ebuild | 23 | ||||
-rw-r--r-- | dev-ruby/pry/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/pry/pry-0.9.10.ebuild | 47 | ||||
-rw-r--r-- | dev-ruby/rake/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/rake/files/rake.bash-completion | 55 | ||||
-rw-r--r-- | dev-ruby/rake/rake-10.0.3.ebuild | 64 |
17 files changed, 366 insertions, 0 deletions
diff --git a/dev-ruby/CFPropertyList/CFPropertyList-2.2.0.ebuild b/dev-ruby/CFPropertyList/CFPropertyList-2.2.0.ebuild new file mode 100644 index 00000000..c9bbddbe --- /dev/null +++ b/dev-ruby/CFPropertyList/CFPropertyList-2.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Read, write and manipulate both binary and XML property lists" +HOMEPAGE="https://github.com/ckruse/CFPropertyList" +SRC_URI="${HOMEPAGE}/archive/cfpropertylist-${PV/\.0}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +ruby_add_bdepend " + >=dev-ruby/rake-0.7.0" + +src_prepare() { + MY_S="${WORKDIR}"/all/"${PN}-cfpropertylist-${PV/\.0}" + + for ver in ${USE_RUBY}; do + mkdir "${WORKDIR}/$ver" + cp -prl "${MY_S}" "${WORKDIR}/$ver/${RUBY_S}" + done +} diff --git a/dev-ruby/CFPropertyList/Manifest b/dev-ruby/CFPropertyList/Manifest new file mode 100644 index 00000000..7576884e --- /dev/null +++ b/dev-ruby/CFPropertyList/Manifest @@ -0,0 +1,2 @@ +DIST cfpropertylist-2.2.zip 504906 SHA256 28512a4ef60d0b2c5245d05aa1f75d29f852182265c761107198e5db2a0ffc9b SHA512 56ee596dd307ad5346e374e94e468e4993f71dca7f03a2a3209d1c9dd25d267d8d683e93dc3aeee77f66e2e813fe56c88a2a99b256bfab7f06624dda873bc8cf WHIRLPOOL 87ad998045c5128fe800233ca1fc4467bf030c9ba06bdecc51f66ed0a58d12c18838432e7ea4c0bcdb106b909ac83bb13ad10eccd5f7fd877d434605f455e818 +EBUILD CFPropertyList-2.2.0.ebuild 766 SHA256 42c067d0a31f2c48ad6376efb6fbef4d5728a4074f50258cd8c4c03bdbfeb800 SHA512 631c19cc7ad9410cf7d0a87eb66ca360156a9476dd6f1ae06b3a58bad787cdd5c787d80f344f91ce42a4d0989f27b19ec7b72c57e0a67108f3f56ceb2f745c5a WHIRLPOOL cdbd9145b3d0b58037c50acc58cfd2f2c0aa346d655605099c9b505dee2cf429b636909bb186b3df99071d1213ab89e575e657c4ec78a9f0511b1a6441aa1d95 diff --git a/dev-ruby/cora/Manifest b/dev-ruby/cora/Manifest new file mode 100644 index 00000000..848d9338 --- /dev/null +++ b/dev-ruby/cora/Manifest @@ -0,0 +1,2 @@ +DIST cora-0.0.4.gem 7680 SHA256 ba4c75c7a710a3767ab4d947ad668ecf4f38eb58cdaef8b1e81f5b15a1050555 SHA512 9cb97fe9bdb34fda68ee70ab096ecec890675149fafe2faee0e1c554c7725e9ec9814017e52cd54daaded742aee236fecae2616c346fcd14fb7c809ee87a3610 WHIRLPOOL 016685ae2b3c0201e089249d87387cd5a820d05ae87b58bd58c0fe35a11641dcda0d24c6dc7d2ff5757dfef420edd49ae284dd497b29819cbab09ca537beddb3 +EBUILD cora-0.0.4.ebuild 658 SHA256 0976d66c4fd7aa80fd3ab63c496e242bf75c52b414a5d1a0adaced21568ef0fe SHA512 cc6a7e33aca0178aff43aa6aed7acb32c26679e3ae50987bc992ee5261a64628ed3e964c0a8bf4f7c3cb3640cfbcdfe2bfa9be81d8fdd3a81b684c6534a0bf29 WHIRLPOOL ebd34ff90a62d485a0c8c2292c0b0c4c78f18514065b62f1de79e7ace51b0d6b87b7953a515f0f8bbb207e8cacca70ba89967716fdf8f9d0b7abdedf02c7fa37 diff --git a/dev-ruby/cora/cora-0.0.4.ebuild b/dev-ruby/cora/cora-0.0.4.ebuild new file mode 100644 index 00000000..3ab851ce --- /dev/null +++ b/dev-ruby/cora/cora-0.0.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Interface-agnostic context and state-aware agent" +HOMEPAGE="https://github.com/chendo/cora" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +ruby_add_bdepend " + dev-ruby/guard-rspec + dev-ruby/rake + dev-ruby/rspec" + +ruby_add_rdepend " + dev-ruby/geocoder" + +all_ruby_prepare() { + sed -i \ + -e '/git ls-files/d' \ + "${RUBY_FAKEGEM_GEMSPEC}" || die +} diff --git a/dev-ruby/geocoder/Manifest b/dev-ruby/geocoder/Manifest new file mode 100644 index 00000000..fa85b9fb --- /dev/null +++ b/dev-ruby/geocoder/Manifest @@ -0,0 +1,2 @@ +DIST geocoder-1.1.6.gem 62976 SHA256 536b8f32475f5ee3465f65f0cab0d125a497d09d4f6e4bdbfbee4b1c01d18064 SHA512 eeadcc1cf055c6db806009d56efd943a115a9affb895445f713c196146dfd71e5baaee747a616ef32ed1272056ecc90335ce39f264204348ef9de8629a2da209 WHIRLPOOL c0bce5311de59a8461823176014a1405cf8c2dd0543495dea7bca94d947d4d41816c1382ae0a1bfa348626596cb8a823ecbed7b55f6cb1e01b65fa738b942b50 +EBUILD geocoder-1.1.6.ebuild 402 SHA256 01dfc32533a6dda1671dfd116a7e6f019e91f20b8431e561120838241a330443 SHA512 7e72f5c5672e1354515d5fc4223f50d1e519de62b9cd24b92996d2d5e599b0e2cd1e629b47283147bf1ce7b49e4ef1eebe149eaacffdc79100b137b3d3f9c1db WHIRLPOOL f86c24020dea1256b933caf9e743c77f9b93deb4a070e5fddf6166421ee58512d9eab31e9783a4cae4311104f10bd81caf0e486e5c638cf21c668e9217ac34dc diff --git a/dev-ruby/geocoder/geocoder-1.1.6.ebuild b/dev-ruby/geocoder/geocoder-1.1.6.ebuild new file mode 100644 index 00000000..98a12ae3 --- /dev/null +++ b/dev-ruby/geocoder/geocoder-1.1.6.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_TASK_TEST="test" + +inherit ruby-fakegem + +DESCRIPTION="Complete Ruby geocoding solution" +HOMEPAGE="http://www.rubygeocoder.com/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" diff --git a/dev-ruby/guard-rspec/Manifest b/dev-ruby/guard-rspec/Manifest new file mode 100644 index 00000000..12fde0c7 --- /dev/null +++ b/dev-ruby/guard-rspec/Manifest @@ -0,0 +1,2 @@ +DIST guard-rspec-2.3.3.gem 11264 SHA256 99ef21339753f295c8744a6a455404d763501cd83d721d7ffd8861aa0887c6b2 SHA512 f7ef1ef13fe6c015d1a6e99ae1ed769c789035ec82a635d6efd2057b08b561239e7c13f016b7b324410bdf4fb60c02a730ea98571b649c1701539279cf25b9eb WHIRLPOOL cfd2bf1d90187e3ed0f33a9432cca0b31486cf86d85ba3d6bf44814f5fc5cbaf9b95c850418717979e60cc19e521624cc1da0a5f282d465aa53a6b260a821385 +EBUILD guard-rspec-2.3.3.ebuild 599 SHA256 7ce4a46b0374516d4ad26c4c8c99a12f3282f08c4d421021059147ca7c5f3f6b SHA512 433da94a5d8aa4b74e490b23c10be55b47d972ee9d771c1cba3fef673c6f6bb715ae036c640b0452d2400e1c3d34def67199dadfe45c05da9f38ebecd2514b5e WHIRLPOOL 5b98732ca2031b18d5724737ab86f44cd9dbe39f39508b378d600e0a5185061a14b25ee7cfef09cbb96c64fe130c57bc44b79a3ac513be626cdef2096f3a6fe4 diff --git a/dev-ruby/guard-rspec/guard-rspec-2.3.3.ebuild b/dev-ruby/guard-rspec/guard-rspec-2.3.3.ebuild new file mode 100644 index 00000000..b9ae78e8 --- /dev/null +++ b/dev-ruby/guard-rspec/guard-rspec-2.3.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_TASK_TEST="spec:prepare_fixtures" + +inherit ruby-fakegem + +DESCRIPTION="Guard::RSpec automatically run your specs" +HOMEPAGE="http://rubygems.org/gems/guard-rspec/" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +ruby_add_bdepend " + >=dev-ruby/bundler-1.1" + +ruby_add_rdepend " + >=dev-ruby/rspec-2.11" +# guard and guard-rspec depend on each other +# >=dev-ruby/guard-1.1 diff --git a/dev-ruby/guard/Manifest b/dev-ruby/guard/Manifest new file mode 100644 index 00000000..17271f36 --- /dev/null +++ b/dev-ruby/guard/Manifest @@ -0,0 +1,2 @@ +DIST guard-1.6.1.gem 230400 SHA256 d1e039673f2cb81b86f529f78fa1155de4987723d10b0c6c75d608f5ee32417a SHA512 7aa4411c74f5b285272c6afc14aa16a7d288e5b6a113739ea8c6978f74aaf9f153f9dfc5837de18a1a1b19bb05f447d74066ac8de2452166cf9845ca0e466055 WHIRLPOOL a34711433065718cf5e42c8c239cc2299594bdc582549cb43b7354f84b4f05b6be56f526ada142b9b00389b1fa63f236923afdca856c5c8781c56397641181bf +EBUILD guard-1.6.1.ebuild 741 SHA256 42492daa8e3057a5eec5587fa0af2fb17e37edd6c9ac74b1c5b808aaf2ced40a SHA512 95ef417e20f65d97e42359d567bebcb380c302407014f9faca4d004217578c493ecc5d1539aa03bff2615dc596e90268d062876ca5ea8ef312ab869d31af3463 WHIRLPOOL 1640a048d9eb42c6d6fa3e4827f4186ae35dd308bcca73dbbaac38e83fecc2af0037616cb329aea54ad469f7028bbb1b79d470c3479bbbc0787c242b163e9fa6 diff --git a/dev-ruby/guard/guard-1.6.1.ebuild b/dev-ruby/guard/guard-1.6.1.ebuild new file mode 100644 index 00000000..4e1074d5 --- /dev/null +++ b/dev-ruby/guard/guard-1.6.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC=" + README.md + CHANGELOG.md + CONTRIBUTING.md" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Guard is a command line tool to easily handle events on file system modifications" +HOMEPAGE="https://github.com/guard/guard" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +ruby_add_bdepend " + dev-ruby/bundler + >=dev-ruby/guard-rspec-2.3.0 + >=dev-ruby/rspec-2.12.0" + +ruby_add_rdepend " + >=dev-ruby/listen-0.6.0 + >=dev-ruby/lumberjack-1.0.2 + >=dev-ruby/pry-0.9.10 + >=dev-ruby/thor-0.14.6" diff --git a/dev-ruby/lumberjack/Manifest b/dev-ruby/lumberjack/Manifest new file mode 100644 index 00000000..4774b41d --- /dev/null +++ b/dev-ruby/lumberjack/Manifest @@ -0,0 +1,2 @@ +DIST lumberjack-1.0.2.gem 23552 SHA256 1dc68e3628bd9feda5f55cfcc369f5e40e230def8c22485a53e09935dc831519 SHA512 af10731ee4f576c2b97c068cf12998db6fd362f6784e76cd5a42e9efefdab7c8ececd2a89f8646a52a9889b02dbdc9dc0f52c455f9f5b4d98a70a28bcb7feae7 WHIRLPOOL 95cc7e71a1f9c57eea3cf7aaca3cd16194fa47458d622569fab40d1a8d2443bff6546ebd540e75eab9fa9f30ee4365f31d03125bfee883ee26e678dd8d705b3b +EBUILD lumberjack-1.0.2.ebuild 541 SHA256 0aebf039e4ab1528fc75c1d9189323b77016773dc1f2bfd243002f3b82fd609d SHA512 c3d903964de98eddb813ebbc6d6698efe987e8623a774d22a8f37d5269212a71e58e5f7e6d17919748a8d0e3a765201afe6b32574274034f86728b3d7e54371a WHIRLPOOL b63934b4daf433f0168a0129770c680d96f6c8fab8f669e16209f4b0c1b891ec2bf2fdb0c507bb275eec74bececd21c0e1629ae17553b7ac31a86a7aa3abcd13 diff --git a/dev-ruby/lumberjack/lumberjack-1.0.2.ebuild b/dev-ruby/lumberjack/lumberjack-1.0.2.ebuild new file mode 100644 index 00000000..7ecaf144 --- /dev/null +++ b/dev-ruby/lumberjack/lumberjack-1.0.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.rdoc" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A simple, powerful, and very fast logging utility that can be a drop in replacement for Logger or ActiveSupport::BufferedLogger" +HOMEPAGE="http://github.com/bdurand/lumberjack" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" diff --git a/dev-ruby/pry/Manifest b/dev-ruby/pry/Manifest new file mode 100644 index 00000000..eb02fcc6 --- /dev/null +++ b/dev-ruby/pry/Manifest @@ -0,0 +1,2 @@ +DIST pry-0.9.10.gem 162816 SHA256 c49750311af79de73779d8adaea45a14432733682a9cc27b6530a85fb2eadefa SHA512 5bc77f025ced38866e004ebd11d21aeb8857f7d1ab299acad83e87db4b8102fbddfdf2bc352390d3b3311b18f1e71693ab114eb8928bc6ad081454761b33913b WHIRLPOOL c3dad538366a436cf2cc0182936218b146474a6c1e3834724199cb277ccaf93986b0e2e7fd14c8069edeb11a7dc9fcd71861f8f20aeb62b8e1a98af95bcc4624 +EBUILD pry-0.9.10.ebuild 975 SHA256 4f2d451bc38420d041803fecf22f0c73b0c4c249f22bb5a82ee8cf8d881f533a SHA512 e821a6118e1c106da70d8b535871948d3de9e0112df27f86414d35fd34580466fe6da7bbfadd47f165d4e72932e0e02e0b841732476fb84afbab9c87aa99e332 WHIRLPOOL a9efa53f079751bfcd16b26bc36e344edb0e17199a5adee85cddf9df0ac409a911834dfb60082d90df1ae3750ebbb1ad9ebd104fad87d03cc31897a762184ffe diff --git a/dev-ruby/pry/pry-0.9.10.ebuild b/dev-ruby/pry/pry-0.9.10.ebuild new file mode 100644 index 00000000..3d81d493 --- /dev/null +++ b/dev-ruby/pry/pry-0.9.10.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +USE_RUBY="ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.markdown" + +inherit ruby-fakegem + +DESCRIPTION="An IRB alternative and runtime developer console" +HOMEPAGE="http://pry.github.com/" +IUSE="" +SLOT="0" + +LICENSE="MIT" +KEYWORDS="amd64 ~ppc64 x86" + +ruby_add_rdepend ">=dev-ruby/coderay-1.0.5 + >=dev-ruby/slop-3.3.1 + >=dev-ruby/method_source-0.8 + !!dev-python/pry" + +ruby_add_bdepend "test? ( + >=dev-ruby/bacon-1.2.0 + >=dev-ruby/open4-1.3.0 + >=dev-ruby/rake-0.9 + >=dev-ruby/guard-1.3.2 + >=dev-ruby/mocha-0.13.1 + >=dev-ruby/bond-0.4.2 +)" + +all_ruby_prepare() { + # Make version dependencies more lenient to avoid problems with + # compatible upgrades. + sed -i -e 's/~> 1.0.5/>= 1.0.5/' \ + -e 's/~> 3.3.1/>= 3.3.1/' \ + -e 's/~> 0.8/>= 0.8/' \ + pry.gemspec || die +} + +each_ruby_test() { + ${RUBY} -S bacon -Itest -a -q || die +} diff --git a/dev-ruby/rake/Manifest b/dev-ruby/rake/Manifest new file mode 100644 index 00000000..d1393f80 --- /dev/null +++ b/dev-ruby/rake/Manifest @@ -0,0 +1,3 @@ +AUX rake.bash-completion 1348 SHA256 21d6be436bec6cc931c7d2b6afd879d88fd473b4afdb4f01512a71a8d4d946be SHA512 a29f1fa2a95942d59042782ffc6530d09ab806ae9188945cdbede9c824d6b46f84878956106551d10cfc769e329a7c234d0d18bfd53c1649fbfe978a6421d405 WHIRLPOOL 2da5635e768b724c4b98b5758c850ab707bbfc726d6205815587963250153c1918f11a348857e2e19f393959bdeed4eccb40520be78e417c5d98d6d1978699df +DIST rake-10.0.3.gem 119808 SHA256 ee2ed7d45f6390ac9cba94e101e7b7ba198a0f1b54aaf33708793648fd707b27 SHA512 82bce17deeae9822a3af7048f783b2a9774f7773834c2f425439e6775636cab784c61efccbf14488893a86594ddd82d1a307b143b274049eeb371bc49bcd3c7c WHIRLPOOL 64020f154b676ec81c84d901c53fb0ad68cbbc0efdae459a9278a9740ee74d526272221d8f300d0cd9472612c0976b84d42cf50ef1ca6585a1457c5b26ad39a7 +EBUILD rake-10.0.3.ebuild 1762 SHA256 dd838ec38fbec802bb538f3deec9e1aa2846c2e100311a6e8192d76250b52f19 SHA512 e2b031d8d028d77105f2d7c201bdbc25ab324b7178aff9d9c06db158b1faf44759b1835215e4fdb6399cad57af63f4e73e9ab381a631fbe3efdc0a630618df37 WHIRLPOOL 85062fd9438c30eb4fbaf09e7f5481b407b2b1d562d2585c6449d915b40e206cad2aac366cd08d8da4c807a4f02de304bce67de179afa9c0d1de0dabd40a6f89 diff --git a/dev-ruby/rake/files/rake.bash-completion b/dev-ruby/rake/files/rake.bash-completion new file mode 100644 index 00000000..825f5d17 --- /dev/null +++ b/dev-ruby/rake/files/rake.bash-completion @@ -0,0 +1,55 @@ +have rake && +_rake() +{ + local cur prev rakef i + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + rakef="Rakefile" + + if [[ "$prev" == "-f" ]]; then + _filedir + return 0 + fi + + if [[ "$cur" == *=* ]]; then + prev=${cur/=*/} + cur=${cur/*=/} + if [[ "$prev" == "--rakefile=" ]]; then + _filedir -o nospace + return 0 + fi + fi + + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '-n -H -I -N -P -q -f\ + -r -s -T -t -h -v -V\ + --dry-run --help '--libdir=' --nosearch --prereqs --quiet\ + '--rakefile=' '--require=' --silent --tasks --trace --usage\ + --verbose --version'\ + -- $cur )) + else + + for (( i=0; i < ${#COMP_WORDS[@]}; i++)); do + case "${COMP_WORDS[i]}" in + -f) + eval rakef=${COMP_WORDS[i+1]} + break + ;; + --rakefile=*|--rakefile\=*) + eval rakef=${COMP_WORDS[i]/*=/} + break + ;; + esac + done + + [ ! -f $rakef ] && return 0 + + COMPREPLY=( $( rake -s -f "$rakef" -T | \ + awk -F ' ' '/^rake / { print $2 }' | \ + command grep "^$cur" )) + + fi +} && +complete -F _rake $filenames rake diff --git a/dev-ruby/rake/rake-10.0.3.ebuild b/dev-ruby/rake/rake-10.0.3.ebuild new file mode 100644 index 00000000..699608a9 --- /dev/null +++ b/dev-ruby/rake/rake-10.0.3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/rake-0.9.2.2.ebuild,v 1.15 2012/11/06 16:54:02 jer Exp $ + +EAPI=4 +USE_RUBY="ruby18 ree18 ruby19 jruby" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGES README.rdoc TODO" + +RUBY_FAKEGEM_TASK_TEST="" + +inherit bash-completion ruby-fakegem + +DESCRIPTION="Make-like scripting in Ruby" +HOMEPAGE="http://rake.rubyforge.org/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="bash-completion doc" + +DEPEND="${DEPEND} app-arch/gzip" +RDEPEND="${RDEPEND}" + +ruby_add_bdepend "doc? ( dev-ruby/rdoc ) + test? ( dev-ruby/minitest )" + +all_ruby_prepare() { + # Comment out unimportant test which failes on ruby18 at least. + sed -i -e '/def test_classic_namespace/,/^ end/ s:^:#:' test/test_rake_application_options.rb || die + + # Avoid tests which can't work in bootstrapping because the test runs + # in a directory that can't access the file being loaded. + rm test/test_rake_clean.rb || die + sed -i -e '/test_run_code_rake/,/^ end/ s:^:#:' test/test_rake_test_task.rb || die + + # Decompress the file. The compressed version has errors, ignore them. + zcat doc/rake.1.gz > doc/rake.1 +} + +all_ruby_compile() { + if use doc; then + ruby -Ilib bin/rake rdoc || die "doc generation failed" + fi +} + +each_ruby_test() { + ${RUBY} bin/rake test || die "tests failed" +} + +all_ruby_install() { + ruby_fakegem_binwrapper rake + + if use doc; then + pushd html + dohtml -r * + popd + fi + + doman doc/rake.1 + + dobashcompletion "${FILESDIR}"/rake.bash-completion rake +} |