# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-crypt/steghide/steghide-0.5.1.ebuild,v 1.15 2010/11/08 19:40:59 c1pher Exp $ EAPI="3" inherit autotools eutils DESCRIPTION="A steganography program which hides data in various media files" HOMEPAGE="http://steghide.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" IUSE="debug" DEPEND=">=app-crypt/mhash-0.8.18-r1 >=dev-libs/libmcrypt-2.5.7 >=sys-libs/zlib-1.1.4-r2 virtual/jpeg" RDEPEND="${DEPEND}" src_prepare(){ epatch "${FILESDIR}"/${P}-gcc34.patch \ "${FILESDIR}"/${P}-gcc4.patch \ "${FILESDIR}"/${P}-gcc43.patch eautoreconf } src_configure() { econf $(use_enable debug) } src_compile() { local libtool [[ ${CHOST} == *-darwin* ]] && libtool=$(type -P glibtool) || libtool=$(type -P libtool) emake LIBTOOL="${libtool}" || die "emake failed" } src_install() { emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install || die "emake install failed" prepalldocs }