# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/libpst/libpst-0.6.41.ebuild,v 1.5 2009/12/21 15:38:37 ssuominen Exp $ EAPI=2 inherit autotools eutils toolchain-funcs DESCRIPTION="Tools and library for reading Outlook files (.pst format)" HOMEPAGE="http://www.five-ten-sg.com/libpst/" SRC_URI="http://www.five-ten-sg.com/${PN}/packages/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="debug dii python" RDEPEND="dii? ( media-gfx/imagemagick[png] )" DEPEND="virtual/libiconv dii? ( media-libs/gd[png] ) python? ( >=dev-libs/boost-1.35.0-r5[python] ) ${RDEPEND}" src_prepare() { epatch "${FILESDIR}"/${P}-asneeded.patch eautoreconf } src_configure() { econf \ $(use_enable debug pst-debug) \ $(use_enable dii) \ $(use_enable python) \ --enable-libpst-shared } src_compile() { emake CC=$(tc-getCC) || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS TODO || die "dodoc failed" }