diff options
author | cube <cube@pkgsrc.org> | 2004-02-24 23:03:52 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2004-02-24 23:03:52 +0000 |
commit | 1e512fdf56472b67a82b3625181d12e0a7df522b (patch) | |
tree | 625eb0787052bb21286bda58980aeeb373fd4ede /finance | |
parent | 59b672b169a4a428ae17f19465eb9a73c1e5871f (diff) | |
download | pkgsrc-1e512fdf56472b67a82b3625181d12e0a7df522b.tar.gz |
Re-import of finance/gkrellm-stock as gkrellm1-stock to leave space for
the GKrellM-2 port of the stock plugin.
Diffstat (limited to 'finance')
-rw-r--r-- | finance/gkrellm1-stock/DESCR | 5 | ||||
-rw-r--r-- | finance/gkrellm1-stock/Makefile | 30 | ||||
-rw-r--r-- | finance/gkrellm1-stock/PLIST | 3 | ||||
-rw-r--r-- | finance/gkrellm1-stock/distinfo | 6 | ||||
-rw-r--r-- | finance/gkrellm1-stock/patches/patch-aa | 51 | ||||
-rw-r--r-- | finance/gkrellm1-stock/patches/patch-ab | 16 |
6 files changed, 111 insertions, 0 deletions
diff --git a/finance/gkrellm1-stock/DESCR b/finance/gkrellm1-stock/DESCR new file mode 100644 index 00000000000..5b472a8fc29 --- /dev/null +++ b/finance/gkrellm1-stock/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/gkrellm1-stock/Makefile b/finance/gkrellm1-stock/Makefile new file mode 100644 index 00000000000..9c6497b1354 --- /dev/null +++ b/finance/gkrellm1-stock/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/02/24 23:03:52 cube Exp $ + +DISTNAME= gkrellstock-0.2 +PKGNAME= gkrellm-stock-0.2 +PKGREVISION= 4 +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+= p5-finance-quote-1.*:../../finance/p5-finance-quote + +WRKSRC= ${WRKDIR}/gkrellStock-0.2 +USE_BUILDLINK2= # defined +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 + +pre-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/gkrellm/plugins + +.include "../../sysutils/gkrellm/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/finance/gkrellm1-stock/PLIST b/finance/gkrellm1-stock/PLIST new file mode 100644 index 00000000000..83517e9eb34 --- /dev/null +++ b/finance/gkrellm1-stock/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/24 23:03:52 cube Exp $ +lib/gkrellm/plugins/gkrellstock.so +bin/GetQuote diff --git a/finance/gkrellm1-stock/distinfo b/finance/gkrellm1-stock/distinfo new file mode 100644 index 00000000000..6773b4b23c7 --- /dev/null +++ b/finance/gkrellm1-stock/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/02/24 23:03:52 cube 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/gkrellm1-stock/patches/patch-aa b/finance/gkrellm1-stock/patches/patch-aa new file mode 100644 index 00000000000..26ff44a99d3 --- /dev/null +++ b/finance/gkrellm1-stock/patches/patch-aa @@ -0,0 +1,51 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/02/24 23:03:52 cube 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/gkrellm1-stock/patches/patch-ab b/finance/gkrellm1-stock/patches/patch-ab new file mode 100644 index 00000000000..026f80fae74 --- /dev/null +++ b/finance/gkrellm1-stock/patches/patch-ab @@ -0,0 +1,16 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/02/24 23:03:52 cube 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 + # |