/[gentoo-x86]/net-misc/pavuk/pavuk-0.9.36_pre20120215-r2.ebuild
Gentoo

Contents of /net-misc/pavuk/pavuk-0.9.36_pre20120215-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Feb 4 18:44:47 2013 UTC (6 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -8 lines
Fix building due variables exported in wrong place (#452640 by dE and Richard Grenville)

(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/pavuk/pavuk-0.9.36_pre20120215-r2.ebuild,v 1.1 2013/01/10 20:43:52 pacho Exp $
4
5 EAPI=5
6
7 S="${WORKDIR}/${PN}"
8 AUTOTOOLS_AUTORECONF=1
9 AUTOTOOLS_IN_SOURCE_BUILD=1
10
11 inherit eutils autotools-utils
12
13 DESCRIPTION="Web spider and website mirroring tool"
14 HOMEPAGE="http://www.pavuk.org/"
15 SRC_URI="http://dev.gentoo.org/~pacho/maintainer-needed/${P}.tar.xz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
20 IUSE="debug gtk hammer ipv6 nls pcre profile ssl"
21
22 RDEPEND="virtual/libintl:=
23 gtk? ( x11-libs/gtk+:2 )
24 pcre? ( dev-libs/libpcre:= )
25 ssl? ( dev-libs/openssl:= )"
26 DEPEND="${RDEPEND}
27 >=sys-apps/sed-4
28 sys-devel/gettext"
29
30 PATCHES=(
31 # Fixes a bug in re.c for PCRE support
32 "${FILESDIR}/${P}-pcre-fix.patch"
33
34 # Fixes underlinking, bug #405337
35 "${FILESDIR}/${P}-fix-underlinking.patch"
36
37 # Fixes a segfault in the GTK+2 interface on amd64, bug #262504#c40
38 "${FILESDIR}/${P}-fix-gtkmulticol-segfault.patch"
39
40 # Fixed overflow, bug #450990
41 "${FILESDIR}/${P}-tl_selectr-overflow-fix.patch"
42 )
43
44 DOCS=( README CREDITS NEWS AUTHORS BUGS TODO MAILINGLIST wget-pavuk.HOWTO
45 ChangeLog wget-pavuk.HOWTO pavuk_authinfo.sample pavukrc.sample )
46
47 src_prepare() {
48 # Fixes a bug in Makefile.am that causes aclocal to fail
49 sed -i 's/^\(ACLOCAL_AMFLAGS[[:space:]]*=[[:space:]]*-I[[:space:]]*\)\$(top_srcdir)\//\1/' "${S}/Makefile.am" || die
50
51 # Fixes a bug in configure.in that breaks non-debug builds
52 sed -i 's/\([[:space:]]C\(PP\)*FLAGS=`\)/true; # \1/' "${S}/configure.in" || die
53
54 # Fix for building with ~dev-lang/spidermonkey-1.8.5
55 # sed -i 's/mozjs/mozjs185/g' "${S}/configure.in" || die
56
57 autotools-utils_src_prepare
58 }
59
60 src_configure() {
61 local regex="auto"
62 use pcre && regex="pcre"
63
64 local myeconfargs=(
65 --enable-threads
66 --enable-socks
67 --enable-utf-8
68 --disable-js
69 "--with-regex=${regex}"
70 $(use_enable gtk)
71 $(use_enable gtk gtk2)
72 $(use_enable gtk gnome)
73 $(use_with gtk x)
74 $(use_enable debug debugging)
75 $(use_enable debug debug-build)
76 # $(use_enable debug debug-features)
77 $(use_enable ssl)
78 $(use_enable nls)
79 $(use_enable ipv6)
80 # $(use_enable javascript js)
81 $(use_enable profile profiling)
82 )
83
84 # JavaScript bindings: Broken!
85 # ============================
86 # Currently could pass configure phase with ~dev-lang/spidermonkey-1.8.5
87 # yet apparently incompatible with recent versions of spidermonkey
88
89 # if use javascript; then
90 # local jspkg='mozjs185'
91 # local jsinclude=$(pkg-config --cflags "$jspkg")
92 # local jslibs='/dev/null '$(pkg-config --libs-only-l "$jspkg")
93 # myeconfargs+=(
94 # "--with-js-include=${jsinclude}"
95 # "--with-js-libraries=${jslibs}"
96 # )
97 # fi
98
99 autotools-utils_src_configure
100 }
101
102 src_install() {
103 if use gtk; then
104 newicon src/pavuk_logo.xpm pavuk.xpm
105 domenu pavuk.desktop
106 fi
107
108 doman "${S}/doc/pavuk.1"
109
110 autotools-utils_src_install
111 }

  ViewVC Help
Powered by ViewVC 1.1.20