aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1999-04-06 20:25:32 +0800
committermarkm <markm@FreeBSD.org>1999-04-06 20:25:32 +0800
commit9dabfba6e533f6b5bb58f57228b206e23ae451f3 (patch)
tree91500c2af0580821032d62fd2263826d074d17e7
parent3ab0de3eaae8c6b9ddbae126838f524ea240b872 (diff)
downloadfreebsd-ports-gnome-9dabfba6e533f6b5bb58f57228b206e23ae451f3.tar.gz
freebsd-ports-gnome-9dabfba6e533f6b5bb58f57228b206e23ae451f3.tar.zst
freebsd-ports-gnome-9dabfba6e533f6b5bb58f57228b206e23ae451f3.zip
Initail import of peq. The author promises to reularly update the
quotes database. PR: 10922 Submitted by: Gordon Greeff <gvg@uunet.co.za>
-rw-r--r--misc/peq/Makefile22
-rw-r--r--misc/peq/distinfo1
-rw-r--r--misc/peq/files/patch-aa120
-rw-r--r--misc/peq/files/patch-ab25
-rw-r--r--misc/peq/files/patch-ac21
-rw-r--r--misc/peq/files/patch-ad11
-rw-r--r--misc/peq/pkg-comment1
-rw-r--r--misc/peq/pkg-descr4
-rw-r--r--misc/peq/pkg-plist4
9 files changed, 209 insertions, 0 deletions
diff --git a/misc/peq/Makefile b/misc/peq/Makefile
new file mode 100644
index 000000000000..45e886ec1078
--- /dev/null
+++ b/misc/peq/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: peq
+# Version required: 0.7.1
+# Date created: 2 April 1999
+# Whom: Gordon Greeff
+#
+# $Id$
+#
+
+DISTNAME= peq-0.7.1
+CATEGORIES= games
+MASTER_SITES= http://silverstone.fortunecity.com/jaguar/37/ \
+ ftp://lost.iafrica.com/pub/peq/
+
+MAINTAINER= gvg@uunet.co.za
+
+USE_QT= yes
+
+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..625233f45ef4
--- /dev/null
+++ b/misc/peq/files/patch-aa
@@ -0,0 +1,120 @@
+*** Makefile.orig Fri Apr 2 19:52:27 1999
+--- Makefile Fri Apr 2 19:51:11 1999
+***************
+*** 7,13 ****
+ CC = g++
+
+ # Flags to pass to the C++ compiler
+! FLAGS = -O -Wall
+
+ # Your tar
+ TAR = tar
+--- 7,13 ----
+ CC = g++
+
+ # Flags to pass to the C++ compiler
+! FLAGS = -DPREFIX=\"${PREFIX}\" ${CFLAGS} -L /usr/X11R6/lib -I /usr/X11R6/include
+
+ # Your tar
+ TAR = tar
+***************
+*** 17,29 ****
+ ZIPR = gzip -9
+
+ # Default installion directory for the console version of PEQ
+! DIR_CONSOLE_PEQ = /usr/games
+
+ # Default installion directory for the X version of PEQ
+! DIR_X_PEQ = /usr/games
+
+ # Default installion directory for peq.lib (the quote library)
+! DIR_LIB = /usr/share/games
+
+ # Get current date
+ LIB_DATE = `date +%m%d%y`
+--- 17,29 ----
+ ZIPR = gzip -9
+
+ # Default installion directory for the console version of PEQ
+! DIR_CONSOLE_PEQ = ${PREFIX}/bin
+
+ # Default installion directory for the X version of PEQ
+! DIR_X_PEQ = ${PREFIX}/bin
+
+ # Default installion directory for peq.lib (the quote library)
+! DIR_LIB = ${PREFIX}/share/peq
+
+ # Get current date
+ LIB_DATE = `date +%m%d%y`
+***************
+*** 42,70 ****
+ $(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
+
+- ## "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' :-)"
+
+ install-console:
+! cp peq $(DIR_CONSOLE_PEQ)/peq -f
+
+ install-x:
+! cp xpeq $(DIR_X_PEQ)/xpeq -f
+
+ install-lib:
+! cp peq.lib $(DIR_LIB)/peq.lib -f
+!
+! install-all:
+! make install-console ; make install-x ; make install-lib
+
+ install-console-lib:
+ make install-console ; make install-lib
+--- 42,60 ----
+ $(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
+
+ install:
+! make install-console ; make install-x ; make install-lib
+
+ install-console:
+! cp -f peq $(DIR_CONSOLE_PEQ)/peq
+
+ install-x:
+! cp -f xpeq $(DIR_X_PEQ)/xpeq
+
+ 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,86 ****
+ ## "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
+
+ ## "clean" cleans up all the junk and leaves the uncompiled code alone
+ clean:
+--- 68,76 ----
+ ## "uninstall" erases all traces of PEQ from your system (but why would you
+ ## want to do that?)
+ uninstall:
+! 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:
diff --git a/misc/peq/files/patch-ab b/misc/peq/files/patch-ab
new file mode 100644
index 000000000000..e9420cfca9bb
--- /dev/null
+++ b/misc/peq/files/patch-ab
@@ -0,0 +1,25 @@
+*** xconfig.h.orig Fri Apr 2 15:50:41 1999
+--- xconfig.h Fri Apr 2 15:50:34 1999
+***************
+*** 4,13 ****
+ #include <time.h>
+ #include <string.h>
+ #include <strings.h>
+! #include <qapplication.h>
+! #include <qpushbutton.h>
+! #include <qlabel.h>
+! #include <qstring.h>
+
+ /* strmid.cpp */
+ char strmid(char*,char*,int,int);
+--- 4,13 ----
+ #include <time.h>
+ #include <string.h>
+ #include <strings.h>
+! #include <X11/qt/qapplication.h>
+! #include <X11/qt/qpushbutton.h>
+! #include <X11/qt/qlabel.h>
+! #include <X11/qt/qstring.h>
+
+ /* strmid.cpp */
+ char strmid(char*,char*,int,int);
diff --git a/misc/peq/files/patch-ac b/misc/peq/files/patch-ac
new file mode 100644
index 000000000000..a19380b36b54
--- /dev/null
+++ b/misc/peq/files/patch-ac
@@ -0,0 +1,21 @@
+*** xpeq.cpp.orig Fri Apr 2 15:50:52 1999
+--- xpeq.cpp Fri Apr 2 15:50:47 1999
+***************
+*** 1,8 ****
+
+ #include "xconfig.h"
+ #include "lib_path.h"
+! #include <qmenubar.h>
+! #include <qpopupmenu.h>
+
+ int cho;
+ int wrd;
+--- 1,8 ----
+
+ #include "xconfig.h"
+ #include "lib_path.h"
+! #include <X11/qt/qmenubar.h>
+! #include <X11/qt/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/pkg-comment b/misc/peq/pkg-comment
new file mode 100644
index 000000000000..df59f8c08dd5
--- /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..a315e00a3417
--- /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 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