[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2024-01-25 Thread Hans de Graaff
commit: 82bbe19104e920846b6d16f115c303f07d40066b
Author: Hans de Graaff  gentoo  org>
AuthorDate: Thu Jan 25 10:23:14 2024 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Thu Jan 25 10:23:30 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82bbe191

net-irc/rbot: enable ruby32

Signed-off-by: Hans de Graaff  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20210609.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20210609.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20210609.ebuild
index 76d3cf5e8335..fda274cc6b6a 100644
--- a/net-irc/rbot/rbot-0.9.15_p20210609.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20210609.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-USE_RUBY="ruby30 ruby31"
+USE_RUBY="ruby30 ruby31 ruby32"
 
 GITHUB_COMMIT="3ace72d5642284665fce2c33c99dfeb1b931b2c6"
 inherit ruby-ng strip-linguas



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2023-08-19 Thread Hans de Graaff
commit: f8072f4fa25807d0ead3968c95c27616ee3f1f64
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sat Aug 19 08:39:40 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sat Aug 19 09:17:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8072f4f

net-irc/rbot: drop 0.9.15_p20160325-r3

Signed-off-by: Hans de Graaff  gentoo.org>

 net-irc/rbot/Manifest|   1 -
 net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild | 197 ---
 2 files changed, 198 deletions(-)

diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest
index c1ddbbf15c76..527001b62919 100644
--- a/net-irc/rbot/Manifest
+++ b/net-irc/rbot/Manifest
@@ -1,2 +1 @@
-DIST rbot-0.9.15_p20160325.tar.gz 762685 BLAKE2B 
68146d241bd57198e0a7a9e5ae033827116bbe31d3bdc05bf42aa644c5dd900254bbe7317461aa553ad92daac299439721a85cd8dd41033cf38b9e97b268e1ee
 SHA512 
b0bc90ee2c6ddb3cdd92cdd5f3a45520d20bc97327b3d694235f7ba94f13ef3c884d4658b083f71bfee2cbeff3cbc7a57c251c4d28bfee293e2556f64e7b4160
 DIST rbot-0.9.15_p20210609.tar.gz 769331 BLAKE2B 
7dcdb3ffefefc0b2bfc8d232aec7fec2efecbbf2b025745673acac21733ed115c247cd988db0fb2739174ab1dad9fada83e1a291219e480d294ac32d1bbaad38
 SHA512 
068e3171bc2d2d0ffea36fbdf342766672fb83b9a4359b154b44b5e0283e6d1d0308dd7fbd66b515bcabb4ecc0eeca95fe670b49654e5d082a0be376138d4e50

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
deleted file mode 100644
index 1d85221f96f4..
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
+++ /dev/null
@@ -1,197 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-USE_RUBY="ruby27 ruby30"
-
-GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
-inherit ruby-ng strip-linguas
-
-DESCRIPTION="A ruby IRC bot"
-HOMEPAGE="https://ruby-rbot.org/";
-SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="|| ( feh GPL-2 )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="spell aspell timezone translator nls figlet
-   fortune cal host sqlite toilet"
-ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
-RUBY_S="${PN}-${GITHUB_COMMIT}"
-
-CDEPEND="
-   acct-group/rbot
-   acct-user/rbot
-"
-
-RDEPEND+="
-   ${CDEPEND}
-   spell? (
-   aspell? ( app-text/aspell )
-   !aspell? ( app-text/hunspell )
-   )
-   figlet? ( app-misc/figlet )
-   sqlite? ( dev-ruby/sqlite3 )
-   toilet? ( app-misc/toilet )
-   fortune? ( games-misc/fortune-mod )
-   cal? ( sys-apps/util-linux )
-   host? ( net-dns/bind-tools )"
-
-DEPEND+="${CDEPEND}"
-
-ruby_add_bdepend "
-   test? (
-   dev-ruby/sqlite3
-   )
-   nls? (
-   >=dev-ruby/ruby-gettext-2
-   dev-ruby/rake
-   )"
-
-ruby_add_rdepend "
-   dev-ruby/tokyocabinet
-   timezone? ( dev-ruby/tzinfo:* )
-   translator? ( dev-ruby/mechanize )
-   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
-"
-
-all_ruby_prepare() {
-   eapply -p0 "${FILESDIR}"/rbot-rakefile-gettext.patch
-
-   # Avoid tests that are only compatible with ruby22
-   rm -f test/test_journal.rb || die
-
-   # Fix deprecated code that was removed with ruby22
-   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
-
-   # Avoid tests for optional dependencies that are not packaged.
-   sed -i -e '/RegistryDaybreakTest/,/^end/ s:^:#:' test/test_registry.rb 
|| die
-
-   # Avoid broken tests that call code that doesn't exist
-   rm -f test/test_plugins_threshold.rb || die
-}
-
-all_ruby_compile() {
-   disable_rbot_plugin() {
-   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
-   }
-   use_rbot_plugin() {
-   use $1 && return
-   disable_rbot_plugin "$2"
-   }
-   rbot_conf() {
-   echo "$1: $2" >> "${T}"/rbot.conf
-   }
-   use_rbot_conf_path() {
-   use "$1" \
-   && rbot_conf "$2" "$3" \
-   || rbot_conf "$2" /bin/false
-   }
-
-   local spell_program="/usr/bin/hunspell -i"
-   if use !spell; then
-   disable_rbot_plugin spell
-   spell_program="/bin/false"
-   elif use aspell; then
-   spell_program="/usr/bin/ispell-aspell"
-   fi
-
-   rbot_conf spell.program "${spell_program}"
-
-   if use !figlet && use !toilet; then
-   disable_rbot_plugin figlet
-   fi
-
-   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
-   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
-
-   use_rbot_plugin timezone time
-   use_rbot_plugin translator translator
-
-   use_rbot_plugin fortune fortune
-   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
-
-   use_rbot_plugin cal cal
-   use_rbot_conf_path cal cal.path /usr/bin/cal
-
-   use_rbot_plugi

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2023-07-08 Thread Hans de Graaff
commit: f1b4807c840cfdbaa88a3feb910a12812bd79362
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Jul  9 05:40:28 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jul  9 05:42:23 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1b4807c

net-irc/rbot: add 0.9.15_p20210609

Closes: https://bugs.gentoo.org/909025
Signed-off-by: Hans de Graaff  gentoo.org>

 net-irc/rbot/Manifest |   1 +
 net-irc/rbot/rbot-0.9.15_p20210609.ebuild | 197 ++
 2 files changed, 198 insertions(+)

diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest
index ca7d6c77ec02..c1ddbbf15c76 100644
--- a/net-irc/rbot/Manifest
+++ b/net-irc/rbot/Manifest
@@ -1 +1,2 @@
 DIST rbot-0.9.15_p20160325.tar.gz 762685 BLAKE2B 
68146d241bd57198e0a7a9e5ae033827116bbe31d3bdc05bf42aa644c5dd900254bbe7317461aa553ad92daac299439721a85cd8dd41033cf38b9e97b268e1ee
 SHA512 
b0bc90ee2c6ddb3cdd92cdd5f3a45520d20bc97327b3d694235f7ba94f13ef3c884d4658b083f71bfee2cbeff3cbc7a57c251c4d28bfee293e2556f64e7b4160
+DIST rbot-0.9.15_p20210609.tar.gz 769331 BLAKE2B 
7dcdb3ffefefc0b2bfc8d232aec7fec2efecbbf2b025745673acac21733ed115c247cd988db0fb2739174ab1dad9fada83e1a291219e480d294ac32d1bbaad38
 SHA512 
068e3171bc2d2d0ffea36fbdf342766672fb83b9a4359b154b44b5e0283e6d1d0308dd7fbd66b515bcabb4ecc0eeca95fe670b49654e5d082a0be376138d4e50

diff --git a/net-irc/rbot/rbot-0.9.15_p20210609.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20210609.ebuild
new file mode 100644
index ..76d3cf5e8335
--- /dev/null
+++ b/net-irc/rbot/rbot-0.9.15_p20210609.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby30 ruby31"
+
+GITHUB_COMMIT="3ace72d5642284665fce2c33c99dfeb1b931b2c6"
+inherit ruby-ng strip-linguas
+
+DESCRIPTION="A ruby IRC bot"
+HOMEPAGE="https://ruby-rbot.org/";
+SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( feh GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="spell aspell timezone translator nls figlet
+   fortune cal host sqlite toilet"
+ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
+RUBY_S="${PN}-${GITHUB_COMMIT}"
+
+CDEPEND="
+   acct-group/rbot
+   acct-user/rbot
+"
+
+RDEPEND+="
+   ${CDEPEND}
+   spell? (
+   aspell? ( app-text/aspell )
+   !aspell? ( app-text/hunspell )
+   )
+   figlet? ( app-misc/figlet )
+   sqlite? ( dev-ruby/sqlite3 )
+   toilet? ( app-misc/toilet )
+   fortune? ( games-misc/fortune-mod )
+   cal? ( sys-apps/util-linux )
+   host? ( net-dns/bind-tools )"
+
+DEPEND+="${CDEPEND}"
+
+ruby_add_bdepend "
+   test? (
+   dev-ruby/sqlite3
+   )
+   nls? (
+   >=dev-ruby/ruby-gettext-2
+   dev-ruby/rake
+   )"
+
+ruby_add_rdepend "
+   dev-ruby/tokyocabinet
+   timezone? ( dev-ruby/tzinfo:* )
+   translator? ( dev-ruby/mechanize )
+   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
+"
+
+all_ruby_prepare() {
+   eapply -p0 "${FILESDIR}"/rbot-rakefile-gettext.patch
+
+   # Avoid tests that are only compatible with ruby22
+   rm -f test/test_journal.rb || die
+
+   # Fix deprecated code that was removed with ruby22
+   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
+
+   # Avoid tests for optional dependencies that are not packaged.
+   # sed -i -e '/RegistryDaybreakTest/,/^end/ s:^:#:' 
test/test_registry.rb || die
+
+   # Avoid broken tests that call code that doesn't exist
+   rm -f test/test_plugins_threshold.rb || die
+}
+
+all_ruby_compile() {
+   disable_rbot_plugin() {
+   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
+   }
+   use_rbot_plugin() {
+   use $1 && return
+   disable_rbot_plugin "$2"
+   }
+   rbot_conf() {
+   echo "$1: $2" >> "${T}"/rbot.conf
+   }
+   use_rbot_conf_path() {
+   use "$1" \
+   && rbot_conf "$2" "$3" \
+   || rbot_conf "$2" /bin/false
+   }
+
+   local spell_program="/usr/bin/hunspell -i"
+   if use !spell; then
+   disable_rbot_plugin spell
+   spell_program="/bin/false"
+   elif use aspell; then
+   spell_program="/usr/bin/ispell-aspell"
+   fi
+
+   rbot_conf spell.program "${spell_program}"
+
+   if use !figlet && use !toilet; then
+   disable_rbot_plugin figlet
+   fi
+
+   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
+   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
+
+   use_rbot_plugin timezone time
+   use_rbot_plugin translator translator
+
+   use_rbot_plugin fortune fortune
+   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
+
+   use_rbot_plugin cal cal
+   use_rbot_conf_path cal cal.path /usr/bin/cal
+

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2023-03-30 Thread Hans de Graaff
commit: f788ad1b44a99f6c220723ba1e1870bc047affdd
Author: Hans de Graaff  gentoo  org>
AuthorDate: Thu Mar 30 13:04:10 2023 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Thu Mar 30 13:04:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f788ad1b

net-irc/rbot: enable ruby30

Signed-off-by: Hans de Graaff  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
index a738ba756199..1d85221f96f4 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-USE_RUBY="ruby25 ruby26 ruby27"
+USE_RUBY="ruby27 ruby30"
 
 GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
 inherit ruby-ng strip-linguas



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2021-07-22 Thread Conrad Kostecki
commit: f8d039cb8d898e34abb42aaf2de7122d1d4a14c3
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Thu Jul 22 19:24:07 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Jul 22 19:28:13 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8d039cb

net-irc/rbot: drop old version

Closes: https://bugs.gentoo.org/781398
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild | 193 ---
 1 file changed, 193 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
deleted file mode 100644
index a49349572b5..000
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
+++ /dev/null
@@ -1,193 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-USE_RUBY="ruby25 ruby26 ruby27"
-
-GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
-inherit ruby-ng strip-linguas user
-
-DESCRIPTION="A ruby IRC bot"
-HOMEPAGE="https://ruby-rbot.org/";
-SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="|| ( feh GPL-2 )"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="spell aspell timezone translator nls figlet
-   fortune cal host sqlite toilet"
-ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
-RUBY_S="${PN}-${GITHUB_COMMIT}"
-
-RDEPEND+="
-   spell? (
-   aspell? ( app-text/aspell )
-   !aspell? ( app-text/hunspell )
-   )
-   figlet? ( app-misc/figlet )
-   sqlite? ( dev-ruby/sqlite3 )
-   toilet? ( app-misc/toilet )
-   fortune? ( games-misc/fortune-mod )
-   cal? ( sys-apps/util-linux )
-   host? ( net-dns/bind-tools )"
-
-ruby_add_bdepend "
-   test? (
-   dev-ruby/sqlite3
-   )
-   nls? (
-   >=dev-ruby/ruby-gettext-2
-   dev-ruby/rake
-   )"
-
-ruby_add_rdepend "
-   dev-ruby/tokyocabinet
-   timezone? ( dev-ruby/tzinfo:* )
-   translator? ( dev-ruby/mechanize )
-   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
-"
-
-pkg_setup() {
-   enewuser rbot -1 -1 /var/lib/rbot nobody
-}
-
-all_ruby_prepare() {
-   eapply -p0 "${FILESDIR}"/rbot-rakefile-gettext.patch
-
-   # Avoid tests that are only compatible with ruby22
-   rm -f test/test_journal.rb || die
-
-   # Fix deprecated code that was removed with ruby22
-   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
-
-   # Avoid tests for optional dependencies that are not packaged.
-   sed -i -e '/RegistryDaybreakTest/,/^end/ s:^:#:' test/test_registry.rb 
|| die
-
-   # Avoid broken tests that call code that doesn't exist
-   rm -f test/test_plugins_threshold.rb || die
-}
-
-all_ruby_compile() {
-   disable_rbot_plugin() {
-   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
-   }
-   use_rbot_plugin() {
-   use $1 && return
-   disable_rbot_plugin "$2"
-   }
-   rbot_conf() {
-   echo "$1: $2" >> "${T}"/rbot.conf
-   }
-   use_rbot_conf_path() {
-   use "$1" \
-   && rbot_conf "$2" "$3" \
-   || rbot_conf "$2" /bin/false
-   }
-
-   local spell_program="/usr/bin/hunspell -i"
-   if use !spell; then
-   disable_rbot_plugin spell
-   spell_program="/bin/false"
-   elif use aspell; then
-   spell_program="/usr/bin/ispell-aspell"
-   fi
-
-   rbot_conf spell.program "${spell_program}"
-
-   if use !figlet && use !toilet; then
-   disable_rbot_plugin figlet
-   fi
-
-   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
-   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
-
-   use_rbot_plugin timezone time
-   use_rbot_plugin translator translator
-
-   use_rbot_plugin fortune fortune
-   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
-
-   use_rbot_plugin cal cal
-   use_rbot_conf_path cal cal.path /usr/bin/cal
-
-   use_rbot_plugin host host
-   use_rbot_conf_path host host.path /usr/bin/host
-
-   local rbot_datadir="${D}"/usr/share/rbot
-
-   # This is unfortunately pretty manual at the moment, but it's just
-   # to avoid having to run special scripts to package new versions
-   # of rbot. The default if new languages are added that are not
-   # considered for an opt-out here is to install them, so you just
-   # need to add them later.
-   if use nls; then
-   strip-linguas ${ILINGUAS}
-   if [[ -n ${LINGUAS+set} ]]; then
-   # As the the language name used by the rbot data files 
does
-   # not correspond to the ISO codes we usually use for 
LINGUAS,
-   # the following list of local varables will work

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2021-07-22 Thread Conrad Kostecki
commit: e7295013aa6a98c2c1272f814316e2ceca3a0462
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Thu Jul 22 19:23:35 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Jul 22 19:28:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7295013

net-irc/rbot: migrate to GLEP 81

Bug: https://bugs.gentoo.org/781398
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild | 197 +++
 1 file changed, 197 insertions(+)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
new file mode 100644
index 000..a738ba75619
--- /dev/null
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
+inherit ruby-ng strip-linguas
+
+DESCRIPTION="A ruby IRC bot"
+HOMEPAGE="https://ruby-rbot.org/";
+SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( feh GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="spell aspell timezone translator nls figlet
+   fortune cal host sqlite toilet"
+ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
+RUBY_S="${PN}-${GITHUB_COMMIT}"
+
+CDEPEND="
+   acct-group/rbot
+   acct-user/rbot
+"
+
+RDEPEND+="
+   ${CDEPEND}
+   spell? (
+   aspell? ( app-text/aspell )
+   !aspell? ( app-text/hunspell )
+   )
+   figlet? ( app-misc/figlet )
+   sqlite? ( dev-ruby/sqlite3 )
+   toilet? ( app-misc/toilet )
+   fortune? ( games-misc/fortune-mod )
+   cal? ( sys-apps/util-linux )
+   host? ( net-dns/bind-tools )"
+
+DEPEND+="${CDEPEND}"
+
+ruby_add_bdepend "
+   test? (
+   dev-ruby/sqlite3
+   )
+   nls? (
+   >=dev-ruby/ruby-gettext-2
+   dev-ruby/rake
+   )"
+
+ruby_add_rdepend "
+   dev-ruby/tokyocabinet
+   timezone? ( dev-ruby/tzinfo:* )
+   translator? ( dev-ruby/mechanize )
+   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
+"
+
+all_ruby_prepare() {
+   eapply -p0 "${FILESDIR}"/rbot-rakefile-gettext.patch
+
+   # Avoid tests that are only compatible with ruby22
+   rm -f test/test_journal.rb || die
+
+   # Fix deprecated code that was removed with ruby22
+   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
+
+   # Avoid tests for optional dependencies that are not packaged.
+   sed -i -e '/RegistryDaybreakTest/,/^end/ s:^:#:' test/test_registry.rb 
|| die
+
+   # Avoid broken tests that call code that doesn't exist
+   rm -f test/test_plugins_threshold.rb || die
+}
+
+all_ruby_compile() {
+   disable_rbot_plugin() {
+   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
+   }
+   use_rbot_plugin() {
+   use $1 && return
+   disable_rbot_plugin "$2"
+   }
+   rbot_conf() {
+   echo "$1: $2" >> "${T}"/rbot.conf
+   }
+   use_rbot_conf_path() {
+   use "$1" \
+   && rbot_conf "$2" "$3" \
+   || rbot_conf "$2" /bin/false
+   }
+
+   local spell_program="/usr/bin/hunspell -i"
+   if use !spell; then
+   disable_rbot_plugin spell
+   spell_program="/bin/false"
+   elif use aspell; then
+   spell_program="/usr/bin/ispell-aspell"
+   fi
+
+   rbot_conf spell.program "${spell_program}"
+
+   if use !figlet && use !toilet; then
+   disable_rbot_plugin figlet
+   fi
+
+   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
+   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
+
+   use_rbot_plugin timezone time
+   use_rbot_plugin translator translator
+
+   use_rbot_plugin fortune fortune
+   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
+
+   use_rbot_plugin cal cal
+   use_rbot_conf_path cal cal.path /usr/bin/cal
+
+   use_rbot_plugin host host
+   use_rbot_conf_path host host.path /usr/bin/host
+
+   local rbot_datadir="${D}"/usr/share/rbot
+
+   # This is unfortunately pretty manual at the moment, but it's just
+   # to avoid having to run special scripts to package new versions
+   # of rbot. The default if new languages are added that are not
+   # considered for an opt-out here is to install them, so you just
+   # need to add them later.
+   if use nls; then
+   strip-linguas ${ILINGUAS}
+   if [[ -n ${LINGUAS+set} ]]; then
+   # As the the language name used by the rbot data files 
does
+   # not correspond to the ISO codes we usually use for 
LINGUAS,
+   # the following list

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2021-06-30 Thread Ulrich Müller
commit: f514d6769b165593280dad5e736555140946cfbc
Author: Ulrich Müller  gentoo  org>
AuthorDate: Mon Jun 28 10:05:31 2021 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Wed Jun 30 10:15:32 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f514d676

net-irc/rbot: Update inherit from l10n to strip-linguas

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Ulrich Müller  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
index d4bbfeb5e71..a49349572b5 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 USE_RUBY="ruby25 ruby26 ruby27"
 
 GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
-inherit ruby-ng l10n user
+inherit ruby-ng strip-linguas user
 
 DESCRIPTION="A ruby IRC bot"
 HOMEPAGE="https://ruby-rbot.org/";



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2021-03-09 Thread Hans de Graaff
commit: 6ec5bf128af36c9e6e95047f7e7c296ed1d3714c
Author: Hans de Graaff  gentoo  org>
AuthorDate: Tue Mar  9 09:41:38 2021 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Tue Mar  9 09:41:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ec5bf12

net-irc/rbot: add ruby26, ruby27; drop shorturl USE flag

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff  gentoo.org>

 net-irc/rbot/metadata.xml|  5 -
 ...0160325-r1.ebuild => rbot-0.9.15_p20160325-r2.ebuild} | 16 +++-
 2 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/net-irc/rbot/metadata.xml b/net-irc/rbot/metadata.xml
index 9be5ac250eb..c24f8a72630 100644
--- a/net-irc/rbot/metadata.xml
+++ b/net-irc/rbot/metadata.xml
@@ -20,11 +20,6 @@
 Add dependency over dev-ruby/mechanize, which is needed
 to enable the "translator" plugin for rbot. If the USE flag is
 disabled the plugin is also disabled by default.
-  
-
-Add dependency over dev-ruby/shorturl, which is needed
-to enable the "shortenurl" plugin for rbot. If the USE flag is
-disabled the plugin is also disabled by default.
   
 
 Build and install translation for the messages coming from the bot

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
similarity index 94%
rename from net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
rename to net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
index 495f009bcfe..d4bbfeb5e71 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-USE_RUBY="ruby23 ruby24 ruby25"
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
 
 GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
-inherit ruby-ng eutils user
+inherit ruby-ng l10n user
 
 DESCRIPTION="A ruby IRC bot"
 HOMEPAGE="https://ruby-rbot.org/";
@@ -14,13 +14,11 @@ 
SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> ${
 LICENSE="|| ( feh GPL-2 )"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="spell aspell timezone translator shorturl nls figlet
+IUSE="spell aspell timezone translator nls figlet
fortune cal host sqlite toilet"
 ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
 RUBY_S="${PN}-${GITHUB_COMMIT}"
 
-RUBY_PATCHES=( rbot-rakefile-gettext.patch )
-
 RDEPEND+="
spell? (
aspell? ( app-text/aspell )
@@ -46,7 +44,6 @@ ruby_add_rdepend "
dev-ruby/tokyocabinet
timezone? ( dev-ruby/tzinfo:* )
translator? ( dev-ruby/mechanize )
-   shorturl? ( dev-ruby/shorturl )
nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
 "
 
@@ -55,6 +52,8 @@ pkg_setup() {
 }
 
 all_ruby_prepare() {
+   eapply -p0 "${FILESDIR}"/rbot-rakefile-gettext.patch
+
# Avoid tests that are only compatible with ruby22
rm -f test/test_journal.rb || die
 
@@ -104,7 +103,6 @@ all_ruby_compile() {
 
use_rbot_plugin timezone time
use_rbot_plugin translator translator
-   use_rbot_plugin shorturl shortenurls
 
use_rbot_plugin fortune fortune
use_rbot_conf_path fortune fortune.path /usr/bin/fortune



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2020-05-06 Thread Michał Górny
commit: 5049f71057e4f0acf977734c89a48390a4194b79
Author: Michał Górny  gentoo  org>
AuthorDate: Wed May  6 16:57:03 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed May  6 17:24:59 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5049f710

net-irc/rbot: Remove stale sys-freebsd/ deps

Signed-off-by: Michał Górny  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index 5b654a853d1..495f009bcfe 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -30,7 +30,7 @@ RDEPEND+="
sqlite? ( dev-ruby/sqlite3 )
toilet? ( app-misc/toilet )
fortune? ( games-misc/fortune-mod )
-   cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) )
+   cal? ( sys-apps/util-linux )
host? ( net-dns/bind-tools )"
 
 ruby_add_bdepend "



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2019-04-12 Thread Hans de Graaff
commit: 48f11913ea86729372a518c5890982bb7e61ca98
Author: Hans de Graaff  gentoo  org>
AuthorDate: Fri Apr 12 13:58:05 2019 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Fri Apr 12 13:58:31 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48f11913

net-irc/rbot: add ruby25

Signed-off-by: Hans de Graaff  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index 016856b20d7..5b654a853d1 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby23 ruby24"
+USE_RUBY="ruby23 ruby24 ruby25"
 
 GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
 inherit ruby-ng eutils user



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2018-07-01 Thread Hans de Graaff
commit: 2768073baf667b8e946fc227e89a32ef64ae4a55
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Jul  1 06:49:01 2018 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jul  1 06:49:01 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2768073b

net-irc/rbot: add ruby24

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index 646672e5f3e..016856b20d7 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-USE_RUBY="ruby21 ruby22 ruby23"
+USE_RUBY="ruby23 ruby24"
 
 GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
 inherit ruby-ng eutils user



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2018-03-26 Thread Robin H. Johnson
commit: 5c0d94bc1500d1e5b55110cbe18251d456ceabf5
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Mar 17 16:26:51 2018 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Mon Mar 26 18:39:12 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c0d94bc

net-irc/rbot: use HTTPS

(cherry picked from commit 84bbb9b316454c7255098caa2508053d3edbcf6d)
Signed-off-by: Robin H. Johnson  gentoo.org>

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index c176e4cd985..646672e5f3e 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -8,7 +8,7 @@ GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
 inherit ruby-ng eutils user
 
 DESCRIPTION="A ruby IRC bot"
-HOMEPAGE="http://ruby-rbot.org/";
+HOMEPAGE="https://ruby-rbot.org/";
 SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="|| ( feh GPL-2 )"



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2018-01-21 Thread Hans de Graaff
commit: 0b83ea1efb4e1acc6a76441c86779770a8862b2c
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Jan 21 19:11:24 2018 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jan 21 19:36:42 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b83ea1e

net-irc/rbot: cleanup

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 net-irc/rbot/rbot-0.9.15_p20160325.ebuild | 185 --
 1 file changed, 185 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
deleted file mode 100644
index ee7d5458ae7..000
--- a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
+++ /dev/null
@@ -1,185 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-USE_RUBY="ruby20 ruby21 ruby22"
-
-GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
-inherit ruby-ng eutils user
-
-DESCRIPTION="A ruby IRC bot"
-HOMEPAGE="http://ruby-rbot.org/";
-SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="|| ( feh GPL-2 )"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="spell aspell timezone translator shorturl nls figlet
-   fortune cal host toilet"
-ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
-RUBY_S="${PN}-${GITHUB_COMMIT}"
-
-RUBY_PATCHES=( rbot-rakefile-gettext.patch )
-
-RDEPEND+="
-   spell? (
-   aspell? ( app-text/aspell )
-   !aspell? ( app-text/hunspell )
-   )
-   figlet? ( app-misc/figlet )
-   toilet? ( app-misc/toilet )
-   fortune? ( games-misc/fortune-mod )
-   cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) )
-   host? ( net-dns/bind-tools )"
-
-ruby_add_bdepend "
-   nls? (
-   >=dev-ruby/ruby-gettext-2
-   dev-ruby/rake
-   )"
-
-ruby_add_rdepend "
-   dev-ruby/tokyocabinet
-   timezone? ( dev-ruby/tzinfo:* )
-   translator? ( dev-ruby/mechanize )
-   shorturl? ( dev-ruby/shorturl )
-   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
-"
-
-pkg_setup() {
-   enewuser rbot -1 -1 /var/lib/rbot nobody
-}
-
-all_ruby_prepare() {
-   # Avoid tests that are only compatible with ruby22
-   rm -f test/test_journal.rb || die
-
-   # Fix deprecated code that was removed with ruby22
-   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
-}
-
-all_ruby_compile() {
-   disable_rbot_plugin() {
-   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
-   }
-   use_rbot_plugin() {
-   use $1 && return
-   disable_rbot_plugin "$2"
-   }
-   rbot_conf() {
-   echo "$1: $2" >> "${T}"/rbot.conf
-   }
-   use_rbot_conf_path() {
-   use "$1" \
-   && rbot_conf "$2" "$3" \
-   || rbot_conf "$2" /bin/false
-   }
-
-   local spell_program="/usr/bin/hunspell -i"
-   if use !spell; then
-   disable_rbot_plugin spell
-   spell_program="/bin/false"
-   elif use aspell; then
-   spell_program="/usr/bin/ispell-aspell"
-   fi
-
-   rbot_conf spell.program "${spell_program}"
-
-   if use !figlet && use !toilet; then
-   disable_rbot_plugin figlet
-   fi
-
-   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
-   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
-
-   use_rbot_plugin timezone time
-   use_rbot_plugin translator translator
-   use_rbot_plugin shorturl shortenurls
-
-   use_rbot_plugin fortune fortune
-   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
-
-   use_rbot_plugin cal cal
-   use_rbot_conf_path cal cal.path /usr/bin/cal
-
-   use_rbot_plugin host host
-   use_rbot_conf_path host host.path /usr/bin/host
-
-   local rbot_datadir="${D}"/usr/share/rbot
-
-   # This is unfortunately pretty manual at the moment, but it's just
-   # to avoid having to run special scripts to package new versions
-   # of rbot. The default if new languages are added that are not
-   # considered for an opt-out here is to install them, so you just
-   # need to add them later.
-   if use nls; then
-   strip-linguas ${ILINGUAS}
-   if [[ -n ${LINGUAS+set} ]]; then
-   # As the the language name used by the rbot data files 
does
-   # not correspond to the ISO codes we usually use for 
LINGUAS,
-   # the following list of local varables will work as a
-   # dictionary to get the name used by rbot from the ISO 
code.
-   local lang_rbot_zh_CN="traditional_chinese"
-   local lang_rbot_ru="russian"
-   local lang_rbot_nl="dutch"
-   local lang_rbot_de="german"
-   local lang_rbot_fi="finnish

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2018-01-07 Thread Ulrich Müller
commit: 77d6212dcb6dc56546ebd37944bff21bbfc56420
Author: Ulrich Müller  gentoo  org>
AuthorDate: Sun Jan  7 11:20:11 2018 +
Commit: Ulrich Müller  gentoo  org>
CommitDate: Sun Jan  7 11:20:40 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77d6212d

net-irc/rbot: Test LINGUAS rather than linguas_* USE flags.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 10 +++---
 net-irc/rbot/rbot-0.9.15_p20160325.ebuild| 10 +++---
 2 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index 9d5251d93d3..c176e4cd985 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,10 +19,6 @@ IUSE="spell aspell timezone translator shorturl nls figlet
 ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
 RUBY_S="${PN}-${GITHUB_COMMIT}"
 
-for lang in $ILINGUAS; do
-   IUSE="${IUSE} linguas_${lang}"
-done
-
 RUBY_PATCHES=( rbot-rakefile-gettext.patch )
 
 RDEPEND+="
@@ -128,7 +124,7 @@ all_ruby_compile() {
# need to add them later.
if use nls; then
strip-linguas ${ILINGUAS}
-   if [[ -n ${LINGUAS} ]]; then
+   if [[ -n ${LINGUAS+set} ]]; then
# As the the language name used by the rbot data files 
does
# not correspond to the ISO codes we usually use for 
LINGUAS,
# the following list of local varables will work as a
@@ -143,7 +139,7 @@ all_ruby_compile() {
local lang_rbot_ja="japanese"
 
for lang in ${ILINGUAS}; do
-   use linguas_${lang} && continue
+   has ${lang} ${LINGUAS} && continue
 
lang_varname="lang_rbot_${lang}"
lang_rbot=${!lang_varname}

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
index 48af140afb3..ee7d5458ae7 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -19,10 +19,6 @@ IUSE="spell aspell timezone translator shorturl nls figlet
 ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
 RUBY_S="${PN}-${GITHUB_COMMIT}"
 
-for lang in $ILINGUAS; do
-   IUSE="${IUSE} linguas_${lang}"
-done
-
 RUBY_PATCHES=( rbot-rakefile-gettext.patch )
 
 RDEPEND+="
@@ -118,7 +114,7 @@ all_ruby_compile() {
# need to add them later.
if use nls; then
strip-linguas ${ILINGUAS}
-   if [[ -n ${LINGUAS} ]]; then
+   if [[ -n ${LINGUAS+set} ]]; then
# As the the language name used by the rbot data files 
does
# not correspond to the ISO codes we usually use for 
LINGUAS,
# the following list of local varables will work as a
@@ -133,7 +129,7 @@ all_ruby_compile() {
local lang_rbot_ja="japanese"
 
for lang in ${ILINGUAS}; do
-   use linguas_${lang} && continue
+   has ${lang} ${LINGUAS} && continue
 
lang_varname="lang_rbot_${lang}"
lang_rbot=${!lang_varname}



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2017-07-15 Thread Hans de Graaff
commit: 00f0b308103fa371524c7e599dc5390cf9f7e36c
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Jul 16 06:41:13 2017 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Jul 16 06:45:38 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00f0b308

net-irc/rbot: add missing test dependency on sqlite, add USE=sqlite

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
index a81b65ee213..9d5251d93d3 100644
--- a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -15,7 +15,7 @@ LICENSE="|| ( feh GPL-2 )"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="spell aspell timezone translator shorturl nls figlet
-   fortune cal host toilet"
+   fortune cal host sqlite toilet"
 ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
 RUBY_S="${PN}-${GITHUB_COMMIT}"
 
@@ -31,12 +31,16 @@ RDEPEND+="
!aspell? ( app-text/hunspell )
)
figlet? ( app-misc/figlet )
+   sqlite? ( dev-ruby/sqlite3 )
toilet? ( app-misc/toilet )
fortune? ( games-misc/fortune-mod )
cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) )
host? ( net-dns/bind-tools )"
 
 ruby_add_bdepend "
+   test? (
+   dev-ruby/sqlite3
+   )
nls? (
>=dev-ruby/ruby-gettext-2
dev-ruby/rake



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2017-07-15 Thread Hans de Graaff
commit: b8d1ca81f98edc8cc79df33a53e623cf7530172d
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sat Jul 15 10:20:07 2017 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sat Jul 15 10:20:28 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d1ca81

net-irc/rbot: fix broken tests, bug 624744; add ruby23

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild | 195 +++
 1 file changed, 195 insertions(+)

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
new file mode 100644
index 000..a81b65ee213
--- /dev/null
+++ b/net-irc/rbot/rbot-0.9.15_p20160325-r1.ebuild
@@ -0,0 +1,195 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
+inherit ruby-ng eutils user
+
+DESCRIPTION="A ruby IRC bot"
+HOMEPAGE="http://ruby-rbot.org/";
+SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( feh GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="spell aspell timezone translator shorturl nls figlet
+   fortune cal host toilet"
+ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
+RUBY_S="${PN}-${GITHUB_COMMIT}"
+
+for lang in $ILINGUAS; do
+   IUSE="${IUSE} linguas_${lang}"
+done
+
+RUBY_PATCHES=( rbot-rakefile-gettext.patch )
+
+RDEPEND+="
+   spell? (
+   aspell? ( app-text/aspell )
+   !aspell? ( app-text/hunspell )
+   )
+   figlet? ( app-misc/figlet )
+   toilet? ( app-misc/toilet )
+   fortune? ( games-misc/fortune-mod )
+   cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) )
+   host? ( net-dns/bind-tools )"
+
+ruby_add_bdepend "
+   nls? (
+   >=dev-ruby/ruby-gettext-2
+   dev-ruby/rake
+   )"
+
+ruby_add_rdepend "
+   dev-ruby/tokyocabinet
+   timezone? ( dev-ruby/tzinfo:* )
+   translator? ( dev-ruby/mechanize )
+   shorturl? ( dev-ruby/shorturl )
+   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
+"
+
+pkg_setup() {
+   enewuser rbot -1 -1 /var/lib/rbot nobody
+}
+
+all_ruby_prepare() {
+   # Avoid tests that are only compatible with ruby22
+   rm -f test/test_journal.rb || die
+
+   # Fix deprecated code that was removed with ruby22
+   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
+
+   # Avoid tests for optional dependencies that are not packaged.
+   sed -i -e '/RegistryDaybreakTest/,/^end/ s:^:#:' test/test_registry.rb 
|| die
+
+   # Avoid broken tests that call code that doesn't exist
+   rm -f test/test_plugins_threshold.rb || die
+}
+
+all_ruby_compile() {
+   disable_rbot_plugin() {
+   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
+   }
+   use_rbot_plugin() {
+   use $1 && return
+   disable_rbot_plugin "$2"
+   }
+   rbot_conf() {
+   echo "$1: $2" >> "${T}"/rbot.conf
+   }
+   use_rbot_conf_path() {
+   use "$1" \
+   && rbot_conf "$2" "$3" \
+   || rbot_conf "$2" /bin/false
+   }
+
+   local spell_program="/usr/bin/hunspell -i"
+   if use !spell; then
+   disable_rbot_plugin spell
+   spell_program="/bin/false"
+   elif use aspell; then
+   spell_program="/usr/bin/ispell-aspell"
+   fi
+
+   rbot_conf spell.program "${spell_program}"
+
+   if use !figlet && use !toilet; then
+   disable_rbot_plugin figlet
+   fi
+
+   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
+   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
+
+   use_rbot_plugin timezone time
+   use_rbot_plugin translator translator
+   use_rbot_plugin shorturl shortenurls
+
+   use_rbot_plugin fortune fortune
+   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
+
+   use_rbot_plugin cal cal
+   use_rbot_conf_path cal cal.path /usr/bin/cal
+
+   use_rbot_plugin host host
+   use_rbot_conf_path host host.path /usr/bin/host
+
+   local rbot_datadir="${D}"/usr/share/rbot
+
+   # This is unfortunately pretty manual at the moment, but it's just
+   # to avoid having to run special scripts to package new versions
+   # of rbot. The default if new languages are added that are not
+   # considered for an opt-out here is to install them, so you just
+   # need to add them later.
+   if use nls; then
+   strip-linguas ${ILINGUAS}
+   if [[ -n ${LINGUAS} ]]; then
+   # As the the language name used by the rbot data files 
does
+   # not correspond to the ISO codes we usually use for 
LINGUAS,
+   # the following list of local varables w

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/files/

2017-01-22 Thread Michael Palimaka
commit: c416884809060c0f40b5710635a5a7a82284d5a3
Author: Michael Mair-Keimberger (asterix)  gmail 
 com>
AuthorDate: Sun Jan 22 08:54:09 2017 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Sun Jan 22 16:16:53 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4168848

net-irc/rbot: remove unused patch

 net-irc/rbot/files/rbot-rakefile.patch | 30 --
 1 file changed, 30 deletions(-)

diff --git a/net-irc/rbot/files/rbot-rakefile.patch 
b/net-irc/rbot/files/rbot-rakefile.patch
deleted file mode 100644
index 3574726..
--- a/net-irc/rbot/files/rbot-rakefile.patch
+++ /dev/null
@@ -1,30 +0,0 @@
 Rakefile.old   2013-08-20 01:00:05.0 +0200
-+++ Rakefile   2013-10-21 19:42:06.800019343 +0200
-@@ -1,5 +1,6 @@
- require 'rake'
--require 'rake/gempackagetask'
-+require 'rubygems'
-+require 'rubygems/package_task'
- 
- task :default => [:buildext]
- 
-@@ -15,7 +16,7 @@
- # we must (and can) skip defining the gem packaging tasks.
- if File.exist? SPECFILE
-   spec = eval(File.read(SPECFILE), nil, SPECFILE)
--  Rake::GemPackageTask.new(spec) do |pkg|
-+  Gem::PackageTask.new(spec) do |pkg|
- pkg.need_zip = true
- pkg.need_tar = true
-   end
-@@ -125,8 +126,8 @@
- }) do |t|
-   po_file, mo_file = t.source, t.name
-   puts "#{po_file} => #{mo_file}"
--  require 'gettext/utils'
--  GetText.rmsgfmt po_file, mo_file
-+  require 'gettext/tools'
-+  GetText::Tools::MsgFmt.run po_file, mo_file
- end
- 
- task :check_po_tools do



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2016-12-16 Thread Hans de Graaff
commit: f57f3bb1bf43c0c0a9d9ddbe9ab11f4577c514d5
Author: Hans de Graaff  gentoo  org>
AuthorDate: Fri Dec 16 20:28:16 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Fri Dec 16 21:02:11 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f57f3bb1

net-irc/rbot: remove unused USE flag description for dict

Package-Manager: portage-2.3.0

 net-irc/rbot/metadata.xml | 5 -
 1 file changed, 5 deletions(-)

diff --git a/net-irc/rbot/metadata.xml b/net-irc/rbot/metadata.xml
index 7568c0f..f51f366 100644
--- a/net-irc/rbot/metadata.xml
+++ b/net-irc/rbot/metadata.xml
@@ -30,11 +30,6 @@
 Build and install translation for the messages coming from the bot
 and its plugins (through dev-ruby/ruby-gettext).
   
-  
-Add dependency over dev-ruby/ruby-dict, which is needed
-to enable the "dict" plugin for rbot. If the USE flag is disabled
-the plugin is also disabled by default.
-  
   
 Add dependency over app-misc/figlet, which is used by
 the "figlet" plugin for rbot. If the USE flag is disabled the



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2016-12-16 Thread Hans de Graaff
commit: 2de0bb2e02f52c486c4921b4f49afa20a2a341ca
Author: Hans de Graaff  gentoo  org>
AuthorDate: Fri Dec 16 20:27:29 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Fri Dec 16 21:02:09 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2de0bb2e

net-irc/rbot: cleanup

Package-Manager: portage-2.3.0

 net-irc/rbot/Manifest|   1 -
 net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild | 176 ---
 2 files changed, 177 deletions(-)

diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest
index 10d848f..f04c94a 100644
--- a/net-irc/rbot/Manifest
+++ b/net-irc/rbot/Manifest
@@ -1,2 +1 @@
-DIST rbot-0.9.15_p20131020.tar.gz 773953 SHA256 
74b4db6a2b24784a1779518cd070bbf8cb6d4a5059167579d8226a0fc69cef15 SHA512 
3319031361f7ab23e43a997a94663790775047c50eb8eb51f3f579cf879ca822b48118060fdd9f2816d5d97c57de8f6fb7ce883457336f961ff25cf6c49a8d2a
 WHIRLPOOL 
8e77fdeb290dae0c4932628e010768217df223e94a5ec902ed48e9db3a2c2985ef2df932e84048ab8721b8d4bb954852397974afa02f1bdfc1e1b8533b58d812
 DIST rbot-0.9.15_p20160325.tar.gz 762685 SHA256 
ae638f53607ad0f1d365ff3c4408ef3c27c8e0f5e83ae355742185c1076ec96e SHA512 
b0bc90ee2c6ddb3cdd92cdd5f3a45520d20bc97327b3d694235f7ba94f13ef3c884d4658b083f71bfee2cbeff3cbc7a57c251c4d28bfee293e2556f64e7b4160
 WHIRLPOOL 
e2fbeb41c065ea8642bff49ffade38992c6ab7ccee107d1e140c1810daed869e6e378ac59f7453eeacf8f24e3a980dcb5b911f706475c6f2457a61e3b0483902

diff --git a/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild
deleted file mode 100644
index 581cccb..
--- a/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild
+++ /dev/null
@@ -1,176 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-USE_RUBY="ruby20 ruby21"
-
-inherit ruby-ng eutils user
-
-DESCRIPTION="A ruby IRC bot"
-HOMEPAGE="http://ruby-rbot.org/";
-SRC_URI="http://dev.a3li.li/gentoo/distfiles/${P}.tar.gz";
-
-LICENSE="|| ( feh GPL-2 )"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="spell aspell timezone translator shorturl nls dict figlet
-   fortune cal host toilet"
-ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
-RUBY_S="${PN}-master"
-
-for lang in $ILINGUAS; do
-   IUSE="${IUSE} linguas_${lang}"
-done
-
-RDEPEND+="
-   spell? (
-   aspell? ( app-text/aspell )
-   !aspell? ( app-text/hunspell )
-   )
-   figlet? ( app-misc/figlet )
-   toilet? ( app-misc/toilet )
-   fortune? ( games-misc/fortune-mod )
-   cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) )
-   host? ( net-dns/bind-tools )"
-
-ruby_add_bdepend "
-   nls? (
-   >=dev-ruby/ruby-gettext-2
-   dev-ruby/rake
-   )"
-
-ruby_add_rdepend "
-   dev-ruby/tokyocabinet
-   timezone? ( dev-ruby/tzinfo )
-   translator? ( dev-ruby/mechanize )
-   shorturl? ( dev-ruby/shorturl )
-   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
-   dict? ( >=dev-ruby/ruby-dict-0.9.4-r2 )"
-
-RUBY_PATCHES=( "rbot-rakefile.patch" )
-
-pkg_setup() {
-   enewuser rbot -1 -1 /var/lib/rbot nobody
-}
-
-all_ruby_compile() {
-   disable_rbot_plugin() {
-   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
-   }
-   use_rbot_plugin() {
-   use $1 && return
-   disable_rbot_plugin "$2"
-   }
-   rbot_conf() {
-   echo "$1: $2" >> "${T}"/rbot.conf
-   }
-   use_rbot_conf_path() {
-   use "$1" \
-   && rbot_conf "$2" "$3" \
-   || rbot_conf "$2" /bin/false
-   }
-
-   local spell_program="/usr/bin/hunspell -i"
-   if use !spell; then
-   disable_rbot_plugin spell
-   spell_program="/bin/false"
-   elif use aspell; then
-   spell_program="/usr/bin/ispell-aspell"
-   fi
-
-   rbot_conf spell.program "${spell_program}"
-
-   if use !figlet && use !toilet; then
-   disable_rbot_plugin figlet
-   fi
-
-   use_rbot_conf_path figlet figlet.path /usr/bin/figlet
-   use_rbot_conf_path toilet toilet.path /usr/bin/toilet
-
-   use_rbot_plugin timezone time
-   use_rbot_plugin translator translator
-   use_rbot_plugin shorturl shortenurls
-   use_rbot_plugin dict dictclient
-
-   use_rbot_plugin fortune fortune
-   use_rbot_conf_path fortune fortune.path /usr/bin/fortune
-
-   use_rbot_plugin cal cal
-   use_rbot_conf_path cal cal.path /usr/bin/cal
-
-   use_rbot_plugin host host
-   use_rbot_conf_path host host.path /usr/bin/host
-
-   local rbot_datadir="${D}"/usr/share/rbot
-
-   # This is unfortunately pretty manual at the moment, but it's just
-   # to avoid having to run special scripts to package new versions
-   # of rbot. The default if new languages are added that are not
-   # considered for an opt-out he

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2016-08-27 Thread Hans de Graaff
commit: d0263944503ca7dd9dc45e3ab4b17fa4ef340d96
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Aug 28 06:17:26 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Aug 28 06:17:26 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0263944

net-irc/rbot: add ruby project as maintainer

Package-Manager: portage-2.2.28

 net-irc/rbot/metadata.xml | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net-irc/rbot/metadata.xml b/net-irc/rbot/metadata.xml
index a907c2b..7568c0f 100644
--- a/net-irc/rbot/metadata.xml
+++ b/net-irc/rbot/metadata.xml
@@ -1,7 +1,10 @@
 
 http://www.gentoo.org/dtd/metadata.dtd";>
 
-
+  
+r...@gentoo.org
+Gentoo Ruby Project
+  
 
   
 Add dependency over dev-ruby/tzinfo to enable the "time"



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/, net-irc/rbot/files/

2016-08-27 Thread Hans de Graaff
commit: c3ba47fc9c1ad63b2bd674684b4a392fccd86c75
Author: Hans de Graaff  gentoo  org>
AuthorDate: Sun Aug 28 06:18:10 2016 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Sun Aug 28 06:18:10 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ba47fc

net-irc/rbot: add new upstream snapshot

Package-Manager: portage-2.2.28

 net-irc/rbot/Manifest  |   1 +
 net-irc/rbot/files/rbot-rakefile-gettext.patch |  13 ++
 net-irc/rbot/rbot-0.9.15_p20160325.ebuild  | 190 +
 3 files changed, 204 insertions(+)

diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest
index c65965d..10d848f 100644
--- a/net-irc/rbot/Manifest
+++ b/net-irc/rbot/Manifest
@@ -1 +1,2 @@
 DIST rbot-0.9.15_p20131020.tar.gz 773953 SHA256 
74b4db6a2b24784a1779518cd070bbf8cb6d4a5059167579d8226a0fc69cef15 SHA512 
3319031361f7ab23e43a997a94663790775047c50eb8eb51f3f579cf879ca822b48118060fdd9f2816d5d97c57de8f6fb7ce883457336f961ff25cf6c49a8d2a
 WHIRLPOOL 
8e77fdeb290dae0c4932628e010768217df223e94a5ec902ed48e9db3a2c2985ef2df932e84048ab8721b8d4bb954852397974afa02f1bdfc1e1b8533b58d812
+DIST rbot-0.9.15_p20160325.tar.gz 762685 SHA256 
ae638f53607ad0f1d365ff3c4408ef3c27c8e0f5e83ae355742185c1076ec96e SHA512 
b0bc90ee2c6ddb3cdd92cdd5f3a45520d20bc97327b3d694235f7ba94f13ef3c884d4658b083f71bfee2cbeff3cbc7a57c251c4d28bfee293e2556f64e7b4160
 WHIRLPOOL 
e2fbeb41c065ea8642bff49ffade38992c6ab7ccee107d1e140c1810daed869e6e378ac59f7453eeacf8f24e3a980dcb5b911f706475c6f2457a61e3b0483902

diff --git a/net-irc/rbot/files/rbot-rakefile-gettext.patch 
b/net-irc/rbot/files/rbot-rakefile-gettext.patch
new file mode 100644
index ..4fc3735
--- /dev/null
+++ b/net-irc/rbot/files/rbot-rakefile-gettext.patch
@@ -0,0 +1,13 @@
+--- Rakefile.old   2013-08-20 01:00:05.0 +0200
 Rakefile   2013-10-21 19:42:06.800019343 +0200
+@@ -125,8 +126,8 @@
+ }) do |t|
+   po_file, mo_file = t.source, t.name
+   puts "#{po_file} => #{mo_file}"
+-  require 'gettext/utils'
+-  GetText.rmsgfmt po_file, mo_file
++  require 'gettext/tools'
++  GetText::Tools::MsgFmt.run po_file, mo_file
+ end
+ 
+ task :check_po_tools do

diff --git a/net-irc/rbot/rbot-0.9.15_p20160325.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
new file mode 100644
index ..e458c90
--- /dev/null
+++ b/net-irc/rbot/rbot-0.9.15_p20160325.ebuild
@@ -0,0 +1,190 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+GITHUB_COMMIT="e358601cc521d8aced941eb928fae2d8c53cf0c2"
+inherit ruby-ng eutils user
+
+DESCRIPTION="A ruby IRC bot"
+HOMEPAGE="http://ruby-rbot.org/";
+SRC_URI="https://github.com/ruby-rbot/rbot/archive/${GITHUB_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="|| ( feh GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="spell aspell timezone translator shorturl nls figlet
+   fortune cal host toilet"
+ILINGUAS="zh_CN zh_TW ru nl de fi fr it ja"
+RUBY_S="${PN}-${GITHUB_COMMIT}"
+
+for lang in $ILINGUAS; do
+   IUSE="${IUSE} linguas_${lang}"
+done
+
+RUBY_PATCHES=( rbot-rakefile-gettext.patch )
+
+RDEPEND+="
+   spell? (
+   aspell? ( app-text/aspell )
+   !aspell? ( app-text/hunspell )
+   )
+   figlet? ( app-misc/figlet )
+   toilet? ( app-misc/toilet )
+   fortune? ( games-misc/fortune-mod )
+   cal? ( || ( sys-apps/util-linux sys-freebsd/freebsd-ubin ) )
+   host? ( net-dns/bind-tools )"
+
+ruby_add_bdepend "
+   nls? (
+   >=dev-ruby/ruby-gettext-2
+   dev-ruby/rake
+   )"
+
+ruby_add_rdepend "
+   dev-ruby/tokyocabinet
+   timezone? ( dev-ruby/tzinfo:* )
+   translator? ( dev-ruby/mechanize )
+   shorturl? ( dev-ruby/shorturl )
+   nls? ( dev-ruby/ruby-gettext >=dev-ruby/locale-2.0.5-r2 )
+"
+
+pkg_setup() {
+   enewuser rbot -1 -1 /var/lib/rbot nobody
+}
+
+all_ruby_prepare() {
+   # Avoid tests that are only compatible with ruby22
+   rm -f test/test_journal.rb || die
+
+   # Fix deprecated code that was removed with ruby22
+   sed -i -e 's/::Config/::RbConfig/' setup.rb || die
+}
+
+all_ruby_compile() {
+   disable_rbot_plugin() {
+   mv "${S}"/data/rbot/plugins/$1.rb{,.disabled}
+   }
+   use_rbot_plugin() {
+   use $1 && return
+   disable_rbot_plugin "$2"
+   }
+   rbot_conf() {
+   echo "$1: $2" >> "${T}"/rbot.conf
+   }
+   use_rbot_conf_path() {
+   use "$1" \
+   && rbot_conf "$2" "$3" \
+   || rbot_conf "$2" /bin/false
+   }
+
+   local spell_program="/usr/bin/hunspell -i"
+   if use !spell; then
+   disable_rbot_plugin spell
+   spell_program="/bin/false"
+   elif use aspell; then
+   spell_program="/usr/bin/ispell-aspell"
+   fi
+
+   rbot_conf spell.prog

[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2016-08-24 Thread Lars Wendler
commit: 61c5eaaf31fc452876189be4913511aee0cda349
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Aug 24 13:25:18 2016 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Aug 24 13:25:33 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c5eaaf

net-irc/rbot: Removed maintainer (as requested by him).

Package-Manager: portage-2.3.0
Signed-off-by: Lars Wendler  gentoo.org>

 net-irc/rbot/metadata.xml | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/net-irc/rbot/metadata.xml b/net-irc/rbot/metadata.xml
index 4772c78..a907c2b 100644
--- a/net-irc/rbot/metadata.xml
+++ b/net-irc/rbot/metadata.xml
@@ -1,11 +1,7 @@
 
 http://www.gentoo.org/dtd/metadata.dtd";>
 
-
-  a...@gentoo.org
-  Alex Legler
-  Primary maintainer
-
+
 
   
 Add dependency over dev-ruby/tzinfo to enable the "time"



[gentoo-commits] repo/gentoo:master commit in: net-irc/rbot/

2016-04-03 Thread Manuel Rüger
commit: 9bbc4b7faffe66c0cb348cde527bd48d1d9dfd79
Author: Manuel Rüger  gentoo  org>
AuthorDate: Sun Apr  3 18:00:23 2016 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Sun Apr  3 18:03:18 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bbc4b7f

net-irc/rbot: Remove ruby19

Package-Manager: portage-2.2.28

 net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild 
b/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild
index 5c5c279..581cccb 100644
--- a/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild
+++ b/net-irc/rbot/rbot-0.9.15_p20131020-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
-USE_RUBY="ruby19 ruby20 ruby21"
+USE_RUBY="ruby20 ruby21"
 
 inherit ruby-ng eutils user