diff options
author | Michael Sterrett <msterret@gentoo.org> | 2003-07-30 08:12:54 +0000 |
---|---|---|
committer | Michael Sterrett <msterret@gentoo.org> | 2003-07-30 08:12:54 +0000 |
commit | c56a72e60f5259a9332294e27ada4942b103a705 (patch) | |
tree | f7cfb60f68d61e1c477a50928c58dda0bcc46b1b /media-gfx/megapov | |
parent | initial commit (bug 21381) (diff) | |
download | gentoo-2-c56a72e60f5259a9332294e27ada4942b103a705.tar.gz gentoo-2-c56a72e60f5259a9332294e27ada4942b103a705.tar.bz2 gentoo-2-c56a72e60f5259a9332294e27ada4942b103a705.zip |
initial commit (bug 21381)
Diffstat (limited to 'media-gfx/megapov')
-rw-r--r-- | media-gfx/megapov/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/megapov/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/megapov/files/digest-megapov-1.0 | 1 | ||||
-rw-r--r-- | media-gfx/megapov/megapov-1.0.ebuild | 65 |
4 files changed, 78 insertions, 1 deletions
diff --git a/media-gfx/megapov/ChangeLog b/media-gfx/megapov/ChangeLog new file mode 100644 index 000000000000..c03ac50bc232 --- /dev/null +++ b/media-gfx/megapov/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-gfx/megapov +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/megapov/ChangeLog,v 1.1 2003/07/30 08:12:51 msterret Exp $ + +*megapov-1.0 (30 Jul 2003) + + 30 Jul 2003; Michael Sterrett <msterret@gentoo.org> megapov-1.0.ebuild: + initial commit (bug 21381) - original ebuild since bug report used a + binary build. + diff --git a/media-gfx/megapov/Manifest b/media-gfx/megapov/Manifest index 3dcc75b11fa8..6fd53a3a5fac 100644 --- a/media-gfx/megapov/Manifest +++ b/media-gfx/megapov/Manifest @@ -1,2 +1,3 @@ -MD5 30925dce49bc335f73e9b733553393c0 megapov-1.0.ebuild 1179 +MD5 64745df135a764d12ee81219c00463bd megapov-1.0.ebuild 1810 +MD5 86b95cc24e6f44c0fce40b662e0b8946 ChangeLog 408 MD5 98014ef18d9679f35cfa31671127a06c files/digest-megapov-1.0 68 diff --git a/media-gfx/megapov/files/digest-megapov-1.0 b/media-gfx/megapov/files/digest-megapov-1.0 new file mode 100644 index 000000000000..38eff021b510 --- /dev/null +++ b/media-gfx/megapov/files/digest-megapov-1.0 @@ -0,0 +1 @@ +MD5 6a7386b074746157b20346e209909b7a megapov-1.0_unix_s.tgz 3584199 diff --git a/media-gfx/megapov/megapov-1.0.ebuild b/media-gfx/megapov/megapov-1.0.ebuild new file mode 100644 index 000000000000..bf97bc10c128 --- /dev/null +++ b/media-gfx/megapov/megapov-1.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/megapov/megapov-1.0.ebuild,v 1.1 2003/07/30 08:12:51 msterret Exp $ + +DESCRIPTION="The popular collection of unofficial extensions of POV-Ray" +HOMEPAGE="http://megapov.inetart.net/" +SRC_URI="http://megapov.inetart.net/${P}_unix_s.tgz" +LICENSE="povlegal-3.5" +KEYWORDS="~x86" +SLOT="0" +IUSE="" + +DEPEND=">=media-gfx/povray-3.5 + media-libs/libpng + media-libs/tiff + media-libs/jpeg + sys-libs/zlib" + +src_unpack() { + unpack ${A} + cd ${S} + + # since svgalib seems to be dying off I choose to remove support for it + # from the Makefile so megapov doesn't DEPEND on it. Someone else is + # welcome to add proper USE support for it if they want. + sed -i \ + -e '/HAVE_LIBVGA/ s/HAVE/DONT_HAVE/' \ + -e 's/-lvgagl -lvga//' \ + -e '/^LIBS_DISP/ s/$/ -lpthread/' unix/Makefile || \ + die 'sed src/Makefile failed' +} + +src_compile() { + emake CFLAGS="${CFLAGS}" CPPFLAGS="${CXXFLAGS}" \ + prefix="/usr" libdir="/usr/share/${PN}" \ + docdir="/usr/share/doc/${P}" sysconfdir="/etc" +} + +src_install() { + local LIBDIR="/usr/share/${PN}/" + local DOCDIR="/usr/share/doc/${P}/html/" + + mkdir -p ${D}${LIBDIR} + mkdir -p ${D}${DOCDIR} + + into /usr + dobin ./build_unix/megapov + cp -R ./scenes ./include ${D}$LIBDIR + cp -R ./manual/* ${D}$DOCDIR + dodoc README +} + +pkg_postinst() { + einfo "The MegaPOV files have been installed. You will have to" + einfo "adjust your main POV-Ray ini file by adding a new line:" + echo + einfo "Library_Path=/usr/share/${PN}/include" + echo + einfo "This ini file is possibly located at:" + echo + einfo " - the place defined by the POVINI environment variable" + einfo " - ./povray.ini" + einfo " - \$HOME/.povrayrc" + einfo " - SYSCONFDIR/povray.ini" +} |