pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import agm-1.3.1 as wip/agm.
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Wed Jul 27 11:24:53 2016 +0200
Changeset: c68e744cb43e7c9d95a6115f33f15cde0b748a8d
Added Files:
agm/DESCR
agm/Makefile
agm/PLIST
agm/distinfo
agm/patches/patch-Makefile
agm/patches/patch-gobble.c
agm/patches/patch-listfuncs.c
agm/patches/patch-main.c
agm/patches/patch-output.c
agm/patches/patch-process.c
agm/patches/patch-progress.c
agm/patches/patch-sort.c
agm/patches/patch-wordfuncs.c
Log Message:
Import agm-1.3.1 as wip/agm.
Multiple-word anagram search program.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c68e744cb43e7c9d95a6115f33f15cde0b748a8d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
agm/DESCR | 1 +
agm/Makefile | 37 +++++++++++++++++++++++++++++++++++++
agm/PLIST | 5 +++++
agm/distinfo | 15 +++++++++++++++
agm/patches/patch-Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
agm/patches/patch-gobble.c | 20 ++++++++++++++++++++
agm/patches/patch-listfuncs.c | 14 ++++++++++++++
agm/patches/patch-main.c | 20 ++++++++++++++++++++
agm/patches/patch-output.c | 12 ++++++++++++
agm/patches/patch-process.c | 21 +++++++++++++++++++++
agm/patches/patch-progress.c | 31 +++++++++++++++++++++++++++++++
agm/patches/patch-sort.c | 12 ++++++++++++
agm/patches/patch-wordfuncs.c | 13 +++++++++++++
13 files changed, 244 insertions(+)
diffs:
diff --git a/agm/DESCR b/agm/DESCR
new file mode 100644
index 0000000..33d6af6
--- /dev/null
+++ b/agm/DESCR
@@ -0,0 +1 @@
+Multiple-word anagram search program.
diff --git a/agm/Makefile b/agm/Makefile
new file mode 100644
index 0000000..3e655c6
--- /dev/null
+++ b/agm/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+DISTNAME= agm-1.3.1
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.ibiblio.org/pub/linux/games/amusements/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= ftp://ftp.ibiblio.org/pub/linux/games/amusements/
+COMMENT= Multiple-word anagram search program
+LICENSE= generic-nonlicense
+
+SUBST_CLASSES+= rcsids
+SUBST_MESSAGE.rcsids= Strip RCS IDs as they cause problems when patching.
+SUBST_STAGE.rcsids= pre-patch
+SUBST_FILES.rcsids+= gobble.c
+SUBST_FILES.rcsids+= listfuncs.c
+SUBST_FILES.rcsids+= main.c
+SUBST_FILES.rcsids+= output.c
+SUBST_FILES.rcsids+= process.c
+SUBST_FILES.rcsids+= progress.c
+SUBST_FILES.rcsids+= sort.c
+SUBST_FILES.rcsids+= wordfuncs.c
+SUBST_SED.rcsids= -e "s!.Revision: !Revision: !"
+
+MAKE_FLAGS+= BINDIR=${PREFIX}/bin
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+= WORDDIR=${PREFIX}/share/agm
+MAKE_FLAGS+= CC=${CC}
+
+INSTALL_TARGET= install install-words
+
+REPLACE_INTERPRETER+= wish
+REPLACE.wish.old= /usr/bin/wish
+REPLACE.wish.new= ${LOCALBASE}/bin/wish
+REPLACE_FILES.wish= xagm
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/agm/PLIST b/agm/PLIST
new file mode 100644
index 0000000..b9effce
--- /dev/null
+++ b/agm/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/agm
+bin/xagm
+man/man6/agm.6
+share/agm/words
diff --git a/agm/distinfo b/agm/distinfo
new file mode 100644
index 0000000..c72e3bb
--- /dev/null
+++ b/agm/distinfo
@@ -0,0 +1,15 @@
+$NetBSD$
+
+SHA1 (agm-1.3.1.tar.gz) = 9afcbd47e8bbb79e2f08d009d10e9690ae9f200d
+RMD160 (agm-1.3.1.tar.gz) = b348b99ef9ef58f474d7a0acff572c369bbaf55e
+SHA512 (agm-1.3.1.tar.gz) = 143c6c3a31e542f59bbb0fab4372a2747f78b299fff07b9f136b41c930423b27a56f1c9635efa1248caf05d0449f6e63a0c5ed86d136a1c3ffa6309d64297687
+Size (agm-1.3.1.tar.gz) = 420211 bytes
+SHA1 (patch-Makefile) = 49f935efd6da8434f746989128fd1b6574f27369
+SHA1 (patch-gobble.c) = 0bc20bca00ca3e2238e249fdca9fd1a69a40df0e
+SHA1 (patch-listfuncs.c) = 52eaa5fff55ba1177e24948bc4426f3cff22ba35
+SHA1 (patch-main.c) = c3f24508acaa013a70cda5d58151ddee885bdd91
+SHA1 (patch-output.c) = ee69671c4b873056a96cb35ab5f525f7f33f8c62
+SHA1 (patch-process.c) = 1a6668a805a384d03569d6691359c7b0a31915fb
+SHA1 (patch-progress.c) = 395cb49258341b2cc0b24408fc8a2b78038e3dc9
+SHA1 (patch-sort.c) = 1f065a965a3a0b8bd6cb4c6c2702dfd77de66645
+SHA1 (patch-wordfuncs.c) = 607d46dc6a998b432ef616bb64b33311ad0a7a78
diff --git a/agm/patches/patch-Makefile b/agm/patches/patch-Makefile
new file mode 100644
index 0000000..dbb789d
--- /dev/null
+++ b/agm/patches/patch-Makefile
@@ -0,0 +1,43 @@
+$NetBSD$
+
+--- Makefile.orig 1998-03-18 01:02:29.000000000 +0000
++++ Makefile
+@@ -40,6 +40,7 @@
+ RELEASE=-DRELEASE=\"1.3\"
+ # Set this to the destination directory for the executable
+ #BINDIR=../../bin/`uname`
++DESTDIR?=
+ BINDIR=/usr/local/bin
+ # Location of manual pages
+ #MANDIR=../../man
+@@ -93,18 +94,22 @@ sample_output: agm
+ ./agm -c2 williamshatner leonardnimoy > sample_output
+
+ $(MANDIR)/man6:
+- mkdir $(MANDIR)/man6
++ install -d $(DESTDIR)$(MANDIR)/man6
+
+ install: agm agm.6 $(MANDIR)/man6
+- strip agm
+- cp {,x}agm $(BINDIR)
+- chmod 755 $(BINDIR)/{,x}agm
+- cp agm.6 $(MANDIR)/man6
+- chmod 644 $(MANDIR)/man6/agm.6
++ install -d $(DESTDIR)$(BINDIR)
++ cp agm $(DESTDIR)$(BINDIR)
++ cp xagm $(DESTDIR)$(BINDIR)
++ chmod 755 $(DESTDIR)$(BINDIR)/agm
++ chmod 755 $(DESTDIR)$(BINDIR)/xagm
++ install -d $(DESTDIR)$(MANDIR)/man6
++ cp agm.6 $(DESTDIR)$(MANDIR)/man6
++ chmod 644 $(DESTDIR)$(MANDIR)/man6/agm.6
+
+ install-words:
+- cp words $(WORDDIR)
+- chmod 644 $(WORDDIR)/words
++ install -d $(DESTDIR)$(WORDDIR)
++ cp words $(DESTDIR)$(WORDDIR)
++ chmod 644 $(DESTDIR)$(WORDDIR)/words
+
+ clean:
+ rm -f agm agm.o agm*.tar* agm*.shar agm.ps *.o
diff --git a/agm/patches/patch-gobble.c b/agm/patches/patch-gobble.c
new file mode 100644
index 0000000..64ad4d5
--- /dev/null
+++ b/agm/patches/patch-gobble.c
@@ -0,0 +1,20 @@
+$NetBSD$
+
+--- gobble.c.orig 2016-07-27 09:01:17.572044212 +0000
++++ gobble.c
+@@ -22,6 +22,10 @@ char gobble_RCSid[] = "Revision: 1.4 $";
+
+ #include "agm.h"
+
++#include <stdlib.h>
++#include <unistd.h>
++
++void
+ gobble_file (filename, command)
+ char *filename, *command;
+ {
+@@ -81,4 +85,3 @@ gobble_file (filename, command)
+ }
+ if (notquiet) printf (" %d words\n", wordcount - before_count);
+ }
+-
diff --git a/agm/patches/patch-listfuncs.c b/agm/patches/patch-listfuncs.c
new file mode 100644
index 0000000..41d00f4
--- /dev/null
+++ b/agm/patches/patch-listfuncs.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- listfuncs.c.orig 2016-07-27 09:01:17.575344491 +0000
++++ listfuncs.c
+@@ -18,6 +18,9 @@ char listfuncs_RCSid[] = "Revision: 1.3
+
+ #include "agm.h"
+
++#include <stdlib.h>
++
++void
+ destroy_list (ls, le)
+ struct wnode *ls, *le;
+ {
diff --git a/agm/patches/patch-main.c b/agm/patches/patch-main.c
new file mode 100644
index 0000000..6bd42d1
--- /dev/null
+++ b/agm/patches/patch-main.c
@@ -0,0 +1,20 @@
+$NetBSD$
+
+--- main.c.orig 2016-07-27 09:01:17.578668308 +0000
++++ main.c
+@@ -60,6 +60,7 @@ char main_RCSid[] = "Revision: 1.11 $";
+ #include "agm.h"
+ /* following just for getrusage () */
+ #include <unistd.h>
++#include <stdlib.h>
+
+ int listdict = FALSE; /* just output the final word dictionary */
+ int hardmin = FALSE; /* hard minimums on words */
+@@ -86,6 +87,7 @@ struct wnode *lstart = NULL, *lend = NUL
+
+ int pct= 0, lastpct = -1; /* percentage complete counters */
+
++int
+ main (argc, argv)
+ int argc;
+ char **argv;
diff --git a/agm/patches/patch-output.c b/agm/patches/patch-output.c
new file mode 100644
index 0000000..1d6ac16
--- /dev/null
+++ b/agm/patches/patch-output.c
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- output.c.orig 2016-07-27 09:17:40.617570040 +0000
++++ output.c
+@@ -24,6 +24,7 @@ char output_RCSid[] = "Revision: 1.5 $";
+
+ #include "agm.h"
+
++void
+ print_prevs (percent)
+ int percent;
+ {
diff --git a/agm/patches/patch-process.c b/agm/patches/patch-process.c
new file mode 100644
index 0000000..f672c4c
--- /dev/null
+++ b/agm/patches/patch-process.c
@@ -0,0 +1,21 @@
+$NetBSD$
+
+--- process.c.orig 2016-07-27 09:17:40.620865989 +0000
++++ process.c
+@@ -27,14 +27,11 @@ char process_RCSid[] = "Revision: 1.6 $"
+
+ #include "agm.h"
+
+-process (word, ls, le, minlen, maxw, depth)
++void
++process (char *word, struct vnode *ls, struct vnode *le, unsigned int minlen, unsigned int maxw, unsigned int depth)
+ /* searches the list ls - le for words which can be extracted from
+ word; if a word extracts exactly, the words in prevs are printed out,
+ otherwise, a sublist is built, and process() called recursively */
+- char *word;
+- struct wnode *ls, *le;
+- unsigned int minlen;
+- unsigned int depth;
+ {
+ char newword[WORDLEN];
+ struct wnode *loop;
diff --git a/agm/patches/patch-progress.c b/agm/patches/patch-progress.c
new file mode 100644
index 0000000..053c0f4
--- /dev/null
+++ b/agm/patches/patch-progress.c
@@ -0,0 +1,31 @@
+$NetBSD$
+
+--- progress.c.orig 2016-07-27 09:17:40.624147412 +0000
++++ progress.c
+@@ -7,6 +7,8 @@ char progress_RCSid[] = "Revision: 1.1 $
+
+ #include "agm.h"
+
++#include <signal.h>
++
+ void print_progress () {
+ printf ("%02d\b\b", pct);
+ fflush (stdout);
+@@ -18,7 +20,7 @@ void arm_timer ()
+ struct itimerval tmr;
+
+ action.sa_handler = &print_progress;
+- action.sa_mask = 0;
++ sigemptyset(&action.sa_mask);
+ action.sa_flags = 0;
+ sigaction (SIGALRM, &action, NULL);
+
+@@ -41,7 +43,7 @@ void disarm_timer ()
+ setitimer (ITIMER_REAL, &tmr, NULL);
+
+ action.sa_handler = SIG_DFL;
+- action.sa_mask = 0;
++ sigemptyset(&action.sa_mask);
+ action.sa_flags = 0;
+ sigaction (SIGALRM, &action, NULL);
+ }
diff --git a/agm/patches/patch-sort.c b/agm/patches/patch-sort.c
new file mode 100644
index 0000000..b2fb00a
--- /dev/null
+++ b/agm/patches/patch-sort.c
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- sort.c.orig 2016-07-27 09:17:40.627432117 +0000
++++ sort.c
+@@ -14,6 +14,7 @@ char sort_RCSid[] = "Revision: 1.2 $";
+
+ #include "agm.h"
+
++void
+ merge_sort (start, length)
+ struct wnode **start;
+ int length;
diff --git a/agm/patches/patch-wordfuncs.c b/agm/patches/patch-wordfuncs.c
new file mode 100644
index 0000000..de28c3b
--- /dev/null
+++ b/agm/patches/patch-wordfuncs.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- wordfuncs.c.orig 2016-07-27 09:17:40.630710048 +0000
++++ wordfuncs.c
+@@ -14,6 +14,8 @@ char wordfuncs_RCSid[] = "Revision: 1.2
+
+ #include "agm.h"
+
++#include <stdlib.h>
++
+ int contains (word, subword, length)
+ char *word, *subword;
+ unsigned int *length;
Home |
Main Index |
Thread Index |
Old Index