# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/libdbx/libdbx-1.0.3.ebuild,v 1.7 2013/06/21 13:55:04 jer Exp $ inherit eutils toolchain-funcs DESCRIPTION="Tools and library for reading Outlook Express mailboxes (.dbx format)" HOMEPAGE="http://sourceforge.net/projects/ol2mbox" MY_PN="libdbx" MYFILE="${MY_PN}_${PV}.tgz" SRC_URI="mirror://sourceforge/ol2mbox/${MYFILE}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 x86" IUSE="" DEPEND=">=sys-apps/sed-4" S="${WORKDIR}/${MY_PN}_${PV}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/bad_c.patch" sed -i -e 's/-g/$(CFLAGS) $(LDFLAGS)/;s|gcc|$(CC)|g' Makefile } src_compile() { tc-export CC emake || die } src_install() { exeinto /usr/bin doexe readoe readdbx dodoc README* AUTHORS FILE-FORMAT insinto /usr/include doins libdbx.h libdbx++.h insinto /usr/lib doins libdbx.o }