summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2003-09-09 19:45:17 +0000
committerMichael Imhof <tantive@gentoo.org>2003-09-09 19:45:17 +0000
commitfa5f0e94e9926ebce6cb623587f5072ccad7af09 (patch)
tree30de19ea90ece5f398b5eb869e93366509a237bf /sys-cluster
parentInitial release. Submitted by Jean-François Richard <jean-francois@richard.na... (diff)
downloadgentoo-2-fa5f0e94e9926ebce6cb623587f5072ccad7af09.tar.gz
gentoo-2-fa5f0e94e9926ebce6cb623587f5072ccad7af09.tar.bz2
gentoo-2-fa5f0e94e9926ebce6cb623587f5072ccad7af09.zip
Initial release. Submitted by Jean-François Richard <jean-francois@richard.name>.Closes #22215.
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/pvm-povray/ChangeLog10
-rw-r--r--sys-cluster/pvm-povray/Manifest3
-rw-r--r--sys-cluster/pvm-povray/files/digest-pvm-povray-3.1g3
-rw-r--r--sys-cluster/pvm-povray/pvm-povray-3.1g.ebuild121
4 files changed, 136 insertions, 1 deletions
diff --git a/sys-cluster/pvm-povray/ChangeLog b/sys-cluster/pvm-povray/ChangeLog
new file mode 100644
index 000000000000..ab8fba65f437
--- /dev/null
+++ b/sys-cluster/pvm-povray/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-cluster/pvm-povray
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvm-povray/ChangeLog,v 1.1 2003/09/09 19:45:09 tantive Exp $
+
+*pvm-povray-3.1g (09 Sep 2003)
+
+ 09 Sep 2003; Michael Imhof <tantive@gentoo.org> pvm-povray-3.1g.ebuild:
+ Initial release. Submitted by Jean-François Richard
+ <jean-francois@richard.name>.Closes #22215.
+
diff --git a/sys-cluster/pvm-povray/Manifest b/sys-cluster/pvm-povray/Manifest
index a35e63a196f7..c33fc97236a5 100644
--- a/sys-cluster/pvm-povray/Manifest
+++ b/sys-cluster/pvm-povray/Manifest
@@ -1,2 +1,3 @@
-MD5 3e7692edac911361312930625e2bfc1d pvm-povray-3.1g.ebuild 3536
+MD5 2bad868ea7b742201238de8aefabb64e pvm-povray-3.1g.ebuild 3425
+MD5 20b8352ad77f03a495c41b4250dd13dc ChangeLog 434
MD5 f850b9680949db45729bea2724ddaaec files/digest-pvm-povray-3.1g 182
diff --git a/sys-cluster/pvm-povray/files/digest-pvm-povray-3.1g b/sys-cluster/pvm-povray/files/digest-pvm-povray-3.1g
new file mode 100644
index 000000000000..6a04957bc923
--- /dev/null
+++ b/sys-cluster/pvm-povray/files/digest-pvm-povray-3.1g
@@ -0,0 +1,3 @@
+MD5 6da91fb1d3d48cd44f46b831760d233f povuni_s_3.1.tgz 946513
+MD5 dff3b8f3bc2a6dd131a9d008d0f46295 povuni_d_3.1.tgz 913748
+MD5 79fed3e1c3278a4754a5bf705a3d5a73 pvmpov-3.1g2.tgz 41114
diff --git a/sys-cluster/pvm-povray/pvm-povray-3.1g.ebuild b/sys-cluster/pvm-povray/pvm-povray-3.1g.ebuild
new file mode 100644
index 000000000000..19cf4111691a
--- /dev/null
+++ b/sys-cluster/pvm-povray/pvm-povray-3.1g.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvm-povray/pvm-povray-3.1g.ebuild,v 1.1 2003/09/09 19:45:09 tantive Exp $
+
+S=${WORKDIR}/povray31
+DESCRIPTION="The Persistance Of Vision Ray Tracer - PVM version"
+SRC_URI="http://www.ibiblio.org/gentoo/distfiles/povuni_s_3.1.tgz
+ http://www.ibiblio.org/gentoo/distfiles/povuni_d_3.1.tgz
+ http://aleron.dl.sourceforge.net/sourceforge/pvmpov/pvmpov-3.1g2.tgz"
+HOMEPAGE="http://pvmpov.sourceforge.net/"
+
+SLOT="0"
+LICENSE="povlegal-3.1g"
+KEYWORDS="x86"
+IUSE="X svga"
+
+RDEPEND="sys-cluster/pvm"
+
+DEPEND="media-libs/libpng
+ sys-libs/zlib
+ svga? ( media-libs/svgalib )
+ X? ( virtual/x11 )"
+
+src_unpack() {
+ unpack pvmpov-3.1g2.tgz
+ unpack povuni_s_3.1.tgz
+ unpack povuni_d_3.1.tgz
+
+ # Copy pvm-pov sources from the pvm-pov tarball
+ cp -R ${WORKDIR}/pvmpov3_1g_2/povray31/source ${S}
+
+ # The PVM Patch
+ patch -p1 < ${WORKDIR}/pvmpov3_1g_2/pvmpov.patch
+
+ cd ${S}/source/pvm
+
+ cp Makefile.aimk Makefile.aimk.orig
+ sed -e 's/\/local//g' Makefile.aimk.orig > Makefile.aimk
+
+ # Use system libpng
+ echo "s:^PNGDIR.*:#PNGDIR = /usr/include:" >> Makefile.aimk.sed
+ echo "s:^LIBPNGINC.*:#LIBPNGINC =:" >> Makefile.aimk.sed
+ echo "s:^LIBPNGLIB.*:LIBPNGLIB = -lpng:" >> Makefile.aimk.sed
+
+ # Use system zlib
+ echo "s:^ZLIBDIR.*:#ZLIBDIR =:" >> Makefile.aimk.sed
+ echo "s:^ZLIBINC.*:#ZLIBINC =:" >> Makefile.aimk.sed
+ echo "s:^ZLIBLIB.*:ZLIBLIB = -lz:" >> Makefile.aimk.sed
+
+ # POVPATH (install path)
+ echo 's:^POVPATH.*:POVPATH = $(DESTDIR)/usr:' >> Makefile.aimk.sed
+
+ # Symlinks during install need to get into destdir
+ echo 's:$(PVM_ROOT)/bin/$(PVM_ARCH):$(DESTDIR)$(PVM_ROOT)/bin/$(PVM_ARCH):g' >> Makefile.aimk.sed
+ echo 's:ln -s $(POVPATH)/bin/$(UTARGET):ln -s /usr/bin/$(UTARGET):g' >> Makefile.aimk.sed
+ echo 's:ln -s $(POVPATH)/bin/$(XTARGET):ln -s /usr/bin/$(XTARGET):g' >> Makefile.aimk.sed
+ echo 's:ln -s $(POVPATH)/bin/$(STARGET):ln -s /usr/bin/$(STARGET):g' >> Makefile.aimk.sed
+
+ cp Makefile.aimk Makefile.aimk.orig
+ sed -f Makefile.aimk.sed Makefile.aimk.orig > Makefile.aimk
+}
+
+src_compile() {
+ einfo 'Checking for $PVMROOT...'
+
+ if [ -z "${PVMROOT}" ]
+ then
+ eerror 'Please set your $PVMROOT correctly, it is now empty.'
+ eerror 'The $PVMROOT variable should point to your PVM '
+ eerror "installation's root"
+ eerror 'Example $PVMROOT : /usr/pvm3/ or /opt/pvm3/'
+ die
+ fi
+
+ if [ ! -x ${PVMROOT}/lib/aimk ]
+ then
+ eerror "Can not execute ${PVMROOT}/lib/aimk."
+ eerror 'Make sure your $PVMROOT is set correctly'
+ eerror 'Example $PVMROOT : /usr/pvm3/ or /opt/pvm3/'
+ die
+ fi
+
+ export PATH="${PATH}:${PVMROOT}/lib/"
+ einfo '$PVMROOT is OK.'
+
+ einfo 'Building pvmpov'
+
+ cd source/pvm
+ aimk newunix || die
+
+ if [ "`use X`" ] ; then
+ einfo 'Building x-pvmpov'
+ aimk newxwin || die
+ fi
+
+ if [ "`use svga`" ] ; then
+ einfo 'Building s-pvmpov'
+ aimk newsvga || die
+ fi
+}
+
+src_install() {
+ cd source/pvm
+ dodir usr/bin
+ dodir usr/lib
+ doman ${S}/source/unix/povray.1
+ if [ ! -x ${PVMROOT}/lib/pvmgetarch ]
+ then
+ eerror "Can not execute ${PVMROOT}/lib/pvmgetarch."
+ eerror 'Make sure your $PVMROOT is set correctly'
+ eerror 'Example $PVMROOT : /usr/pvm3/ or /opt/pvm3/'
+ die
+ fi
+
+ PVMARCH=`${PVMROOT}/lib/pvmgetarch`
+
+ dodir ${PVMROOT}/bin/${PVMARCH}
+ dodir usr/share/man/man1
+ export PATH="$PATH:/usr/local/pvm3/lib/"
+ aimk DESTDIR=${D} install || die
+}