1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit flag-o-matic eutils
9 DESCRIPTION="Hercules System/370, ESA/390 and zArchitecture Mainframe Emulator"
10 HOMEPAGE="http://www.hercules-390.eu/"
11 SRC_URI="http://downloads.hercules-390.eu/${P}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x64-macos ~x86-macos"
16 IUSE="bzip2 custom-cflags +suid"
18 RDEPEND="bzip2? ( app-arch/bzip2 )
23 epatch "${FILESDIR}"/${PN}-3.09-aliasing.patch
27 use custom-cflags || strip-flags
28 ac_cv_lib_bz2_BZ2_bzBuffToBuffDecompress=$(usex bzip2) \
30 $(use_enable bzip2 cckd-bzip2) \
31 $(use_enable bzip2 het-bzip2) \
32 $(use_enable suid setuid-hercifc) \
33 --enable-custom="Gentoo ${PF}.ebuild" \
34 --disable-optimization
39 insinto /usr/share/hercules
41 dodoc README.* RELEASE.NOTES