summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2004-02-24 23:05:57 +0000
committercube <cube@pkgsrc.org>2004-02-24 23:05:57 +0000
commitf75359fbec8c40e1e5d8f032bee62c3e3ee3acbc (patch)
treea8807b0acc6f61372d0f5eb3bc8160a75ba74455 /finance
parentd6f12dd7fe25640d108f0719906630e7e6a500a9 (diff)
downloadpkgsrc-f75359fbec8c40e1e5d8f032bee62c3e3ee3acbc.tar.gz
Update to version 0.5.1. This is the GKrellM-2 port of the stock plugin.
Diffstat (limited to 'finance')
-rw-r--r--finance/gkrellm-stock/Makefile41
-rw-r--r--finance/gkrellm-stock/PLIST6
-rw-r--r--finance/gkrellm-stock/distinfo9
-rw-r--r--finance/gkrellm-stock/patches/patch-aa48
-rw-r--r--finance/gkrellm-stock/patches/patch-ab16
5 files changed, 30 insertions, 90 deletions
diff --git a/finance/gkrellm-stock/Makefile b/finance/gkrellm-stock/Makefile
index 10bbc3aaa7d..fadeb2d22d6 100644
--- a/finance/gkrellm-stock/Makefile
+++ b/finance/gkrellm-stock/Makefile
@@ -1,30 +1,25 @@
-# $NetBSD: Makefile,v 1.9 2004/01/20 12:14:59 agc Exp $
+# $NetBSD: Makefile,v 1.10 2004/02/24 23:05:57 cube Exp $
+#
-DISTNAME= gkrellstock-0.2
-PKGNAME= gkrellm-stock-0.2
-PKGREVISION= 4
-CATEGORIES= finance
-MASTER_SITES= http://www.geocities.com/m_muthukumar/
+DISTNAME= gkrellstock-0.5.1
+PKGNAME= gkrellm-stock-0.5.1
+CATEGORIES= finance
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gkrellstock/}
-MAINTAINER= damon@NetBSD.org
-HOMEPAGE= http://www.geocities.com/m_muthukumar/gkrellstock.html
-COMMENT= gkrellm stock ticker plugin
+MAINTAINER= cube@NetBSD.org
+HOMEPAGE= http://gkrellstock.sourceforge.net/
+COMMENT= GKrellM2 stock ticker plugin
-DEPENDS+= p5-finance-quote-1.*:../../finance/p5-finance-quote
+DEPENDS+= p5-finance-quote>=1.08:../../finance/p5-finance-quote
-WRKSRC= ${WRKDIR}/gkrellStock-0.2
-USE_BUILDLINK2= # defined
-USE_PERL5= # defined
+WRKSRC= ${WRKDIR}/gkrellStock-0.5.1
+USE_BUILDLINK3= yes
+ALL_TARGET= gkrellstock.so
+REPLACE_PERL= ${WRKSRC}/GetQuote2
-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
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/gkrellstock.so ${PREFIX}/lib/gkrellm2/plugins
+ ${INSTALL_SCRIPT} ${WRKSRC}/GetQuote2 ${PREFIX}/bin
-pre-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/gkrellm/plugins
-
-.include "../../sysutils/gkrellm/buildlink2.mk"
+.include "../../sysutils/gkrellm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/finance/gkrellm-stock/PLIST b/finance/gkrellm-stock/PLIST
index da4fb59cf9d..6c278512832 100644
--- a/finance/gkrellm-stock/PLIST
+++ b/finance/gkrellm-stock/PLIST
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:01:09 zuntum Exp $
-lib/gkrellm/plugins/gkrellstock.so
-bin/GetQuote
+@comment $NetBSD: PLIST,v 1.2 2004/02/24 23:05:57 cube Exp $
+bin/GetQuote2
+lib/gkrellm2/plugins/gkrellstock.so
diff --git a/finance/gkrellm-stock/distinfo b/finance/gkrellm-stock/distinfo
index 376364738c5..6d8077710c3 100644
--- a/finance/gkrellm-stock/distinfo
+++ b/finance/gkrellm-stock/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $
+$NetBSD: distinfo,v 1.2 2004/02/24 23:05:57 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
+SHA1 (gkrellstock-0.5.1.tar.gz) = b0352fbcde2f6f2cfbbb666176ce415a4924b434
+Size (gkrellstock-0.5.1.tar.gz) = 22385 bytes
+SHA1 (patch-aa) = fe5e598211dcf16a8eb828a8c6f4fae19679f017
diff --git a/finance/gkrellm-stock/patches/patch-aa b/finance/gkrellm-stock/patches/patch-aa
index 5dff7840ba4..1b2cf4dceda 100644
--- a/finance/gkrellm-stock/patches/patch-aa
+++ b/finance/gkrellm-stock/patches/patch-aa
@@ -1,51 +1,13 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/10/30 13:23:40 damon Exp $
+$NetBSD: patch-aa,v 1.2 2004/02/24 23:05:57 cube Exp $
---- Makefile.orig Tue Aug 7 10:06:13 2001
+--- Makefile.orig 2003-04-21 21:51:38.000000000 +0200
+++ 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)
+@@ -5,7 +5,7 @@ FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
+ LIBS = $(GTK_LIB)
LFLAGS = -shared
-CC = gcc $(CFLAGS) $(FLAGS)
-+CC = gcc $(CFLAGS)
++CC += $(CFLAGS) $(FLAGS)
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
deleted file mode 100644
index 18d26543077..00000000000
--- a/finance/gkrellm-stock/patches/patch-ab
+++ /dev/null
@@ -1,16 +0,0 @@
-$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
- #