7f73fa5086
Tue Jul 12 00:46:02 BST 2011 - surfraw 2.2.8 * New elvi: + ads - search the SAO/NASA Astrophysics data system. + archwiki: search the arch wiki. + bugzilla - search various bugzillas, defaults to kernel. + cablesearch - search wikileaks cables + deli: search delicious.com. + duckduckgo - replace with better implementation + openports - search openbsd ports + pasearch - search Penny Arcade archives. + scirus, scitopia, worldwidescience - science searches + stack: search stackoverflow.com and friends. + yandex - russian web search. * Changed elvi: + archpkg: now supports options. + arxiv: quote queries for exact string matches. + ctan: Option -doc replaced by -id. Options no longer mutually exclusive. + codesearch, musicbrainz, rpmsearch: rewritten to match new site. Options have changed to match site, see help message. + debbugs: add -s as an alias for -search=src. + google: new options: * -v, -search=video: search video * -m, -search=maps: search maps * -n, -search=news: search news * -i: new shortcut for -search=images * -safe=default|off|moderate|strict: safe search + openbsd: support -misc and -tech. + opensearch: new option -r, uses remote redirector which means it can run without heavy dependencies. + pgpkeys: add more options, support more keyservers, default to sks-keyservers.net. + translate: added Google Translate support. + wayback: advanced search is broken, rip out all options and use basic search. + wikipedia: new option -d, uses remote redirector to search both wikipedia and deletionpedia. use -fallback=wikipedia|deletionpedia to customise behaviour. * Fixed elvi: archpkg, arxiv, cia, codesearch, ctan, javasun, lastfm, musicbrainz, netbsd, rpmsearch, w3link, yahoo. * Removed elvi: + altavista: is now just a front-end to yahoo. RIP. + cddb: gracenote made the "hard decision" to remove the website search. sigh. + fast: another yahoo front-end. + filesearching: refuses to work without 'Referer:' header. + port: site gone * Support -local-help, --local-help or -lh to get elvi-specific help without displaying the global options. This works for all elvi and the main surfraw script. * Support -h as a synonym for -help. * Improved listing of elvi. * Default to surfraw_graphical_remote=no, as chromium doesn't support "-remote openURL". * Bookmark names are now an exact match not a substring match. * Support BSD/POSIX make. * README: added INTEGRATION section on uzbl and pentadactyl.
47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.45 2011/08/06 10:43:25 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= surfraw-2.2.8
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://surfraw.alioth.debian.org/dist/
|
|
|
|
MAINTAINER= wiz@NetBSD.org
|
|
HOMEPAGE= http://surfraw.alioth.debian.org/
|
|
COMMENT= Shell Users' Revolutionary Front Rage Against the Web
|
|
LICENSE= public-domain
|
|
|
|
CONFLICTS+= surfaw-[0-9]*
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --disable-sr
|
|
USE_TOOLS+= perl sed
|
|
REPLACE_PERL+= surfraw-update-path.IN opensearch-discover \
|
|
opensearch-genquery
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/surfraw
|
|
EGDIR= ${PREFIX}/share/examples/surfraw
|
|
INSTALLATION_DIRS= ${DOCDIR}
|
|
INSTALL_MAKE_FLAGS= sysconfdir=${EGDIR}
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/surfraw
|
|
CONF_FILES= ${EGDIR}/xdg/surfraw/conf ${PKG_SYSCONFDIR}/xdg/surfraw/conf
|
|
CONF_FILES+= ${EGDIR}/xdg/surfraw/bookmarks ${PKG_SYSCONFDIR}/xdg/surfraw/bookmarks
|
|
|
|
# avoid installing useless manpage links
|
|
post-patch:
|
|
-${GREP} -v elvi.1sr.gz ${WRKSRC}/links.IN > ${WRKSRC}/links.IN.new
|
|
${MV} ${WRKSRC}/links.IN.new ${WRKSRC}/links.IN
|
|
${SED} -e s/sr/surfraw/g ${WRKSRC}/surfraw.1.IN > ${WRKSRC}/surfraw.1.IN.new
|
|
${MV} ${WRKSRC}/surfraw.1.IN.new ${WRKSRC}/surfraw.1.IN
|
|
${SED} -e s/sr/surfraw/g ${WRKSRC}/elvi.1sr.IN > ${WRKSRC}/elvi.1sr.IN.new
|
|
${MV} ${WRKSRC}/elvi.1sr.IN.new ${WRKSRC}/elvi.1sr.IN
|
|
|
|
# fix man page name; install additional documentation
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
|
${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/elvi.1sr \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/elvi.1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|