summaryrefslogtreecommitdiff
path: root/net-irc/rbot
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-01-26 15:48:02 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-01-26 15:48:02 +0000
commit38b7258d086dd5e263c3bbe3880c8c956676bc71 (patch)
tree6fce284d5bfddaf597a490ac66069d16c6a485db /net-irc/rbot
parent0ebf740b9c9bc7c10ac41bea315ecc6c01c79166 (diff)
gentoo resync : 25.01.2018
Diffstat (limited to 'net-irc/rbot')
-rw-r--r--net-irc/rbot/Manifest1
-rw-r--r--net-irc/rbot/rbot-0.9.15_p20160325.ebuild185
2 files changed, 0 insertions, 186 deletions
diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest
index 5e52882e86c2..1daca189fda1 100644
--- a/net-irc/rbot/Manifest
+++ b/net-irc/rbot/Manifest
@@ -5,5 +5,4 @@ AUX rbot.init 1459 BLAKE2B 3b58ca09d2073ef01f94ae1980ed9203d4cadc1a9512842e1ce53
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-r1.ebuild 5325 BLAKE2B 2648782ddb6029ed133b1c1093e9ddd43d1a98c26b8346441e96173da00443617de8f2ad115b62f71fb84cb884c031e5016dafb88c02dd1143b306b40ca446de SHA512 42df0523d058827fcac570f4f6e1790774f42b781f2cee460823c56b717fa7b3540d5b4b388bfa59c1edfa650dcfdba7951ca0fcbeec47bd95da95c1aaa1ea14
-EBUILD rbot-0.9.15_p20160325.ebuild 5021 BLAKE2B 1a8db5a4f0f31cc86032ebb0132448829679ae53f784f86a6e9982e312d3a83066bc18b5c547cd25ac454370817fc0a3240b7a0c17a5046584dd64d4bdb5c8fe SHA512 e2bb206bcc8439fe93474caa8d77b639340c42b77bbc48f425fbc1bdb818d97d726e4f9eda023c7f31963ffaf71a3d1b70e775d4769c1e34a59824327b38f35f
MISC metadata.xml 2656 BLAKE2B 47090f64bb983dfca142443a0f35ae99fa57927781177255e375e414c61a7555507d0110259f3a9ace86e42fadb237bbb5aecc251371bee9ff8ddaf1d414ea36 SHA512 03c3fc8b4f700eb1039feb5f656f772a55c3b928658e494c542cf69d3325d08b2723e23cfb753afe5ea3bad240011e642a4923e9a84673cba1e06b24cfc60918
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 ee7d5458ae7e..000000000000
--- 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"
- 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."
-}