Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/surfraw: ChangeLog surfraw-2.2.5.ebuild
Date: Wed, 13 May 2009 04:28:33
Message-Id: E1M4651-0005ri-A8@stork.gentoo.org
1 jer 09/05/13 04:28:31
2
3 Modified: ChangeLog
4 Added: surfraw-2.2.5.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.37 www-client/surfraw/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/surfraw/ChangeLog?rev=1.37&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/surfraw/ChangeLog?rev=1.37&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/surfraw/ChangeLog?r1=1.36&r2=1.37
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/surfraw/ChangeLog,v
19 retrieving revision 1.36
20 retrieving revision 1.37
21 diff -u -r1.36 -r1.37
22 --- ChangeLog 14 Apr 2009 14:58:02 -0000 1.36
23 +++ ChangeLog 13 May 2009 04:28:31 -0000 1.37
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-client/surfraw
26 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/ChangeLog,v 1.36 2009/04/14 14:58:02 jer Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/ChangeLog,v 1.37 2009/05/13 04:28:31 jer Exp $
30 +
31 +*surfraw-2.2.5 (13 May 2009)
32 +
33 + 13 May 2009; Jeroen Roovers <jer@g.o> +surfraw-2.2.5.ebuild:
34 + Version bump.
35
36 14 Apr 2009; Jeroen Roovers <jer@g.o> -surfraw-2.2.3.ebuild:
37 Remove old.
38
39
40
41 1.1 www-client/surfraw/surfraw-2.2.5.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/surfraw/surfraw-2.2.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/surfraw/surfraw-2.2.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: surfraw-2.2.5.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/surfraw-2.2.5.ebuild,v 1.1 2009/05/13 04:28:31 jer Exp $
51
52 inherit bash-completion eutils
53
54 DESCRIPTION="A fast unix command line interface to WWW"
55 HOMEPAGE="http://surfraw.alioth.debian.org/"
56 SRC_URI="http://${PN}.alioth.debian.org/dist/${P}.tar.gz"
57
58 SLOT="0"
59 LICENSE="public-domain"
60 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
61 IUSE=""
62 RESTRICT="test"
63
64 src_unpack() {
65 unpack ${A}
66 cd "${S}"
67
68 epatch "${FILESDIR}"/${PN}-2.1.5-gentoo_pkg_tools.patch
69 # Man page symlinks shouldn't link to compressed files
70 sed -i 's,\.gz,,g' links.IN
71 }
72
73 src_compile() {
74 econf \
75 --with-elvidir='$(datadir)'/surfraw \
76 --disable-opensearch \
77 || die "./configure failed"
78 emake || die "make failed"
79 }
80
81 src_install() {
82 make DESTDIR="${D}" install || die "make install failed"
83 dodoc AUTHORS ChangeLog HACKING NEWS README TODO
84
85 dobashcompletion surfraw-bash-completion
86 }
87
88 pkg_preinst() {
89 has_version "=${CATEGORY}/${PN}-1.0.7"
90 upgrade_from_1_0_7=$?
91 }
92
93 pkg_postinst() {
94 bash-completion_pkg_postinst
95 einfo
96 einfo "You can get a list of installed elvi by just typing 'surfraw' or"
97 einfo "the abbreviated 'sr'."
98 einfo
99 einfo "You can try some searches, for example:"
100 einfo "$ sr ask why is jeeves gay? "
101 einfo "$ sr google -results=100 RMS, GNU, which is sinner, which is sin?"
102 einfo "$ sr rhyme -method=perfect Julian"
103 einfo
104 einfo "The system configuration file is /etc/surfraw.conf"
105 einfo
106 einfo "Users can specify preferences in '~/.surfraw.conf' e.g."
107 einfo "SURFRAW_graphical_browser=mozilla"
108 einfo "SURFRAW_text_browser=w3m"
109 einfo "SURFRAW_graphical=no"
110 einfo
111 einfo "surfraw works with any graphical and/or text WWW browser"
112 einfo
113 if [[ $upgrade_from_1_0_7 = 0 ]] ; then
114 ewarn "surfraw usage has changed slightly since version 1.0.7, elvi are now called"
115 ewarn "using the 'sr' wrapper script as described above. If you wish to return to"
116 ewarn "the old behaviour you can add /usr/share/surfraw to your \$PATH"
117 fi
118 # This file was always autogenerated, and is no longer needed.
119 if [ -f "${ROOT}"/etc/surfraw_elvi.list ]; then
120 rm -f "${ROOT}"/etc/surfraw_elvi.list
121 fi
122 }