/[gentoo-x86]/net-proxy/httpush/httpush-0.9_beta11.ebuild
Gentoo

Diff of /net-proxy/httpush/httpush-0.9_beta11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1.1.1 Revision 1.4
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-proxy/httpush/httpush-0.9_beta11.ebuild,v 1.1.1.1 2005/11/30 09:51:44 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-proxy/httpush/httpush-0.9_beta11.ebuild,v 1.4 2006/03/06 19:18:38 mrness Exp $
4 4
5inherit eutils 5inherit eutils
6 6
7MY_P="${P/_beta/b}" 7MY_P="${P/_beta/b}"
8 8
11SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" 11SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
12 12
13LICENSE="BSD" 13LICENSE="BSD"
14SLOT="0" 14SLOT="0"
15KEYWORDS="~x86" 15KEYWORDS="~x86"
16IUSE="xml2" 16IUSE="xml"
17 17
18RDEPEND="dev-perl/URI 18RDEPEND="dev-perl/URI
19 perl-core/MIME-Base64 19 virtual/perl-MIME-Base64
20 dev-perl/libwww-perl 20 dev-perl/libwww-perl
21 dev-perl/Net-SSLeay 21 dev-perl/Net-SSLeay
22 dev-perl/Crypt-SSLeay 22 dev-perl/Crypt-SSLeay
23 dev-perl/HTML-Parser 23 dev-perl/HTML-Parser
24 xml2? ( dev-perl/XML-Twig )" 24 xml? ( dev-perl/XML-Twig )"
25 25
26S="${WORKDIR}/${MY_P}" 26S="${WORKDIR}/${MY_P}"
27 27
28pkg_setup() { 28pkg_setup() {
29 if ! useq xml2 ; then 29 if ! use xml ; then
30 echo 30 echo
31 einfo "If you'd like to use httpush's learning mode, please CTRL-C now" 31 einfo "If you'd like to use httpush's learning mode, please CTRL-C now"
32 einfo "and enable the xml2 USE flag." 32 einfo "and enable the xml USE flag."
33 epause 3 33 epause 3
34 echo 34 echo
35 fi 35 fi
36} 36}
37 37
38src_unpack() { 38src_unpack() {
39 unpack ${A} 39 unpack ${A}
40 cd ${S} 40 cd "${S}"
41 sed -i 's:^\(require httpush;\)$:push @INC, "/usr/lib/httpush";\n\1:' \ 41 sed -i 's:^\(require httpush;\)$:push @INC, "/usr/lib/httpush";\n\1:' \
42 httpush.pl || die "sed INC failed" 42 httpush.pl || die "sed INC failed"
43 sed -i 's:^\(.*DATADIR="\)data\(.*\)$:\1/var/lib/httpush\2:' *.pl \ 43 sed -i 's:^\(.*DATADIR="\)data\(.*\)$:\1/var/lib/httpush\2:' *.pl \
44 lib/plugin/broker.pm || die "sed DATADIR= failed" 44 lib/plugin/broker.pm || die "sed DATADIR= failed"
45} 45}

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20