summaryrefslogtreecommitdiff
blob: 925d4444c189f7a639201115faa83dfddfd92b54 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vm-arm/vm-arm-1.0.1.ebuild,v 1.2 2005/06/01 22:18:59 vapier Exp $

inherit eutils rpm

# - Debian version is very old
# - Redhat/Fedora ones link against funky ssl
# - SuSe or MDK rpm's are the only ones that will really work
RPM_VER="9.suse9_2"
DESCRIPTION="highly optimized and accurate simulation of the ARM architecture"
HOMEPAGE="http://www.virtera.com/"
SRC_URI="vm-arm-se-${PV}-${RPM_VER}.i686.rpm"

LICENSE="VIRTERA"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="fetch nostrip"

DEPEND="=dev-libs/openssl-0.9.7*
	=x11-libs/wxGTK-2.4*"

S=${WORKDIR}

pkg_setup() {
	if ! built_with_use x11-libs/wxGTK wxgtk1 ; then
		eerror "Please emerge x11-libs/wxGTK-2.4 with wxgtk1 in USE flags."
		die "GTK1 support in 11-libs/wxGTK-2.4 needed to run ${P}."
	fi
}

pkg_nofetch() {
	einfo "You need to perform the following steps to install this package:"
	einfo " - Sign up at ${HOMEPAGE}"
	einfo " - Check your email and visit the download location"
	einfo " - Download ${A} and place it in ${DISTDIR}"
	einfo " - emerge this package"
	einfo " - Put your license in ~/.virtera/"
}

src_install() {
	mv opt "${D}"/ || die
	dodir /opt/bin
	cd "${D}"
	for x in opt/virtera/vm-arm-se-${PV}/bin/* ; do
		dosym /${x} /opt/bin/${x##*/}
	done
	find "${D}" -type d -exec chmod a+rx {} \;
}

pkg_postinst() {
	einfo "Please remember to put your license in ~/.virtera/"
}