# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_P="setup${PN}${PV//.}" DESCRIPTION="Discovery Studio Visualizer" HOMEPAGE="http://www.accelrys.com/products/downloads/ds_visualizer/" RESTRICT="fetch" SRC_URI="${MY_P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/jre" S="${WORKDIR}" pkg_nofetch() { einfo "Go to ${HOMEPAGE}" einfo "Fill out the form, and place ${A}" einfo "in ${DISTDIR}" } src_unpack() { unpack ${A} cd "${S}" # Extract only, don't run the install script bash ./${MY_P}.sh -is:extract # Fix up options file to install to the right place } src_install() { # Couple of ways to create the initial options file # 1) Get a commented out template with: # java -cp ds_visualizer_setup.jar run -silent -options-template myopts.txt # 2) Create an options file by running through the installer: # java -cp ds_visualizer_setup.jar run -options-record myopts.txt # The usual -console option doesn't work for this particular InstallShield, # since it wasn't generated with a version capable of the -console flag. local OPTIONSFILE="${T}/myopts.txt" cp "${FILESDIR}"/myopts.txt "${T}"/${OPTIONSFILE} # Fix it up however sed -i \ -e "s:::g" \ "${T}"/${OPTIONSFILE} # We can't determind the temp unpack suffix cd "${S}"/istemp* java -cp ds_visualizer_setup.jar run -silent -options ${OPTIONSFILE} }