mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Import of wmstock, a cool dockapp that shows stock ticker(s) that are
retrieved through yahoo. PR: 12883 Submitted by: Will Andrews <andrews@technologist.com>
This commit is contained in:
parent
041a60736f
commit
c38aaa7db0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20435
29
finance/wmstock/Makefile
Normal file
29
finance/wmstock/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# New ports collection makefile for: wmstock
|
||||
# Version required: 0.06
|
||||
# Date created: 19 Jun 1999
|
||||
# Whom: Will Andrews <andrews@technologist.com>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= wmstock-0.06
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://mattfischer.com/wmstock/src/ \
|
||||
http://www.psn.net/~andrews/wmstock/
|
||||
|
||||
MAINTAINER= andrews@technologist.com
|
||||
|
||||
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/wmstock/src
|
||||
USE_GMAKE= yes
|
||||
MAN1= wmstock.1
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/wmstock ${PREFIX}/bin/wmstock
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/testqt.pl ${PREFIX}/bin/testqt.pl
|
||||
@${INSTALL_MAN} ${WRKSRC}/wmstock.1x ${PREFIX}/man/man1/wmstock.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
finance/wmstock/distinfo
Normal file
1
finance/wmstock/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (wmstock-0.06.tar.gz) = 56687a81ad7fe74b67856d0369bcea8b
|
34
finance/wmstock/files/patch-aa
Normal file
34
finance/wmstock/files/patch-aa
Normal file
@ -0,0 +1,34 @@
|
||||
--- testqt.pl.orig Sun Aug 1 19:46:56 1999
|
||||
+++ testqt.pl Sun Aug 1 19:48:47 1999
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
- $wget_loc = `which wget`;
|
||||
+ $wget_loc = `which fetch`;
|
||||
chop $wget_loc;
|
||||
|
||||
if (!$wget_loc)
|
||||
{
|
||||
- die "testqt.pl:: Could not find wget. If it is not in your path please add it to your path. If it is not installed please install it.\n";
|
||||
+ die "testqt.pl:: Could not find fetch. If it is not in your path please add it to your path. If it is not installed please install it.\n";
|
||||
}
|
||||
|
||||
$home = (getpwuid($<))[7];
|
||||
@@ -78,7 +78,7 @@
|
||||
#
|
||||
|
||||
$tempfile = "stock.tmp.$$";
|
||||
- $wget_args = " --cache=off --tries 0 -q -O $home/.wmstock/$tempfile \"$URL\"";
|
||||
+ $wget_args = " -p -o $home/.wmstock/$tempfile \"$URL\"";
|
||||
$command = $wget_loc.$wget_args;
|
||||
system "$wget_loc$wget_args";
|
||||
sleep(3);
|
||||
@@ -115,7 +115,7 @@
|
||||
$version = $_[0];
|
||||
$vtempfile = ".newest";
|
||||
$vers_url="http://www.mattfischer.com/wmstock/src/$vtempfile";
|
||||
- $wget_args = " --cache=off --tries 0 -q -O $home/.wmstock/$vtempfile \"$vers_url\"";
|
||||
+ $wget_args = " -p -o $home/.wmstock/$vtempfile \"$vers_url\"";
|
||||
$command = $wget_loc.$wget_args;
|
||||
|
||||
print "Please wait while I check for a new version.\n";
|
41
finance/wmstock/files/patch-ab
Normal file
41
finance/wmstock/files/patch-ab
Normal file
@ -0,0 +1,41 @@
|
||||
--- Makefile.orig Wed Jul 7 12:22:08 1999
|
||||
+++ Makefile Sun Aug 1 19:45:11 1999
|
||||
@@ -2,13 +2,13 @@
|
||||
# <mfischer@umr.edu>
|
||||
# based on wmWeather - see ../Credits for more information
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -O2 -g -Wall
|
||||
+CC ?= gcc
|
||||
+CFLAGS += -g -Wall
|
||||
DEBUG = -DMLF_DEBUG
|
||||
GCOV = -fprofile-arcs -ftest-coverage
|
||||
-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
|
||||
-DESTDIR= /usr/X11R6
|
||||
-LIBDIR = -L/usr/X11R6/lib
|
||||
+INCDIR = -I${PREFIX}/include/X11 -I${PREFIX}/include
|
||||
+DESTDIR= ${PREFIX}
|
||||
+LIBDIR = -L${PREFIX}/lib
|
||||
# for linux
|
||||
LIBS = -lXpm -lX11 -lXext
|
||||
# for Solaris
|
||||
@@ -22,10 +22,6 @@
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
|
||||
|
||||
-# $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
||||
-# no longer need the -D<uname>...
|
||||
-
|
||||
-
|
||||
all: wmstock.o wmstock
|
||||
|
||||
wmstock.o: wmstock_master.xpm wmstock_mask.xbm
|
||||
@@ -43,8 +39,3 @@
|
||||
rm -f $$i; \
|
||||
done
|
||||
rm -f wmstock
|
||||
-
|
||||
-install:: wmstock
|
||||
- install -c -s -m 0755 wmstock $(DESTDIR)/bin
|
||||
- install -c -m 0755 testqt.pl $(DESTDIR)/bin
|
||||
- install -c -m 0644 wmstock.1x $(DESTDIR)/man/man1
|
1
finance/wmstock/pkg-comment
Normal file
1
finance/wmstock/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Cool WindowMaker Dockapp that shows stock ticker(s)
|
11
finance/wmstock/pkg-descr
Normal file
11
finance/wmstock/pkg-descr
Normal file
@ -0,0 +1,11 @@
|
||||
wmstock is a cool WindowMaker dockapp that shows stock
|
||||
ticker(s) that are retrieved from Yahoo through wget.
|
||||
|
||||
However, since wget appears to be broken in this manner/form
|
||||
at this time, this port has a patch to use lynx instead, and
|
||||
requires lynx to be installed.
|
||||
|
||||
Author: Matt Fischer <mfischer@umr.edu>
|
||||
WWW: http://mattfischer.com/wmstock
|
||||
|
||||
- Will <andrews@technologist.com>
|
2
finance/wmstock/pkg-plist
Normal file
2
finance/wmstock/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/wmstock
|
||||
bin/testqt.pl
|
29
misc/wmstock/Makefile
Normal file
29
misc/wmstock/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# New ports collection makefile for: wmstock
|
||||
# Version required: 0.06
|
||||
# Date created: 19 Jun 1999
|
||||
# Whom: Will Andrews <andrews@technologist.com>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= wmstock-0.06
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://mattfischer.com/wmstock/src/ \
|
||||
http://www.psn.net/~andrews/wmstock/
|
||||
|
||||
MAINTAINER= andrews@technologist.com
|
||||
|
||||
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/wmstock/src
|
||||
USE_GMAKE= yes
|
||||
MAN1= wmstock.1
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/wmstock ${PREFIX}/bin/wmstock
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/testqt.pl ${PREFIX}/bin/testqt.pl
|
||||
@${INSTALL_MAN} ${WRKSRC}/wmstock.1x ${PREFIX}/man/man1/wmstock.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
misc/wmstock/distinfo
Normal file
1
misc/wmstock/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (wmstock-0.06.tar.gz) = 56687a81ad7fe74b67856d0369bcea8b
|
34
misc/wmstock/files/patch-aa
Normal file
34
misc/wmstock/files/patch-aa
Normal file
@ -0,0 +1,34 @@
|
||||
--- testqt.pl.orig Sun Aug 1 19:46:56 1999
|
||||
+++ testqt.pl Sun Aug 1 19:48:47 1999
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
- $wget_loc = `which wget`;
|
||||
+ $wget_loc = `which fetch`;
|
||||
chop $wget_loc;
|
||||
|
||||
if (!$wget_loc)
|
||||
{
|
||||
- die "testqt.pl:: Could not find wget. If it is not in your path please add it to your path. If it is not installed please install it.\n";
|
||||
+ die "testqt.pl:: Could not find fetch. If it is not in your path please add it to your path. If it is not installed please install it.\n";
|
||||
}
|
||||
|
||||
$home = (getpwuid($<))[7];
|
||||
@@ -78,7 +78,7 @@
|
||||
#
|
||||
|
||||
$tempfile = "stock.tmp.$$";
|
||||
- $wget_args = " --cache=off --tries 0 -q -O $home/.wmstock/$tempfile \"$URL\"";
|
||||
+ $wget_args = " -p -o $home/.wmstock/$tempfile \"$URL\"";
|
||||
$command = $wget_loc.$wget_args;
|
||||
system "$wget_loc$wget_args";
|
||||
sleep(3);
|
||||
@@ -115,7 +115,7 @@
|
||||
$version = $_[0];
|
||||
$vtempfile = ".newest";
|
||||
$vers_url="http://www.mattfischer.com/wmstock/src/$vtempfile";
|
||||
- $wget_args = " --cache=off --tries 0 -q -O $home/.wmstock/$vtempfile \"$vers_url\"";
|
||||
+ $wget_args = " -p -o $home/.wmstock/$vtempfile \"$vers_url\"";
|
||||
$command = $wget_loc.$wget_args;
|
||||
|
||||
print "Please wait while I check for a new version.\n";
|
41
misc/wmstock/files/patch-ab
Normal file
41
misc/wmstock/files/patch-ab
Normal file
@ -0,0 +1,41 @@
|
||||
--- Makefile.orig Wed Jul 7 12:22:08 1999
|
||||
+++ Makefile Sun Aug 1 19:45:11 1999
|
||||
@@ -2,13 +2,13 @@
|
||||
# <mfischer@umr.edu>
|
||||
# based on wmWeather - see ../Credits for more information
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -O2 -g -Wall
|
||||
+CC ?= gcc
|
||||
+CFLAGS += -g -Wall
|
||||
DEBUG = -DMLF_DEBUG
|
||||
GCOV = -fprofile-arcs -ftest-coverage
|
||||
-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
|
||||
-DESTDIR= /usr/X11R6
|
||||
-LIBDIR = -L/usr/X11R6/lib
|
||||
+INCDIR = -I${PREFIX}/include/X11 -I${PREFIX}/include
|
||||
+DESTDIR= ${PREFIX}
|
||||
+LIBDIR = -L${PREFIX}/lib
|
||||
# for linux
|
||||
LIBS = -lXpm -lX11 -lXext
|
||||
# for Solaris
|
||||
@@ -22,10 +22,6 @@
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
|
||||
|
||||
-# $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
|
||||
-# no longer need the -D<uname>...
|
||||
-
|
||||
-
|
||||
all: wmstock.o wmstock
|
||||
|
||||
wmstock.o: wmstock_master.xpm wmstock_mask.xbm
|
||||
@@ -43,8 +39,3 @@
|
||||
rm -f $$i; \
|
||||
done
|
||||
rm -f wmstock
|
||||
-
|
||||
-install:: wmstock
|
||||
- install -c -s -m 0755 wmstock $(DESTDIR)/bin
|
||||
- install -c -m 0755 testqt.pl $(DESTDIR)/bin
|
||||
- install -c -m 0644 wmstock.1x $(DESTDIR)/man/man1
|
1
misc/wmstock/pkg-comment
Normal file
1
misc/wmstock/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Cool WindowMaker Dockapp that shows stock ticker(s)
|
11
misc/wmstock/pkg-descr
Normal file
11
misc/wmstock/pkg-descr
Normal file
@ -0,0 +1,11 @@
|
||||
wmstock is a cool WindowMaker dockapp that shows stock
|
||||
ticker(s) that are retrieved from Yahoo through wget.
|
||||
|
||||
However, since wget appears to be broken in this manner/form
|
||||
at this time, this port has a patch to use lynx instead, and
|
||||
requires lynx to be installed.
|
||||
|
||||
Author: Matt Fischer <mfischer@umr.edu>
|
||||
WWW: http://mattfischer.com/wmstock
|
||||
|
||||
- Will <andrews@technologist.com>
|
2
misc/wmstock/pkg-plist
Normal file
2
misc/wmstock/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/wmstock
|
||||
bin/testqt.pl
|
Loading…
x
Reference in New Issue
Block a user