# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/hercules/hercules-2.17.1-r1.ebuild,v 1.12 2007/01/25 22:11:56 genone Exp $ DESCRIPTION="Hercules System/370, ESA/390 and zArchitecture Mainframe Emulator" HOMEPAGE="http://www.conmicro.cx/hercules/" SRC_URI="http://www.conmicro.cx/hercules/${P}.tar.gz" LICENSE="QPL-1.0" SLOT="0" KEYWORDS="x86 ppc alpha ~sparc" IUSE="" DEPEND="virtual/libc app-arch/bzip2" src_compile() { local mycflags mycflags="${CFLAGS}" unset CFLAGS ; unset CXXFLAGS econf \ --enable-optimization="${mycflags}" \ --enable-cckd-bzip2 \ --enable-het-bzip2 \ --enable-setuid-hercifc \ --enable-custom="Gentoo Linux ${PF}.ebuild" \ || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install dodoc INSTALL dohtml -r html/ insinto /usr/share/hercules doins hercules.cnf } pkg_postinst() { elog elog "Hercules System/370, ESA/390 and zArchitecture Mainframe" elog "Emulator has been installed. Some useful utility files have" elog "been placed in /usr/share/hercules. For detailed configuration" elog "and operating instructions, see http://www.conmicro.cx/hercules" elog elog "In order to use Hercules you will need a guest operating" elog "system. There are several flavours of 'Linux for S/390' and" elog "'Linux for zSeries' available, or if you want that 'Big Iron'" elog "feel, you can download several real mainframe operating systems" elog "such as OS/360, DOS/VS, MVS, or VM370 from http://www.cbttape.org" elog elog "Hercules is also capable of runing OS/390, z/OS, and z/VM with an" elog "appropriate liscense." elog }