summaryrefslogtreecommitdiff
blob: 42e3c34bb2c32eed4c4e07c5906adf2a2e1cb46e (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-emulation/hercules/hercules-2.15.ebuild,v 1.4 2002/07/27 14:01:11 stubear Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Hercules System/370, ESA/390 and zArchitecture Mainframe Emulator"
SRC_URI="http://www.conmicro.cx/hercules/${P}.tar.gz"
HOMEPAGE="http://www.conmicro.cx/hercules/"
LICENSE="QPL-1.0"
KEYWORDS="x86"
SLOT="0"

DEPEND="virtual/glibc
	sys-apps/bzip2
	"

RDEPEND="${DEPEND}"

src_compile() {
	local mycflags
	mycflags="${CFLAGS}"
	unset CFLAGS ; unset CXXFLAGS

	./configure \
		--prefix=/usr \
		--enable-optimization="${mycflags}" \
		--enable-cckd-bzip2 \
		--enable-het-bzip2 \
		--enable-setuid-hercifc \
		--enable-custom="Gentoo Linux ${PF}.ebuild" \
		|| die "bad ./configure"

	make || die "compile problem"
}

src_install() {

	make DESTDIR=${D} install
	dodoc INSTALL 

	dohtml html/*.html html/hercules.css

	insinto /usr/share/hercules
	doins hercules.cnf
}

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 flavours of 'Linux for S/390'"
	einfo "available, or if you want that 'Big Iron' feel, you can"
	einfo "download several real mainframe operating systems such as"
	einfo "OS/360, MVS 3.8J or VM370r6 from http://www.cbttape.org"
	einfo

}