Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 245450 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-antivirus/clamav/clamav-0.94.ebuild (-6 / +21 lines)
Lines 2-24 Link Here
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/app-antivirus/clamav/clamav-0.94.ebuild,v 1.10 2008/09/13 22:48:04 dertobi123 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.94.ebuild,v 1.10 2008/09/13 22:48:04 dertobi123 Exp $
4
4
5
inherit autotools eutils flag-o-matic fixheadtails multilib
5
inherit autotools eutils flag-o-matic fixheadtails multilib versionator
6
7
# for when rc1 is appended to release candidates:
8
MY_PV=$(replace_version_separator 3 '');
9
MY_P="${PN}-${MY_PV}"
10
S="${WORKDIR}/${MY_P}"
6
11
7
DESCRIPTION="Clam Anti-Virus Scanner"
12
DESCRIPTION="Clam Anti-Virus Scanner"
8
HOMEPAGE="http://www.clamav.net/"
13
HOMEPAGE="http://www.clamav.net/"
9
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
10
15
11
LICENSE="GPL-2"
16
LICENSE="GPL-2"
12
SLOT="0"
17
SLOT="0"
13
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
18
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
14
IUSE="bzip2 crypt iconv mailwrapper milter nls selinux test"
19
IUSE="bzip2 crypt iconv mailwrapper milter nls selinux test ipv6"
15
20
16
COMMON_DEPEND="bzip2? ( app-arch/bzip2 )
21
COMMON_DEPEND="bzip2? ( app-arch/bzip2 )
17
	crypt? ( >=dev-libs/gmp-4.1.2 )
22
	crypt? ( >=dev-libs/gmp-4.1.2 )
18
	milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
23
	milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
19
	iconv? ( virtual/libiconv )
24
	iconv? ( virtual/libiconv )
20
	nls? ( sys-devel/gettext )
25
	nls? ( sys-devel/gettext )
21
	test? ( dev-libs/check )
26
	test? ( dev-libs/check dev-util/duma dev-util/valgrind )
22
	dev-libs/gmp
27
	dev-libs/gmp
23
	>=sys-libs/zlib-1.2.1-r3
28
	>=sys-libs/zlib-1.2.1-r3
24
	>=sys-apps/sed-4"
29
	>=sys-apps/sed-4"
Lines 47-54 Link Here
47
src_unpack() {
52
src_unpack() {
48
	unpack ${A}
53
	unpack ${A}
49
	cd "${S}"
54
	cd "${S}"
50
	epatch "${FILESDIR}"/${P}-buildfix.patch
55
	# This newer version of ClamAV packages libtool.m4 and lt*.m4 in m4,
51
	epatch "${FILESDIR}"/${P}-nls.patch
56
	# while previous versions did not.
57
	# Since autoreconf invokes libtoolize, a different version of ltmain.sh that doesn't
58
	# match up with the version of the *.m4 files gets thrown into this directory.
59
	# This problem showed up for me in the packages libtool's use of $ECHO while my
60
	# system's libtool's instead used $echo internally, and the .m4 file provides the value of
61
	# $echo or $ECHO.
62
	einfo "removing possibly incompatible libtool-related m4 files"
63
	rm m4/libtool.m4 m4/lt*.m4 || die "unable to remove possibly incompatible libtool-related m4 files"
64
	epatch "${FILESDIR}"/${MY_P}-buildfix.patch
65
	epatch "${FILESDIR}"/${MY_P}-nls.patch
52
66
53
	# If nls flag is disabled, gettext may not be available, but eautoreconf
67
	# If nls flag is disabled, gettext may not be available, but eautoreconf
54
	# needs this file (bug #218892).
68
	# needs this file (bug #218892).
Lines 77-82 Link Here
77
	econf ${myconf} \
91
	econf ${myconf} \
78
		$(use_enable bzip2) \
92
		$(use_enable bzip2) \
79
		$(use_enable nls) \
93
		$(use_enable nls) \
94
		$(use_enable ipv6) \
80
		$(use_with iconv) \
95
		$(use_with iconv) \
81
		--disable-experimental \
96
		--disable-experimental \
82
		--with-dbdir=/var/lib/clamav || die
97
		--with-dbdir=/var/lib/clamav || die

Return to bug 245450