summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-05-24 11:38:59 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-05-24 11:38:59 +0000
commitb74a4a7253682225c00d79ac69479f96bf46acb6 (patch)
treea01695f349c2ab2e2fa196fc3016264b5d9b257f /misc
parentAdd more files to pkg-plist and bump port revision (diff)
Add back peq, which was prematurely removed by will
Notes
Notes: svn path=/head/; revision=59885
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/peq/Makefile22
-rw-r--r--misc/peq/distinfo1
-rw-r--r--misc/peq/files/patch-aa90
-rw-r--r--misc/peq/files/patch-ab23
-rw-r--r--misc/peq/files/patch-ac13
-rw-r--r--misc/peq/files/patch-ad11
-rw-r--r--misc/peq/files/patch-ae13
-rw-r--r--misc/peq/files/patch-af13
-rw-r--r--misc/peq/pkg-comment1
-rw-r--r--misc/peq/pkg-descr4
-rw-r--r--misc/peq/pkg-plist4
12 files changed, 196 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 6f499537192b..3c44673b23fc 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -221,6 +221,7 @@
SUBDIR += pbs
SUBDIR += pdfmap
SUBDIR += pdmenu
+ SUBDIR += peq
SUBDIR += pg
SUBDIR += pinfo
SUBDIR += pl-sms
diff --git a/misc/peq/Makefile b/misc/peq/Makefile
new file mode 100644
index 000000000000..e58990b2abed
--- /dev/null
+++ b/misc/peq/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: peq
+# Date created: 2 April 1999
+# Whom: Gordon Greeff
+#
+# $FreeBSD$
+#
+
+PORTNAME= peq
+PORTVERSION= 0.7.1
+CATEGORIES= misc games
+MASTER_SITES= http://silverstone.fortunecity.com/jaguar/37/ \
+ ftp://lost.iafrica.com/pub/peq/
+
+MAINTAINER= gvg@uunet.co.za
+
+USE_QT_VER= 1
+
+post-install:
+ strip ${PREFIX}/bin/peq
+ strip ${PREFIX}/bin/xpeq
+
+.include <bsd.port.mk>
diff --git a/misc/peq/distinfo b/misc/peq/distinfo
new file mode 100644
index 000000000000..fed440bbcd2a
--- /dev/null
+++ b/misc/peq/distinfo
@@ -0,0 +1 @@
+MD5 (peq-0.7.1.tar.gz) = cbe58505f96538ef529bb8381a5a3291
diff --git a/misc/peq/files/patch-aa b/misc/peq/files/patch-aa
new file mode 100644
index 000000000000..ef968d528084
--- /dev/null
+++ b/misc/peq/files/patch-aa
@@ -0,0 +1,90 @@
+--- Makefile.orig Thu Mar 25 08:47:31 1999
++++ Makefile Fri May 24 04:36:25 2002
+@@ -4,10 +4,10 @@
+ VERSION = 0.7.1
+
+ # Your C++ compiler
+-CC = g++
++CC = $(CXX)
+
+ # Flags to pass to the C++ compiler
+-FLAGS = -O -Wall
++FLAGS = -DPREFIX=\"${PREFIX}\" ${CFLAGS} -L /usr/X11R6/lib -I /usr/X11R6/include
+
+ # Your tar
+ TAR = tar
+@@ -17,13 +17,13 @@
+ ZIPR = gzip -9
+
+ # Default installion directory for the console version of PEQ
+-DIR_CONSOLE_PEQ = /usr/games
++DIR_CONSOLE_PEQ = ${PREFIX}/bin
+
+ # Default installion directory for the X version of PEQ
+-DIR_X_PEQ = /usr/games
++DIR_X_PEQ = ${PREFIX}/bin
+
+ # Default installion directory for peq.lib (the quote library)
+-DIR_LIB = /usr/share/games
++DIR_LIB = ${PREFIX}/share/peq
+
+ # Get current date
+ LIB_DATE = `date +%m%d%y`
+@@ -40,31 +40,21 @@
+ $(CC) $(FLAGS) -c ocfile.cpp
+ $(CC) $(FLAGS) -c arg.cpp
+ $(CC) $(FLAGS) -o peq peq.cpp strmid.o show.o read.o proc.o ocfile.o arg.o
+- $(CC) $(FLAGS) -o xpeq -lqt xpeq.cpp strmid.o show.o read.o proc.o ocfile.o
++ $(CC) $(FLAGS) -o xpeq -lqt1 xpeq.cpp strmid.o show.o read.o proc.o ocfile.o
+
+-## "install" gives a handy message about how to install PEQ
+ install:
+- @echo "No such option! Use..."
+- @echo "'make install-console' to install the console of PEQ"
+- @echo "'make install-x' to install the X version of PEQ"
+- @echo "'make install-lib' to install peq.lib (the quote library)"
+- @echo "'make install-all' to install all of the above"
+- @echo "'make install-console-lib' to install console PEQ and peq.lib"
+- @echo "'make install-x-lib' to install X PEQ and peq.lib"
+- @echo "'make install-console-x' to install console and X PEQ"
+- @echo "If in doubt... just type 'make install-all' :-)"
++ make install-console ; make install-x ; make install-lib
+
+ install-console:
+- cp peq $(DIR_CONSOLE_PEQ)/peq -f
++ cp -f peq $(DIR_CONSOLE_PEQ)/peq
+
+ install-x:
+- cp xpeq $(DIR_X_PEQ)/xpeq -f
++ cp -f xpeq $(DIR_X_PEQ)/xpeq
+
+ install-lib:
+- cp peq.lib $(DIR_LIB)/peq.lib -f
+-
+-install-all:
+- make install-console ; make install-x ; make install-lib
++ rm -rf $(DIR_LIB)
++ mkdir $(DIR_LIB)
++ cp -f peq.lib $(DIR_LIB)/peq.lib
+
+ install-console-lib:
+ make install-console ; make install-lib
+@@ -78,9 +68,9 @@
+ ## "uninstall" erases all traces of PEQ from your system (but why would you
+ ## want to do that?)
+ uninstall:
+- rm $(DIR_CONSOLE_PEQ)/peq -f
+- rm $(DIR_X_PEQ)/xpeq -f
+- rm $(DIR_LIB)/peq.lib -f
++ rm -f $(DIR_CONSOLE_PEQ)/peq
++ rm -f $(DIR_X_PEQ)/xpeq
++ rm -f $(DIR_LIB)/peq.lib
+
+ ## "clean" cleans up all the junk and leaves the uncompiled code alone
+ clean:
+@@ -126,4 +116,4 @@
+ ## "dist" wraps peq.lib into a neat little tarball
+ dist-lib:
+ cp peq.lib peq.lib.$(LIB_DATE)
+- $(ZIPR) peq.lib.$(LIB_DATE)
++ $(ZIPR) peq.lib.$(LIB_DATE)
diff --git a/misc/peq/files/patch-ab b/misc/peq/files/patch-ab
new file mode 100644
index 000000000000..16b3765f7c65
--- /dev/null
+++ b/misc/peq/files/patch-ab
@@ -0,0 +1,23 @@
+--- xconfig.h.orig Thu Mar 25 08:47:31 1999
++++ xconfig.h Fri May 24 04:35:10 2002
+@@ -4,10 +4,10 @@
+ #include <time.h>
+ #include <string.h>
+ #include <strings.h>
+-#include <qapplication.h>
+-#include <qpushbutton.h>
+-#include <qlabel.h>
+-#include <qstring.h>
++#include <X11/qt1/qapplication.h>
++#include <X11/qt1/qpushbutton.h>
++#include <X11/qt1/qlabel.h>
++#include <X11/qt1/qstring.h>
+
+ /* strmid.cpp */
+ char strmid(char*,char*,int,int);
+@@ -32,4 +32,4 @@
+ long fsize(FILE*);
+
+ /* xpeq.cpp */
+-void f(char*);
++void f(char*);
diff --git a/misc/peq/files/patch-ac b/misc/peq/files/patch-ac
new file mode 100644
index 000000000000..09602f308fc8
--- /dev/null
+++ b/misc/peq/files/patch-ac
@@ -0,0 +1,13 @@
+--- ./xpeq.cpp.orig Thu Mar 25 08:47:31 1999
++++ ./xpeq.cpp Fri May 24 04:35:40 2002
+@@ -1,8 +1,8 @@
+
+ #include "xconfig.h"
+ #include "lib_path.h"
+-#include <qmenubar.h>
+-#include <qpopupmenu.h>
++#include <X11/qt1/qmenubar.h>
++#include <X11/qt1/qpopupmenu.h>
+
+ int cho;
+ int wrd;
diff --git a/misc/peq/files/patch-ad b/misc/peq/files/patch-ad
new file mode 100644
index 000000000000..d894cf33b07c
--- /dev/null
+++ b/misc/peq/files/patch-ad
@@ -0,0 +1,11 @@
+*** lib_path.h.orig Fri Apr 2 16:23:25 1999
+--- lib_path.h Fri Apr 2 16:23:18 1999
+***************
+*** 1,3 ****
+ /* Created automatically by config */
+! char lib_path[100]={"/usr/share/games/peq.lib"};
+
+--- 1,3 ----
+ /* Created automatically by config */
+! char lib_path[100]={PREFIX "/share/peq/peq.lib"};
+
diff --git a/misc/peq/files/patch-ae b/misc/peq/files/patch-ae
new file mode 100644
index 000000000000..2574f5d031fd
--- /dev/null
+++ b/misc/peq/files/patch-ae
@@ -0,0 +1,13 @@
+--- read.cpp.orig Fri Mar 26 01:47:31 1999
++++ read.cpp Sat Feb 12 11:12:10 2000
+@@ -1,8 +1,8 @@
+
+ #include "config.h"
+
+-extern cho;
+-extern qnum;
++extern int cho;
++extern long qnum;
+ extern char comp_time[30];
+ extern char quote[1500];
+ extern FILE *pql;
diff --git a/misc/peq/files/patch-af b/misc/peq/files/patch-af
new file mode 100644
index 000000000000..3fd96229cf95
--- /dev/null
+++ b/misc/peq/files/patch-af
@@ -0,0 +1,13 @@
+--- show.cpp.orig Fri Mar 26 01:47:31 1999
++++ show.cpp Sat Feb 12 11:13:09 2000
+@@ -3,8 +3,8 @@
+
+ extern int wrdnum;
+ extern char tot[300][100];
+-extern author_wrd;
+-extern contrib_wrd;
++extern int author_wrd;
++extern int contrib_wrd;
+
+ // This is the worst piece of shit (erm... code) you will ever see. It
+ // practically duplicates the same stuff FOUR TIMES!
diff --git a/misc/peq/pkg-comment b/misc/peq/pkg-comment
new file mode 100644
index 000000000000..017ddc460b0b
--- /dev/null
+++ b/misc/peq/pkg-comment
@@ -0,0 +1 @@
+Fortune like program
diff --git a/misc/peq/pkg-descr b/misc/peq/pkg-descr
new file mode 100644
index 000000000000..2e99836f00f6
--- /dev/null
+++ b/misc/peq/pkg-descr
@@ -0,0 +1,4 @@
+This little program is almost exactly like the original fortune.
+The author promises that update the "fortune" database will be
+more regular and he tries to put only thought provoking and humourous
+quotes into it.
diff --git a/misc/peq/pkg-plist b/misc/peq/pkg-plist
new file mode 100644
index 000000000000..5033a36c8789
--- /dev/null
+++ b/misc/peq/pkg-plist
@@ -0,0 +1,4 @@
+bin/peq
+bin/xpeq
+share/peq/peq.lib
+@dirrm share/peq