summaryrefslogtreecommitdiff
path: root/finance/gkrellm-stock
diff options
context:
space:
mode:
authordamon <damon>2001-10-30 13:22:05 +0000
committerdamon <damon>2001-10-30 13:22:05 +0000
commit8881f2ae33008e1607a640def72f5f758f4b5401 (patch)
tree4be49c4067f916f9655eccd3b16a8e150a6cedb7 /finance/gkrellm-stock
parent973ae7908092b5cf4a1f92ce6af055ca9c88983f (diff)
downloadpkgsrc-8881f2ae33008e1607a640def72f5f758f4b5401.tar.gz
Initial Version
Diffstat (limited to 'finance/gkrellm-stock')
-rw-r--r--finance/gkrellm-stock/Makefile25
-rw-r--r--finance/gkrellm-stock/distinfo6
-rw-r--r--finance/gkrellm-stock/patches/patch-aa51
-rw-r--r--finance/gkrellm-stock/patches/patch-ab16
-rw-r--r--finance/gkrellm-stock/pkg/DESCR5
-rw-r--r--finance/gkrellm-stock/pkg/PLIST3
6 files changed, 106 insertions, 0 deletions
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