# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Symphony Simili VHDL Simulator" SRC_URI="http://www.symphonyeda.com/Downloads/Simili30b14-linux-x86.tar" HOMEPAGE="http://www.symphonyeda.com/products.htm" SLOT="0" LICENSE="Symphony" KEYWORDS="~x86" RESTRICT="nostrip" INSTALLDIR=/opt/simili # avoid errors for files with multiple hardlinks export PORTAGE_COMPRESS_FLAGS="-9 -f" src_install() { dodir ${INSTALLDIR} MY_PV=$(echo ${PV} | sed -e 's/\.//' | sed -e 's/_p/b/') tar xzf ${WORKDIR}/Simili${MY_PV}-linux-x86-image.tgz -C ${D}${INSTALLDIR} # set the free license cp ${D}${INSTALLDIR}/bin/freelic.txt ${D}${INSTALLDIR}/bin/symphony.lic insinto /etc/env.d echo -e "PATH=${INSTALLDIR}/tcl/bin\nSYMPHONYEDA=${INSTALLDIR}" > 90simili doins 90simili dodir /etc/revdep-rebuild cat - > "${D}/etc/revdep-rebuild/60simili" << EOF SEARCH_DIRS_MASK="/opt/simili/tcl/bin/" EOF } pkg_postinst() { einfo "The VHDL Simili toolset primarily consists of the following commands:" einfo "" einfo "1. sonata -- Graphical User Interface for Simili (uses any available license)" einfo "2. sonatastd -- Same as above except it requires the Std. Edition license" einfo "3. sonatapro -- Same as above except it requires the Prof. Edition license" einfo "4. vhdlp -- This is the command-line VHDL compiler" einfo "5. vhdle -- This is the command-line VHDL simulator" einfo "" einfo "You can use the following command to request licenses (demo or purchased):" einfo "(please run the license request as $USER)" einfo "" einfo " sonata -L" einfo "" einfo "If you are a new user of sonata, it will be very helpful for you to go" einfo "through the tutorial (approx. 15-30 minutes) included in the documentation." }