# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="MegaPOV is the popular collection of unofficial extensions of POV-Ray." HOMEPAGE="http://megapov.inetart.net/" SRC_URI="http://megapov.inetart.net/megapov-1.0_linux.tgz" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=media-gfx/povray-3.5" # Run-time dependencies, same as DEPEND if RDEPEND isn't defined: #RDEPEND="" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. S will get a default setting of ${WORKDIR}/${P} # if you omit this line. S=${WORKDIR}/${P} src_unpack(){ unpack megapov-1.0_linux.tgz mv megapov-1.0 megapov-bin-1.0 } src_install() { VERSION=megapov-1.0 LIBDIR=usr/share/megapov DOCDIR=usr/share/doc/$VERSION mkdir -p ${D}usr/bin mkdir -p ${D}$LIBDIR mkdir -p ${D}$DOCDIR install --mode=0755 ./bin/megapov ${D}usr/bin cp -f -R ./scenes ${D}$LIBDIR/ cp -f -R ./include ${D}$LIBDIR/ cp -f -R ./manual/* ${D}$DOCDIR/ mkdir -p ${D}usr/local/etc ln -s /etc/povray.conf ${D}usr/local/etc/ einfo "The MegaPOV files have been installed. You will have to" einfo "adjust your main POV-Ray ini file by adding a new line:" einfo "" einfo "Library_Path=$LIBDIR/include" einfo "" einfo "This ini file is possibly located at:" einfo "" einfo " - the place defined by the POVINI environment variable" einfo " - ./povray.ini" einfo " - $HOME/.povrayrc" einfo " - SYSCONFDIR/povray.ini" einfo "" einfo "The documentation can be found at:" einfo "" einfo "/usr/local/share/doc/$VERSION" }