summaryrefslogtreecommitdiff
blob: 5a76c3ebdf3d9b5bab4a76777d3a346c95417d17 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/modelsim/modelsim-5.7d.ebuild,v 1.1 2003/07/10 00:19:08 vapier Exp $

DESCRIPTION="VHDL and mixed-VHDL/Verilog simulator"
HOMEPAGE="http://www.model.com/"
SRC_URI="modeltech-base.tar.gz
	modeltech-linux.exe.gz
	doc? ( modeltech-docs.tar.gz )"

LICENSE="modelsim"
SLOT="0"
KEYWORDS="-* x86"
RESTRICT="nostrip fetch"

DEPEND=""

pkg_nofetch() {
	einfo "You must download the files yourself and put them in ${DISTDIR}"
	einfo "Goto http://www.model.com/products/release.asp"
}

src_unpack() {
	unpack modeltech-base.tar.gz
	use doc && unpack modeltech-docs.tar.gz
	gzip -c -d ${DISTDIR}/modeltech-linux.exe.gz > modeltech-linux.exe || die "gzip -c -d"
	chmod +x modeltech-linux.exe
	echo -n -e "D\nAgree\n"|./modeltech-linux.exe > /dev/null
}

src_install() {
	dodir /opt
	cp -r ${WORKDIR}/modeltech ${D}/opt/
	insinto /etc/env.d
	echo "PATH=/opt/modeltech/bin" > 90modelsimSE
	doins 90modelsimSE
}

pkg_postinst() {
	einfo "Read the installation manual for details of configuring a"
	einfo "standalone license server, or set LM_LICENSE_FILE=xxxx@host"
	einfo "if you already have a running license server"
}