summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-22 13:08:56 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-22 13:08:56 +0000
commit956d9e9fa94a439287be8544a04b48472594f1f9 (patch)
tree55f1f9f32308952dd5c02c7bff67c202f3d4a5d3 /net-irc
parentVersion bump. Packages depending on dev-java/poi are not compatible with this... (diff)
downloadhistorical-956d9e9fa94a439287be8544a04b48472594f1f9.tar.gz
historical-956d9e9fa94a439287be8544a04b48472594f1f9.tar.bz2
historical-956d9e9fa94a439287be8544a04b48472594f1f9.zip
Version bump (after a long time).
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/rbot/ChangeLog7
-rw-r--r--net-irc/rbot/Manifest14
-rw-r--r--net-irc/rbot/rbot-0.9.14.ebuild185
3 files changed, 204 insertions, 2 deletions
diff --git a/net-irc/rbot/ChangeLog b/net-irc/rbot/ChangeLog
index 16586692057e..2f3642880e31 100644
--- a/net-irc/rbot/ChangeLog
+++ b/net-irc/rbot/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-irc/rbot
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.39 2008/07/25 07:27:42 wormo Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/ChangeLog,v 1.40 2008/10/22 13:08:56 flameeyes Exp $
+
+*rbot-0.9.14 (22 Oct 2008)
+
+ 22 Oct 2008; Diego Pettenò <flameeyes@gentoo.org> +rbot-0.9.14.ebuild:
+ Version bump (after a long time).
25 Jul 2008; Stephanie Lockwood-Childs <wormo@gentoo.org>
rbot-0.9.11_rc2.ebuild:
diff --git a/net-irc/rbot/Manifest b/net-irc/rbot/Manifest
index b30582061266..f4f93755170e 100644
--- a/net-irc/rbot/Manifest
+++ b/net-irc/rbot/Manifest
@@ -1,9 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX rbot.conf 944 RMD160 1926da2ac328f7a76dacc0ee3690f664a6419cfc SHA1 79c59f667599a92a88363338e12e42b22b574d32 SHA256 89ccc3e036414c2a4b1ba8338408cc9a5b89c3bfae4268a27fb9c6094bcc95f6
AUX rbot.init 1564 RMD160 75a73a12ee0b40fbdaaaf084504a5fe67bbb8770 SHA1 3ed3ba18f82d87d6dbc57c3d7b5f3525b74f9f33 SHA256 6755c99f34b679decace984c63d1c93f1f2d44cd73eab92ad0a225c5add5af57
DIST rbot-0.9.10.gem 387584 RMD160 a29dd55aa894fac89b2cc0a05f694df8c7e1489c SHA1 53c85bf45239fc572fcc6e4d68bb9601a0d5df6e SHA256 3433783e2be481d63072c5ef03dd4f61b09bee0520c306607ad1e0fa46b8a4b5
DIST rbot-0.9.11-rc2.tgz 623806 RMD160 8ff0521699a8170e2bfdcd4afdf2aaa751830e7f SHA1 8ad7e794916988ad30e56f72c96c6778df4e3ddb SHA256 0c26b97df9f79ea57478811fb360d9631b1cfbd22bb75337f1152296c528d1af
+DIST rbot-0.9.14.tgz 630261 RMD160 46360a63f61520b60053c2db5fbe6e167123b93f SHA1 c5858ad483b358a9fb28106feeabc1f4f704a0e8 SHA256 4f20cfb6b2fbb3add7edca46a99e7e09d491ac8e63509848dd80342017259321
EBUILD rbot-0.9.10-r1.ebuild 641 RMD160 d27bacc724b57e685cc112efd8f5dfdf84431c04 SHA1 21cd8238ec956f1d1677db004ba7e85fcdbb8668 SHA256 7495b3782e13fe7ff39b4fd0fa52a6568c88cc3198ff995075251b82afa13597
EBUILD rbot-0.9.11_rc2.ebuild 4699 RMD160 5b93b5c96da5384048ae71d67d35e2f1ea92145d SHA1 05dd49e8b00f414203881cb519abf91669ab93c9 SHA256 54e9513e341614ef74eba6d846bb625519939591849e5aadee5896e0774526a1
+EBUILD rbot-0.9.14.ebuild 4699 RMD160 34a7f0d1b02385e5c9c0e37b743604738b0c2455 SHA1 0d0d524b3837f2807f5d2654f3c135ade1afc721 SHA256 292129dfdd7dfc3b713bb96e4f6a9b7d91b44508ef3fc721fc3e8e91a18f4ec5
EBUILD rbot-9999-r10.ebuild 4668 RMD160 bd829e0c9bd50ef8d3f6a436a16eebf428d6c386 SHA1 33682565f034e238d002b84e85a5cfc5945be289 SHA256 a2c9427e1f3d7f70ed871e7e18e4f235bb2c3a2b4040470e824f269844ec268c
-MISC ChangeLog 7231 RMD160 281bd4058c024bfca655e1a9e1eef4a6ced878da SHA1 d4ed309521f876a5c7c5a01afc0114069deb5a8e SHA256 0aa85cb978465de73c931d2f2317332ec47b5086aa942e4e509dec322961f0da
+MISC ChangeLog 7374 RMD160 3dda85aff4373105809b102969ddff9b0cc56a7d SHA1 b74e57e684d855e52e6fe78fce54aa71b949c07f SHA256 e6d8e6cc141c48cc9a3aece5dc7e25851966213d936899ab627fc17d2c3f611f
MISC metadata.xml 3059 RMD160 6422e54762960f35af992d79a5bd55a8044a47fa SHA1 01d4124e25c079e813bd3992111b143e2629525d SHA256 a8872b7aab9ba8f8bcb35714d317becb42cd3cf14fc7a8d2b5ec911e72b2f988
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkj/JfkACgkQAiZjviIA2XjGdQCgx+ShifTqGjqHT8717kMnGYMH
+jMkAoJJ1uKlgc1tUQ2GZupGWjhNBlNw4
+=8KBK
+-----END PGP SIGNATURE-----
diff --git a/net-irc/rbot/rbot-0.9.14.ebuild b/net-irc/rbot/rbot-0.9.14.ebuild
new file mode 100644
index 000000000000..310f3678288f
--- /dev/null
+++ b/net-irc/rbot/rbot-0.9.14.ebuild
@@ -0,0 +1,185 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/rbot/rbot-0.9.14.ebuild,v 1.1 2008/10/22 13:08:56 flameeyes Exp $
+
+inherit ruby eutils
+
+[[ ${PV} == *"9999" ]] && inherit git
+
+DESCRIPTION="rbot is a ruby IRC bot"
+HOMEPAGE="http://ruby-rbot.org/"
+
+LICENSE="GPL-2 as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="spell aspell timezone translator shorturl nls dict figlet
+ fortune cal host toilet hunspell"
+ILINGUAS="zh_CN zh_TW ru nl de fr it ja"
+
+for lang in $ILINGUAS; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+RDEPEND=">=virtual/ruby-1.8
+ dev-ruby/ruby-bdb
+ timezone? ( dev-ruby/tzinfo )
+ spell? (
+ aspell? ( app-text/aspell )
+ !aspell? (
+ hunspell? ( app-text/hunspell )
+ !hunspell? ( app-text/ispell )
+ )
+ )
+ translator? ( dev-ruby/mechanize )
+ shorturl? ( dev-ruby/shorturl )
+ nls? ( dev-ruby/ruby-gettext )
+ dict? ( dev-ruby/ruby-dict )
+ 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 )"
+DEPEND="
+ nls? (
+ dev-ruby/ruby-gettext
+ dev-ruby/rake
+ )"
+
+if [[ ${PV} == *"9999" ]]; then
+ SRC_URI=""
+ EGIT_REPO_URI="git://ruby-rbot.org/rbot.git"
+else
+ MY_P="${P/_/-}"
+ S="${WORKDIR}/${P%_*}"
+ SRC_URI="http://ruby-rbot.org/download/${MY_P}.tgz"
+fi
+
+pkg_setup() {
+ enewuser rbot -1 -1 /var/lib/rbot nobody
+}
+
+src_unpack() {
+ if [[ ${PV} == *"9999" ]]; then
+ git_src_unpack
+
+ cd "${S}"
+ sed -i -e '/\$version=/s:".\+":"'${PV}'":' bin/rbot \
+ || die "Unable to fix rbot script version."
+ else
+ unpack ${A}
+ fi
+}
+
+src_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/ispell"
+ if use !spell; then
+ disable_rbot_plugin spell
+ spell_program="/bin/false"
+ elif use aspell; then
+ spell_program="/usr/bin/ispell-aspell"
+ elif use hunspell; then
+ spell_program="/usr/bin/hunspell -i"
+ 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 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 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_fr="french"
+ local lang_rbot_it="italian"
+ local lang_rbot_ja="japanese"
+
+ for lang in ${ILINGUAS}; do
+ use linguas_${lang} && 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}
+ done
+ fi
+
+ rake makemo || die "locale generation failed"
+ fi
+
+ ruby_econf || die "ruby_econf failed"
+}
+
+src_install() {
+ ${RUBY} setup.rb install --prefix="${D}" \
+ || die "setup.rb install failed"
+
+ diropts -o rbot -g nobody -m 0700
+ keepdir /var/lib/rbot
+
+ insinto /etc
+ doins "${T}"/rbot.conf
+
+ newinitd "${FILESDIR}/rbot.init" rbot
+ newconfd "${FILESDIR}/rbot.conf" rbot
+}
+
+pkg_postinst() {
+ einfo
+ elog "rbot now can be started as a normal service."
+ elog "Check /etc/conf.d/rbot file for more information about this feature."
+ einfo
+}