From 34e81188bbd1d6a20b47654802aad80bb2a43e24 Mon Sep 17 00:00:00 2001 From: damon Date: Tue, 30 Oct 2001 13:22:05 +0000 Subject: Initial Version --- finance/gkrellm-stock/Makefile | 25 +++++++++++++++++ finance/gkrellm-stock/distinfo | 6 ++++ finance/gkrellm-stock/patches/patch-aa | 51 ++++++++++++++++++++++++++++++++++ finance/gkrellm-stock/patches/patch-ab | 16 +++++++++++ finance/gkrellm-stock/pkg/DESCR | 5 ++++ finance/gkrellm-stock/pkg/PLIST | 3 ++ finance/p5-finance-quote/Makefile | 21 ++++++++++++++ finance/p5-finance-quote/distinfo | 4 +++ finance/p5-finance-quote/pkg/DESCR | 4 +++ finance/p5-finance-quote/pkg/PLIST | 1 + 10 files changed, 136 insertions(+) create mode 100644 finance/gkrellm-stock/Makefile create mode 100644 finance/gkrellm-stock/distinfo create mode 100644 finance/gkrellm-stock/patches/patch-aa create mode 100644 finance/gkrellm-stock/patches/patch-ab create mode 100644 finance/gkrellm-stock/pkg/DESCR create mode 100644 finance/gkrellm-stock/pkg/PLIST create mode 100644 finance/p5-finance-quote/Makefile create mode 100644 finance/p5-finance-quote/distinfo create mode 100644 finance/p5-finance-quote/pkg/DESCR create mode 100644 finance/p5-finance-quote/pkg/PLIST (limited to 'finance') diff --git a/finance/gkrellm-stock/Makefile b/finance/gkrellm-stock/Makefile new file mode 100644 index 00000000000..bed2cb707f7 --- /dev/null +++ b/finance/gkrellm-stock/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $ + +DISTNAME= gkrellstock-0.2 +PKGNAME= gkrellm-stock-0.2 +WRKSRC= ${WRKDIR}/gkrellStock-0.2 +CATEGORIES= finance +MASTER_SITES= http://www.geocities.com/m_muthukumar/ + +MAINTAINER= damon@netbsd.org +HOMEPAGE= http://www.geocities.com/m_muthukumar/gkrellstock.html +COMMENT= gkrellm stock ticker plugin + +DEPENDS+= gkrellm-1.2.*:../../sysutils/gkrellm +DEPENDS+= p5-finance-quote-1.*:../../finance/p5-finance-quote + +USE_PERL5= # defined + +do-configure: +.for FILE in GetQuote Asia.pm + ${CP} ${WRKSRC}/${FILE} ${WRKSRC}/${FILE}.ORIG + ${SED} -e "s,/usr/bin/perl,${PERL5},g" \ + < ${WRKSRC}/${FILE}.ORIG > ${WRKSRC}/${FILE} +.endfor + +.include "../../mk/bsd.pkg.mk" diff --git a/finance/gkrellm-stock/distinfo b/finance/gkrellm-stock/distinfo new file mode 100644 index 00000000000..376364738c5 --- /dev/null +++ b/finance/gkrellm-stock/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $ + +SHA1 (gkrellstock-0.2.tar.gz) = 09f754fdb57505e52afacb22caec6c398ecc57de +Size (gkrellstock-0.2.tar.gz) = 19062 bytes +SHA1 (patch-aa) = bcdc060a96420778992a75deb7244da14de68e1e +SHA1 (patch-ab) = 22d4b7ca33f5f682849c9f05e035567c422e2d31 diff --git a/finance/gkrellm-stock/patches/patch-aa b/finance/gkrellm-stock/patches/patch-aa new file mode 100644 index 00000000000..5dff7840ba4 --- /dev/null +++ b/finance/gkrellm-stock/patches/patch-aa @@ -0,0 +1,51 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $ + +--- Makefile.orig Tue Aug 7 10:06:13 2001 ++++ Makefile +@@ -5,14 +5,16 @@ + IMLIB_LIB = `imlib-config --libs-gdk` + + +-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) ++CFLAGS += -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) -I${PREFIX}/include + LIBS = $(GTK_LIB) $(IMLIB_LIB) + LFLAGS = -shared + +-CC = gcc $(CFLAGS) $(FLAGS) ++CC = gcc $(CFLAGS) + + OBJS = gkrellstock.o + ++all: gkrellstock.so ++ + gkrellstock.so: $(OBJS) + $(CC) $(OBJS) -o gkrellstock.so $(LFLAGS) $(LIBS) -lpthread + +@@ -22,23 +24,10 @@ + gkrellstock.o: gkrellstock.c + + install: +- if [ -d /usr/lib/gkrellm/plugins/ ] ; then \ +- install -c -s -m 644 gkrellstock.so /usr/lib/gkrellm/plugins/ ; \ +- elif [ -d /usr/share/gkrellm/plugins/ ] ; then \ +- install -c -s -m 644 gkrellstock.so /usr/share/gkrellm/plugins/ ; \ +- elif [ -d /usr/local/lib/gkrellm/plugins/ ] ; then \ +- install -c -s -m 644 gkrellstock.so /usr/local/lib/gkrellm/plugins/ ; \ +- elif [ -d /usr/lib/gkrellm/plugins/ ] ; then \ +- install -c -s -m 644 gkrellstock.so /usr/lib/gkrellm/plugins/ ; \ +- else \ +- install -D -c -s -m 644 gkrellstock.so /usr/lib/gkrellm/plugins/gkrellstock.so ; \ +- fi +- install -c -m 755 GetStock /usr/X11R6/bin ++ install -c -s -m 644 gkrellstock.so ${PREFIX}/lib/gkrellm/plugins ++ install -c -m 755 GetQuote ${PREFIX}/bin + + uninstall: +- rm -f /usr/lib/gkrellm/plugins/gkrellstock.so +- rm -f /usr/share/gkrellm/plugins/gkrellstock.so +- rm -f /usr/local/lib/gkrellm/plugins/gkrellstock.so +- rm -f /usr/lib/gkrellm/plugins/gkrellstock.so +- rm -f /usr/X11R6/bin/GetQuote ++ rm -f ${PREFIX}/lib/gkrellm/plugins/gkrellstock.so ++ rm -f ${PREFIX}/bin/GetQuote + diff --git a/finance/gkrellm-stock/patches/patch-ab b/finance/gkrellm-stock/patches/patch-ab new file mode 100644 index 00000000000..18d26543077 --- /dev/null +++ b/finance/gkrellm-stock/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $ + +--- GetQuote.orig Sat Oct 20 00:52:44 2001 ++++ GetQuote +@@ -95,7 +95,10 @@ + # Get rid of puncuation in @ARGV. This will filter out metacharacters and + # such, which makes the script marginally more safe + # +-foreach (@tickers) { s/[^a-zA-Z0-9\-=_\.]//; } ++ ++# Add ^ to the list so that we can display indices ++ ++foreach (@tickers) { s/[^a-zA-Z0-9\-=_\.\^]//; } + + # Check the input to make sure we can look stuff up + # diff --git a/finance/gkrellm-stock/pkg/DESCR b/finance/gkrellm-stock/pkg/DESCR new file mode 100644 index 00000000000..447cdf29f76 --- /dev/null +++ b/finance/gkrellm-stock/pkg/DESCR @@ -0,0 +1,5 @@ +GKrellStock is a plugin for GKrellM that displays given stock +tickers (current point and net change). + +Uses perl script to get Quote information from given source +(US, European, Australian, Canadian and Asian Markets). diff --git a/finance/gkrellm-stock/pkg/PLIST b/finance/gkrellm-stock/pkg/PLIST new file mode 100644 index 00000000000..94a74a58032 --- /dev/null +++ b/finance/gkrellm-stock/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $ +lib/gkrellm/plugins/gkrellstock.so +bin/GetQuote diff --git a/finance/p5-finance-quote/Makefile b/finance/p5-finance-quote/Makefile new file mode 100644 index 00000000000..80495665854 --- /dev/null +++ b/finance/p5-finance-quote/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/30 13:23:03 damon Exp $ + +DISTNAME= Finance-Quote-1.06 +PKGNAME= p5-finance-quote-1.06 +CATEGORIES= finance perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Finance/} + +MAINTAINER= damon@brodiefamily.org +HOMEPAGE= http://finance-quote.sourceforge.net/ +COMMENT= perl module to get stock quotes from Yahoo + +DEPENDS+= p5-HTML-TableExtract-1.*:../../www/p5-HTML-TableExtract +DEPENDS+= p5-libwww>=5.48:../../www/p5-libwww + +USE_PERL5= # defined +PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Finance/Quote/.packlist + +do-configure: + @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL + +.include "../../mk/bsd.pkg.mk" diff --git a/finance/p5-finance-quote/distinfo b/finance/p5-finance-quote/distinfo new file mode 100644 index 00000000000..3191848a2aa --- /dev/null +++ b/finance/p5-finance-quote/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/30 13:23:03 damon Exp $ + +SHA1 (Finance-Quote-1.06.tar.gz) = 9c0e3d5a22749bc607349fe51e4f1d8b83085bf4 +Size (Finance-Quote-1.06.tar.gz) = 51658 bytes diff --git a/finance/p5-finance-quote/pkg/DESCR b/finance/p5-finance-quote/pkg/DESCR new file mode 100644 index 00000000000..d48681bdfd8 --- /dev/null +++ b/finance/p5-finance-quote/pkg/DESCR @@ -0,0 +1,4 @@ +Finance::Quote provides access to time-delayed stockquotes from a +number of sources. After you've installed the pacakage, try +'perldoc Finance::Quote' for full information. Alternatively, +you can 'perldoc lib/Finance/Quote.pm' before the install. diff --git a/finance/p5-finance-quote/pkg/PLIST b/finance/p5-finance-quote/pkg/PLIST new file mode 100644 index 00000000000..cef55f083be --- /dev/null +++ b/finance/p5-finance-quote/pkg/PLIST @@ -0,0 +1 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/30 13:23:03 damon Exp $ -- cgit v1.2.3