blob: 88eacd78d33c572e33150da54c6cfeeb02853c39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/hercules/hercules-3.01.ebuild,v 1.6 2004/06/27 23:04:29 vapier Exp $
inherit flag-o-matic
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() {
replace-flags -march=pentium3 -mcpu=pentium3
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" \
--enable-multi-cpu=7 \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install
dohtml -r html/
insinto /usr/share/hercules
doins hercules.cnf
dodoc README.COMMADPT README.CVS README.ECPSVM README.HDL \
README.NETWORKING README.OSX README.TAPE \
RELEASE.NOTES CHANGES
}
pkg_postinst() {
einfo
einfo "Hercules System/370, ESA/390 and zArchitecture Mainframe"
einfo "Emulator has been installed. Some useful utility files have"
einfo "been placed in /usr/share/hercules. For detailed configuration"
einfo "and operating instructions, see http://www.conmicro.cx/hercules"
einfo
einfo "In order to use Hercules you will need a guest operating"
einfo "system. There are several flavors of 'Linux for S/390' and"
einfo "'Linux for zSeries' available, or if you want that 'Big Iron'"
einfo "feel, you can download several real mainframe operating systems"
einfo "such as OS/360, DOS/VS, MVS, or VM370 from http://www.cbttape.org"
einfo
einfo "Hercules is also capable of running OS/390, z/OS, and z/VM with an"
einfo "appropriate license."
einfo
}
|