# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Macromedia's Flex 2 SDK for building Flash 9 .swf applications." HOMEPAGE="http://www.flex.org/" SRC_URI="http://www.adobe.com/support/flex/ts/documents/flex2_hf2/flex_sdk_2_Hotfix2.zip" LICENSE="Macromedia" SLOT="0" KEYWORDS="-* ~x86 ~amd64" IUSE="examples nosource" # asdoc cannot run avmplus (asdoc/templates/asDocHelper.linux) if it is stripped RESTRICT="strip" DEPEND="" RDEPEND="virtual/jre >=net-www/netscape-flash-9" src_install() { cd ${WORKDIR} local dirs="bin frameworks lib asdoc" if use examples; then local dirs="${dirs} resources samples" fi dodir /opt/${PN} # don't want to waste space copying windows binaries rm bin/*.exe rm asdoc/templates/*.exe # for some reason asdoc needs to create temp files in this folder ?? chmod 777 asdoc/templates if use nosource; then # library sources don't seem to be needed for anything # (and there are a lot of them!) rm -rf frameworks/source fi # copy remaining contents of dirs for i in ${dirs}; do cp -pPR ${i} ${D}/opt/${PN}/ || die "failed to copy" done cp -pPR *.xml ${D}/opt/${PN}/ || die "failed to copy" dohtml *.htm # for startup scripts local envfile=50${PN} echo "PATH=\"/opt/${PN}/bin/\"" >> ${envfile} echo "FLEX_HOME=\"/opt/${PN}\"" >> ${envfile} doenvd ${envfile} # link startup scripts into /bin # redundant with PATH? but nice to see them there local binaries="compc fdb mxmlc asdoc" for i in ${binaries}; do dosym /opt/${PN}/bin/${i} /bin/${i} done } pkg_postinst() { einfo "Remember to source /etc/profile in open shells." }