pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/gkrellm1-stock Re-import of finance/gkrellm-st...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ffda489f39e4
branches:  trunk
changeset: 469536:ffda489f39e4
user:      cube <cube%pkgsrc.org@localhost>
date:      Tue Feb 24 23:03:52 2004 +0000

description:
Re-import of finance/gkrellm-stock as gkrellm1-stock to leave space for
the GKrellM-2 port of the stock plugin.

diffstat:

 finance/gkrellm1-stock/DESCR            |   5 +++
 finance/gkrellm1-stock/Makefile         |  30 +++++++++++++++++++
 finance/gkrellm1-stock/PLIST            |   3 +
 finance/gkrellm1-stock/distinfo         |   6 +++
 finance/gkrellm1-stock/patches/patch-aa |  51 +++++++++++++++++++++++++++++++++
 finance/gkrellm1-stock/patches/patch-ab |  16 ++++++++++
 6 files changed, 111 insertions(+), 0 deletions(-)

diffs (135 lines):

diff -r f1e6269166ee -r ffda489f39e4 finance/gkrellm1-stock/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/gkrellm1-stock/DESCR      Tue Feb 24 23:03:52 2004 +0000
@@ -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 -r f1e6269166ee -r ffda489f39e4 finance/gkrellm1-stock/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/gkrellm1-stock/Makefile   Tue Feb 24 23:03:52 2004 +0000
@@ -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@localhost
+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 -r f1e6269166ee -r ffda489f39e4 finance/gkrellm1-stock/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/gkrellm1-stock/PLIST      Tue Feb 24 23:03:52 2004 +0000
@@ -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 -r f1e6269166ee -r ffda489f39e4 finance/gkrellm1-stock/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/gkrellm1-stock/distinfo   Tue Feb 24 23:03:52 2004 +0000
@@ -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 -r f1e6269166ee -r ffda489f39e4 finance/gkrellm1-stock/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/gkrellm1-stock/patches/patch-aa   Tue Feb 24 23:03:52 2004 +0000
@@ -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 -r f1e6269166ee -r ffda489f39e4 finance/gkrellm1-stock/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/gkrellm1-stock/patches/patch-ab   Tue Feb 24 23:03:52 2004 +0000
@@ -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
+ #



Home | Main Index | Thread Index | Old Index