From b49088575eb777ced2551f484da86317332d6087 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 24 Jul 2021 02:11:45 +0100 Subject: gentoo resync : 24.07.2021 --- net-irc/rbot/Manifest | 2 +- net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild | 193 -------------------------- net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild | 197 +++++++++++++++++++++++++++ 3 files changed, 198 insertions(+), 194 deletions(-) delete mode 100644 net-irc/rbot/rbot-0.9.15_p20160325-r2.ebuild create mode 100644 net-irc/rbot/rbot-0.9.15_p20160325-r3.ebuild (limited to 'net-irc/rbot') diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest index 72ea42fb2693..451d5d41eb51 100644 --- a/net-irc/rbot/Manifest +++ b/net-irc/rbot/Manifest @@ -4,5 +4,5 @@ AUX rbot.conf2 1111 BLAKE2B 22cfbcb92f8d0df664a03b26db6027837463c5f8f543829b772d AUX rbot.init 1459 BLAKE2B 3b58ca09d2073ef01f94ae1980ed9203d4cadc1a9512842e1ce53709ddb1cfab15228b41656aca5e69999ca933bfe45c94ac18af214b0e890f04912a56830ba8 SHA512 57f5504829ed7524b70102833a5de168f7ea08e594a92ece6d7c0f2eab7de8c9dd14a6d199c5e63b6298209bdf5de4adcb06aded0c23d05c35f7e9774742ecea AUX rbot.init2 1345 BLAKE2B 137df6384fde1e3ee9501ce38b31470605bf308827213924033b291f8aa567e90cb8421be6865f4df269aa9b8cc3b20c4b729f3cc4aaaa90959dec39382752ea SHA512 b3d8b83eea4d429a47657f4f9b6cb0aed6c283aa4e7535307305f33bc84c53c0c82e2b76a7cf45ec192c7db68c71e70ee5b000ffbd6f0ff59039de8f69f88dff DIST rbot-0.9.15_p20160325.tar.gz 762685 BLAKE2B 68146d241bd57198e0a7a9e5ae033827116bbe31d3bdc05bf42aa644c5dd900254bbe7317461aa553ad92daac299439721a85cd8dd41033cf38b9e97b268e1ee SHA512 b0bc90ee2c6ddb3cdd92cdd5f3a45520d20bc97327b3d694235f7ba94f13ef3c884d4658b083f71bfee2cbeff3cbc7a57c251c4d28bfee293e2556f64e7b4160 -EBUILD rbot-0.9.15_p20160325-r2.ebuild 5227 BLAKE2B 4d59e06fa44c51c75e3652dbb56c500e85a5514d4d57ff2ee7e69bcbcdec17a0485d1320125d227f2b2fb59ce40809e49ffdf697e0da57c51d9fd21ce0cc35a6 SHA512 76f57cf985223d6842b7b307f75382e5d63c27c76dbb2585a1b70bb45be6dd00c8a75107b086acd3ba89ee9ec74082e7bf3a456a350557f1862381a9f4f3eda2 +EBUILD rbot-0.9.15_p20160325-r3.ebuild 5243 BLAKE2B e265a1889ebd602e4eefb3d20388d07933904c1837c7b7d5e1cca48877de1c197ee11b84973f8fb15a54889c884f374053b88ddc7fee9a2f6f6ed2296ea27652 SHA512 fd1562e5b85681838b569921c5b312761e4e5806b7b3166ae6283bdb9f0fce2a66bea8267700a8f002a88a4a6ec5b58ec9c6f14e6a08753105b9dc168bd0a00f MISC metadata.xml 2429 BLAKE2B 74471471dec1be09b55dfa02344e81acddef59e9ec6e8aef5b777297ccef5a858dff6e6f955a1c22e970e93d2cd8864ef35002bfa5e0bbe8aeac799bc3d3dfa2 SHA512 3e91bac4f83db11e76233e1d60dbabe171a6235a57a95a130234cdc07de688ace7869ebe4358600d2b0e2f1c0beb450ab429279ca871bf8b6a2bbf3e437f343b 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 a49349572b5f..000000000000 --- 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 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" - local lang_rbot_fr="french" - local lang_rbot_it="italian" - local lang_rbot_ja="japanese" - - for lang in ${ILINGUAS}; do - has ${lang} ${LINGUAS} && continue - - lang_varname="lang_rbot_${lang}" - lang_rbot=${!lang_varname} - - rm -r \ - "${S}"/data/rbot/languages/${lang_rbot}.lang \ - "${S}"/data/rbot/templates/lart/larts-${lang_rbot} \ - "${S}"/data/rbot/templates/lart/praises-${lang_rbot} \ - "${S}"/data/rbot/templates/salut/salut-${lang_rbot} \ - "${S}"/po/${lang} &>/dev/null - done - fi - - ${RUBY} /usr/bin/rake makemo || die "locale generation failed" - fi -} - -each_ruby_compile() { - ${RUBY} setup.rb config --prefix="/usr" \ - || die "setup.rb install failed" -} - -each_ruby_test() { - pushd test || die - ${RUBY} -Ilib:. -e "Dir['test_*'].each{|f| require f}" || die - popd || die -} - -each_ruby_install() { - ${RUBY} setup.rb install --prefix="${D}" \ - || die "setup.rb install failed" -} - -all_ruby_install() { - diropts -o rbot -g nobody -m 0700 - keepdir /var/lib/rbot - - insinto /etc - doins "${T}"/rbot.conf - - newinitd "${FILESDIR}/rbot.init2" rbot - newconfd "${FILESDIR}/rbot.conf2" rbot -} - -pkg_postinst() { - elog "rbot can be started as a normal service." - elog "Check /etc/conf.d/rbot file for more information about this feature." - ewarn "DEPRECATION NOTICE:" - ewarn "The bdb database backend is deprecated and only available on Ruby 1.8." - ewarn "To migrate to the new tokyocabinet-based backend, change the core.db" - ewarn "parameter in your bot's conf.yaml to 'tc' and restart rbot." - ewarn "This procedure requires a Ruby version supporting both BDB and TC." -} 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 000000000000..a738ba756199 --- /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 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" + local lang_rbot_fr="french" + local lang_rbot_it="italian" + local lang_rbot_ja="japanese" + + for lang in ${ILINGUAS}; do + has ${lang} ${LINGUAS} && continue + + lang_varname="lang_rbot_${lang}" + lang_rbot=${!lang_varname} + + rm -r \ + "${S}"/data/rbot/languages/${lang_rbot}.lang \ + "${S}"/data/rbot/templates/lart/larts-${lang_rbot} \ + "${S}"/data/rbot/templates/lart/praises-${lang_rbot} \ + "${S}"/data/rbot/templates/salut/salut-${lang_rbot} \ + "${S}"/po/${lang} &>/dev/null + done + fi + + ${RUBY} /usr/bin/rake makemo || die "locale generation failed" + fi +} + +each_ruby_compile() { + ${RUBY} setup.rb config --prefix="/usr" \ + || die "setup.rb install failed" +} + +each_ruby_test() { + pushd test || die + ${RUBY} -Ilib:. -e "Dir['test_*'].each{|f| require f}" || die + popd || die +} + +each_ruby_install() { + ${RUBY} setup.rb install --prefix="${D}" \ + || die "setup.rb install failed" +} + +all_ruby_install() { + diropts -o rbot -g nobody -m 0700 + keepdir /var/lib/rbot + + insinto /etc + doins "${T}"/rbot.conf + + newinitd "${FILESDIR}/rbot.init2" rbot + newconfd "${FILESDIR}/rbot.conf2" rbot +} + +pkg_postinst() { + elog "rbot can be started as a normal service." + elog "Check /etc/conf.d/rbot file for more information about this feature." + ewarn "DEPRECATION NOTICE:" + ewarn "The bdb database backend is deprecated and only available on Ruby 1.8." + ewarn "To migrate to the new tokyocabinet-based backend, change the core.db" + ewarn "parameter in your bot's conf.yaml to 'tc' and restart rbot." + ewarn "This procedure requires a Ruby version supporting both BDB and TC." +} -- cgit v1.2.3