summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2003-12-30 04:20:00 +0000
committerijliao <ijliao@FreeBSD.org>2003-12-30 04:20:00 +0000
commitfd74e19faa0c590ad11186dc9e795d060dde6893 (patch)
tree8446a36268751764643dfb6dfd1005361bb535d6 /www
parentc76d03f666d5e45b4866b40a80dccf052e44b02b (diff)
downloadFreeBSD-ports-fd74e19faa0c590ad11186dc9e795d060dde6893.zip
FreeBSD-ports-fd74e19faa0c590ad11186dc9e795d060dde6893.tar.gz
add goose 0.5
Command line Google search utility
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/goose/Makefile50
-rw-r--r--www/goose/distinfo1
-rw-r--r--www/goose/files/patch-goose63
-rw-r--r--www/goose/pkg-descr6
-rw-r--r--www/goose/pkg-plist5
6 files changed, 126 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 1546f2b..bbe6ded 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -113,6 +113,7 @@
SUBDIR += glibwww
SUBDIR += gnuinfo
SUBDIR += gnujsp
+ SUBDIR += goose
SUBDIR += grail
SUBDIR += gtkhtml
SUBDIR += gtkhtml3
diff --git a/www/goose/Makefile b/www/goose/Makefile
new file mode 100644
index 0000000..ba1bbcd
--- /dev/null
+++ b/www/goose/Makefile
@@ -0,0 +1,50 @@
+# ex:ts=8
+# Ports collection Makefile for: goose
+# Date created: Dec 30, 2003
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= goose
+PORTVERSION= 0.5
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= goose-search
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Command line Google search utility
+
+RUN_DEPENDS= ${SITE_PERL}/SOAP/Lite.pm:${PORTSDIR}/net/p5-SOAP-Lite \
+ ${SITE_PERL}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \
+ ${SITE_PERL}/HTML/FormatText.pm:${PORTSDIR}/textproc/p5-HTML-Format \
+ ${SITE_PERL}/AppConfig.pm:${PORTSDIR}/devel/p5-AppConfig \
+ ${SITE_PERL}/${PERL_ARCH}/Curses.pm:${PORTSDIR}/devel/p5-Curses \
+ url_handler.sh:${PORTSDIR}/textproc/urlview
+
+USE_PERL5= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+POD2MAN?= pod2man
+
+MAN1= goose.1
+
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \
+ s|%%DATADIR%%|${DATADIR}|g ; \
+ s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" ${WRKSRC}/goose
+
+do-build:
+ @cd ${WRKSRC} && ${POD2MAN} goose > goose.1
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/goose ${PREFIX}/bin
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/GoogleSearch.wsdl ${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/goose.1 ${MAN1PREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/goose.conf.example ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/goose/distinfo b/www/goose/distinfo
new file mode 100644
index 0000000..87cd5f5
--- /dev/null
+++ b/www/goose/distinfo
@@ -0,0 +1 @@
+MD5 (goose_0.5.tar.gz) = 40a57d80c9154e98f89f6b1b3a731aa8
diff --git a/www/goose/files/patch-goose b/www/goose/files/patch-goose
new file mode 100644
index 0000000..68f4ed0
--- /dev/null
+++ b/www/goose/files/patch-goose
@@ -0,0 +1,63 @@
+--- goose.orig Sat May 17 11:04:45 2003
++++ goose Tue Dec 30 12:12:13 2003
+@@ -1,4 +1,4 @@
+-#!/usr/bin/perl
++#!/usr/bin/env perl
+ #
+ # This is free software; you can redistribute it and/or modify it
+ # under the terms of the GNU General Public License as published by
+@@ -38,8 +38,8 @@
+
+ my $cfgfile = AppConfig::File->new($state);
+
+-if (-f '/etc/goose.conf') {
+- $cfgfile->parse('/etc/goose.conf');
++if (-f '%%LOCALBASE%%/etc/goose.conf') {
++ $cfgfile->parse('%%LOCALBASE%%/etc/goose.conf');
+ }
+ if (-f ($ENV{HOME} . '/.goose.conf')) {
+ $cfgfile->parse($ENV{HOME} . '/.goose.conf');
+@@ -54,7 +54,7 @@
+ "and follow the instructions for creating a Google Account.\n" .
+ "\n" .
+ "Once you have the key, add it to your configuration file,\n" .
+- "either the system-wide config file (/etc/goose.conf), or \n" .
++ "either the system-wide config file (%%LOCALBASE%%/etc/goose.conf), or \n" .
+ "in your user-specific config file, named .goose.conf in your \n" .
+ "home directory.\n\n";
+ exit(-1);
+@@ -112,7 +112,7 @@
+
+ my $query = join(" ", @ARGV);
+
+-my $googleSearch = SOAP::Lite->service("file:/usr/lib/goose/GoogleSearch.wsdl");
++my $googleSearch = SOAP::Lite->service("file:%%DATADIR%%/GoogleSearch.wsdl");
+
+ #
+ # The MAINLOOP is the giant loop surrounding the bulk of the code. Each
+@@ -238,9 +238,9 @@
+ endwin();
+
+ if ($state->get("one_shot")) {
+- exec("/etc/urlview/url_handler.sh '$element->{'URL'}'");
++ exec("%%LOCALBASE%%/bin/url_handler.sh '$element->{'URL'}'");
+ } else {
+- system("/etc/urlview/url_handler.sh '$element->{'URL'}'");
++ system("%%LOCALBASE%%/bin/url_handler.sh '$element->{'URL'}'");
+ }
+ }
+
+@@ -440,11 +440,11 @@
+
+ Goose uses configuration files to store the Google web API key. They
+ both observe the same format. An example is provided in
+-/usr/share/doc/goose/goose.conf.example.
++%%EXAMPLESDIR%%/goose.conf.example.
+
+ =over 8
+
+-=item B</etc/goose.conf>
++=item B<%%LOCALBASE%%/etc/goose.conf>
+
+ The system-wide configuration file.
+
diff --git a/www/goose/pkg-descr b/www/goose/pkg-descr
new file mode 100644
index 0000000..6e6ed66
--- /dev/null
+++ b/www/goose/pkg-descr
@@ -0,0 +1,6 @@
+Goose (GOOge SEarch) allows you to search Google's index of the Internet from
+the command line. You run Goose, giving it your list of search terms, and it
+presents a list of search results using an easy to navigate Curses display in
+your terminal. You can then select a search result to open in your web browser.
+
+WWW: http://goose-search.sourceforge.net/
diff --git a/www/goose/pkg-plist b/www/goose/pkg-plist
new file mode 100644
index 0000000..cb1d74a
--- /dev/null
+++ b/www/goose/pkg-plist
@@ -0,0 +1,5 @@
+bin/goose
+%%DATADIR%%/GoogleSearch.wsdl
+@dirrm %%DATADIR%%
+%%PORTDOCS%%%%EXAMPLESDIR%%/goose.conf.example
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
OpenPOWER on IntegriCloud