Initail import of peq. The author promises to reularly update the
quotes database. PR: 10922 Submitted by: Gordon Greeff <gvg@uunet.co.za>
This commit is contained in:
parent
a874a77b69
commit
f7d2a739f2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17669
22
misc/peq/Makefile
Normal file
22
misc/peq/Makefile
Normal file
@ -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>
|
1
misc/peq/distinfo
Normal file
1
misc/peq/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (peq-0.7.1.tar.gz) = cbe58505f96538ef529bb8381a5a3291
|
120
misc/peq/files/patch-aa
Normal file
120
misc/peq/files/patch-aa
Normal file
@ -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:
|
25
misc/peq/files/patch-ab
Normal file
25
misc/peq/files/patch-ab
Normal file
@ -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);
|
21
misc/peq/files/patch-ac
Normal file
21
misc/peq/files/patch-ac
Normal file
@ -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;
|
11
misc/peq/files/patch-ad
Normal file
11
misc/peq/files/patch-ad
Normal file
@ -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"};
|
||||
|
1
misc/peq/pkg-comment
Normal file
1
misc/peq/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
fortune like program
|
4
misc/peq/pkg-descr
Normal file
4
misc/peq/pkg-descr
Normal file
@ -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.
|
4
misc/peq/pkg-plist
Normal file
4
misc/peq/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/peq
|
||||
bin/xpeq
|
||||
share/peq/peq.lib
|
||||
@dirrm share/peq
|
Loading…
Reference in New Issue
Block a user