summaryrefslogtreecommitdiff
blob: a349424afea941fb114be91fe02ed8a3b269a123 (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
EAPI=5
inherit user

DESCRIPTION="Synopsys VCS"
HOMEPAGE="http://www.synopsys.com/vcs"
SRC_URI="vcs_vL-2016.06-1_common.spf vcs_vL-2016.06-1_linux64.spf vcs_vL-2016.06-1_linux.spf"
RESTRICT="fetch strip"

LICENSE=""
SLOT="${PV}"
KEYWORDS="~amd64"
IUSE=""

INSTALLER_VERSION="3.2"

DEPEND="sci-electronics/synopsys-installer:${INSTALLER_VERSION}"
RDEPEND="${DEPEND}"

src_unpack() {
	mkdir -p "${S}"
	cd ${DISTDIR}
	cp --reflink=auto ${A} ${S}
}

src_install() {
   INSTALLER_HOME="${EPREFIX}/opt/synopsys/installer/${INSTALLER_VERSION}"
   PRODUCT=vcs
   ${INSTALLER_HOME}/installer -install_as_root -batch_installer -source ${S} -target ${ED}/opt/synopsys
   test -d ${ED}/opt/synopsys/${PRODUCT} || die "installer failed"
}