diff options
author | Marco Cecchetti <mrc.ildp@gmail.com> | 2010-05-12 23:29:02 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:29:02 +0200 |
commit | 2dd617e910c010884975a313dbfd4722907fbe7c (patch) | |
tree | 59b456f04e8a871c40ace9ab3f6407a788f0e768 /games/Chatbot-Eliza | |
parent | bfb4cfeb21264b49a6ca54ecf66dff331de8c37b (diff) | |
download | slackbuilds-2dd617e910c010884975a313dbfd4722907fbe7c.tar.gz |
games/Chatbot-Eliza: Added to 12.2 repository
Diffstat (limited to 'games/Chatbot-Eliza')
-rw-r--r-- | games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild | 63 | ||||
-rw-r--r-- | games/Chatbot-Eliza/Chatbot-Eliza.info | 8 | ||||
-rw-r--r-- | games/Chatbot-Eliza/README | 11 | ||||
-rw-r--r-- | games/Chatbot-Eliza/slack-desc | 19 |
4 files changed, 101 insertions, 0 deletions
diff --git a/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild b/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild new file mode 100644 index 0000000000..4ac9d8e43b --- /dev/null +++ b/games/Chatbot-Eliza/Chatbot-Eliza.SlackBuild @@ -0,0 +1,63 @@ +#!/bin/sh + +# Slackware build script for Chatbot-Eliza + +# Written by (Marco Cecchetti) (mrc.ildp@gmail.com) +# +# Modified by the SlackBuilds.org project. + +PRGNAM=Chatbot-Eliza +VERSION=${VERSION:-1.04} +ARCH=${ARCH:-noarch} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +perl Makefile.PL +make +make install INSTALLDIRS=vendor DESTDIR=$PKG + +mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share +gzip -9 $PKG/usr/man/man3/* 2> /dev/null + +# Remove perlocal.pod and .packlist from $PKG +( for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -f {} \; + done +) + +# Remove empty directories +find $PKG -depth -type d -empty -exec rm -rf {} \; + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples +cp -a README \ + $PKG/usr/doc/$PRGNAM-$VERSION + +cp -a simple doctor.txt deutsch* norsk* twobots *.cgi \ + $PKG/usr/doc/$PRGNAM-$VERSION/examples +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/games/Chatbot-Eliza/Chatbot-Eliza.info b/games/Chatbot-Eliza/Chatbot-Eliza.info new file mode 100644 index 0000000000..b48a99b06b --- /dev/null +++ b/games/Chatbot-Eliza/Chatbot-Eliza.info @@ -0,0 +1,8 @@ +PRGNAM="Chatbot-Eliza" +VERSION="1.04" +HOMEPAGE="http://search.cpan.org/dist/Chatbot-Eliza/" +DOWNLOAD="http://search.cpan.org/CPAN/authors/id/J/JN/JNOLAN/Chatbot-Eliza-1.04.tar.gz" +MD5SUM="754199bbe591eaa11301aee108586fcd" +MAINTAINER="Marco Cecchetti" +EMAIL="mrc.ildp@gmail.com" +APPROVED="dsomero" diff --git a/games/Chatbot-Eliza/README b/games/Chatbot-Eliza/README new file mode 100644 index 0000000000..b844d80b6a --- /dev/null +++ b/games/Chatbot-Eliza/README @@ -0,0 +1,11 @@ +Chatbot-Eliza (Eliza chat bot interface module for Perl) + +The original ELIZA program was written by Joseph Weizenbaum and described +in the Communications of the ACM in 1967. Chatbot-Eliza is a clone of the +classic ELIZA program written as perl module. It prompts for user input, +and uses a simple transformation algorithm to change user input into a +fellow-up question. + +The package includes some example scripts. + + diff --git a/games/Chatbot-Eliza/slack-desc b/games/Chatbot-Eliza/slack-desc new file mode 100644 index 0000000000..a0c31074ff --- /dev/null +++ b/games/Chatbot-Eliza/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +Chatbot-Eliza: Chatbot-Eliza (Eliza chat bot interface module for Perl) +Chatbot-Eliza: +Chatbot-Eliza: Chatbot-Eliza is a clone written in Perl of the classic Eliza +Chatbot-Eliza: program. It prompts for user input, and uses a simple +Chatbot-Eliza: transformation algorithm to change user input into a fellow-up +Chatbot-Eliza: question. +Chatbot-Eliza: +Chatbot-Eliza: HomePage: http://search.cpan.org/dist/Chatbot-Eliza/ +Chatbot-Eliza: +Chatbot-Eliza: +Chatbot-Eliza: |