diff options
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 000000000000..4ac9d8e43b87 --- /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 000000000000..b48a99b06bab --- /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 000000000000..b844d80b6aaf --- /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 000000000000..a0c31074ffd0 --- /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: |