From 47073787a0da094b0e51f31744e1ad905b2c6772 Mon Sep 17 00:00:00 2001 From: jonb Date: Wed, 6 Mar 2002 01:29:20 +0000 Subject: Generates anagrams for a phrase supplied by the user, the words used in the anagram are taken from a specified dictionary which should contain one word per line (default dictionary:/usr/share/dict/words). Some Anagrams Found Using an-0.93: Free Software Foundation - I'd fan out tons of freeware! National Security Agency - Lusty yearning at cocaine. President Dole - Led despite Ron. Central Intelligence Agency - Langley: Inelegant, eccentric. --- games/an/DESCR | 9 +++++++++ games/an/Makefile | 13 +++++++++++++ games/an/PLIST | 4 ++++ games/an/distinfo | 6 ++++++ games/an/patches/patch-aa | 29 +++++++++++++++++++++++++++++ games/an/patches/patch-ab | 19 +++++++++++++++++++ 6 files changed, 80 insertions(+) create mode 100644 games/an/DESCR create mode 100644 games/an/Makefile create mode 100644 games/an/PLIST create mode 100644 games/an/distinfo create mode 100644 games/an/patches/patch-aa create mode 100644 games/an/patches/patch-ab diff --git a/games/an/DESCR b/games/an/DESCR new file mode 100644 index 00000000000..5ecdce3c980 --- /dev/null +++ b/games/an/DESCR @@ -0,0 +1,9 @@ +Generates anagrams for a phrase supplied by the user, the words used in the +anagram are taken from a specified dictionary which should contain one +word per line (default dictionary:/usr/share/dict/words). + +Some Anagrams Found Using an-0.93: +Free Software Foundation - I'd fan out tons of freeware! +National Security Agency - Lusty yearning at cocaine. +President Dole - Led despite Ron. +Central Intelligence Agency - Langley: Inelegant, eccentric. diff --git a/games/an/Makefile b/games/an/Makefile new file mode 100644 index 00000000000..d003c338afd --- /dev/null +++ b/games/an/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/03/06 01:29:20 jonb Exp $ +# + +DISTNAME= an-0.93 +CATEGORIES= games +MASTER_SITES= ftp://suburbia.net/pub/rmj/ + +MAINTAINER= jonb@netbsd.org +COMMENT= Very fast anagram generator + +WRKSRC= ${WRKDIR}/an-0.93 + +.include "../../mk/bsd.pkg.mk" diff --git a/games/an/PLIST b/games/an/PLIST new file mode 100644 index 00000000000..0342dfb83b6 --- /dev/null +++ b/games/an/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/06 01:29:20 jonb Exp $ + +bin/an +man/man6/an.6 diff --git a/games/an/distinfo b/games/an/distinfo new file mode 100644 index 00000000000..e888c76b266 --- /dev/null +++ b/games/an/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/03/06 01:29:20 jonb Exp $ + +SHA1 (an-0.93.tar.gz) = 9202b32efa74da44150ea22d36e0bc104c01e7f8 +Size (an-0.93.tar.gz) = 84531 bytes +SHA1 (patch-aa) = 5aface8b7e7c78bf5b25e66ecb1f903e5717f0bf +SHA1 (patch-ab) = fd158133f22e77551440b43684f3bab773098dd1 diff --git a/games/an/patches/patch-aa b/games/an/patches/patch-aa new file mode 100644 index 00000000000..4a134cc958f --- /dev/null +++ b/games/an/patches/patch-aa @@ -0,0 +1,29 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/03/06 01:29:20 jonb Exp $ + +--- Makefile.orig Mon Mar 4 16:58:11 2002 ++++ Makefile +@@ -22,12 +22,12 @@ + + # Change these variables to suit your system + +-INSTALLDIR=/usr/games +-MANDIR=/usr/man/man6 ++INSTALLDIR=$(PREFIX)/bin ++MANDIR=$(PREFIX)/man/man6 + + + # Note that if you change CC here you must also change it in ./lib/Makefile +-CC=gcc ++#CC=gcc + + # if using a compiler which adheres strictly to ANSI C guidelines then + # uncomment the next line. +@@ -44,6 +44,8 @@ + GETOPT=$(LIBDIR)/getopt.o $(LIBDIR)/getopt1.o + MAN=an.6 + ++ ++all: $(BIN) $(MAN) + + $(BIN): $(OBJS) + $(CC) $(CFLAGS) -o $(BIN) $(OBJS) diff --git a/games/an/patches/patch-ab b/games/an/patches/patch-ab new file mode 100644 index 00000000000..276e2afb385 --- /dev/null +++ b/games/an/patches/patch-ab @@ -0,0 +1,19 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/03/06 01:29:20 jonb Exp $ + +--- an.c.orig Sun Sep 29 20:57:36 1996 ++++ an.c +@@ -33,13 +33,7 @@ + #define TRUE 1 + #define FALSE 0 + +-#ifndef DEFDICT +-# ifndef unix +-# define DEFDICT "words" +-# else +-# define DEFDICT "/usr/dict/words" +-# endif +-#endif ++#define DEFDICT "/usr/share/dict/words" + + #define MAXLINE 512 /* Maximum line length when reading DICTIONARY */ + #define MAXWORDS 512 /* Maximum number of words in anagram */ -- cgit v1.2.3