pentoo-overlay/app-crypt/steghide/steghide-0.5.1.ebuild
2019-11-06 18:45:49 +03:00

47 lines
1,011 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools eutils
DESCRIPTION="A steganography program which hides data in various media files"
HOMEPAGE="https://steghide.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="debug"
DEPEND="
app-crypt/mhash
dev-libs/libmcrypt
sys-libs/zlib
virtual/jpeg"
RDEPEND="${DEPEND}"
src_prepare(){
eapply "${FILESDIR}"/${P}-gcc34.patch
eapply "${FILESDIR}"/${P}-gcc4.patch
eapply "${FILESDIR}"/${P}-gcc43.patch
eautoreconf
default
}
src_configure() {
econf $(use_enable debug)
}
src_compile() {
export CXXFLAGS="$CXXFLAGS -std=c++0x"
local libtool
[[ ${CHOST} == *-darwin* ]] && libtool=$(type -P glibtool) || libtool=$(type -P libtool)
emake LIBTOOL="${libtool}" || die "emake failed"
}
src_install() {
emake DESTDIR="${ED}" docdir="${EPREFIX}/usr/share/doc/${PF}" install || die "emake install failed"
}