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