# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/smalltalkx/smalltalkx-5.2.6.ebuild,v 1.3 2007/07/22 10:50:23 graaff Exp $ DESCRIPTION="The non-commercial version of a complete implementation of the Smalltalk programming language and development environment" HOMEPAGE="http://www.exept.de/exept/english/Smalltalk/frame_uebersicht.html" SRC_URI="mirror://gentoo/${PN}-common-${PV}.tgz mirror://gentoo/${PN}-linux-${PV}.tgz" LICENSE="as-is" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="doc" DEPEND="" RDEPEND="x11-libs/libX11" S=${WORKDIR}/stx src_compile() { einfo "This is a binary package." einfo "We don't need to compile anything." } src_install() { cp obsolete/INSTALL.sh obsolete/INSTALL.files . einfo "Running the smalltalkx installer script" ./support/install-sh --prefix=${D}/opt/stx/${PV} \ --verbose -app-release=5.2.6 -quiet=yes \ `use_with doc` \ || die "failed installation" cd ${D}/opt/stx/${PV}/ for i in `find . -type l` ; do foo=`ls -l ${i} | sed "s/.*-> //" | sed "s_${D}__"` rm $i ln -sf ${foo} $i done # do symbolic links dodir /usr/bin dosym /opt/stx/${PV}/bin/smalltalk /usr/bin/smalltalk dosym /opt/stx/${PV}/bin/stx /usr/bin/stx dosym /opt/stx/${PV}/bin/stc /usr/bin/stc # setup the library path echo "STX_LIBDIR=/opt/stx/${PV}/lib/" > ${WORKDIR}/50smalltalkx doenvd ${WORKDIR}/50smalltalkx }