Initial import of fresco-cvs
authorTilman Klar <phoenix@gentoo.org>
Sun, 20 Oct 2002 10:48:00 +0000 (10:48 +0000)
committerTilman Klar <phoenix@gentoo.org>
Sun, 20 Oct 2002 10:48:00 +0000 (10:48 +0000)
fresco-base/fresco-cvs/ChangeLog [new file with mode: 0644]
fresco-base/fresco-cvs/files/digest-fresco-cvs-20021020 [new file with mode: 0644]
fresco-base/fresco-cvs/files/gcc-3.2.patch.bz2 [new file with mode: 0644]
fresco-base/fresco-cvs/files/rundemo.sh [new file with mode: 0644]
fresco-base/fresco-cvs/fresco-cvs-20021020.ebuild [new file with mode: 0644]

diff --git a/fresco-base/fresco-cvs/ChangeLog b/fresco-base/fresco-cvs/ChangeLog
new file mode 100644 (file)
index 0000000..ec1bf82
--- /dev/null
@@ -0,0 +1,13 @@
+# ChangeLog for fresco-base/fresco-cvs
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/fresco-base/fresco-cvs/ChangeLog,v 1.1 2002/10/20 10:48:00 phoenix Exp $
+
+*fresco-20021020.ebuild (20 Oct 2002)
+
+  20 Oct 2002; phoen][x <phoenix@gentoo.org> fresco-cvs-20021006.ebuild 
+  files/digest-fresco-cvs-20021006, files/gcc-3.2.patch.bz2, files/rundemo.sh :
+
+  Initial import. This is the cvs ebuild for fresco. Fresco is far from
+  finished, so it makes definitely no sense to have a static ebuild for 
+  it yet. This ebuild features a gcc3.2 patch and a nice runscript which
+  makes it possible to run fresco w/o omniORB.
diff --git a/fresco-base/fresco-cvs/files/digest-fresco-cvs-20021020 b/fresco-base/fresco-cvs/files/digest-fresco-cvs-20021020
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/fresco-base/fresco-cvs/files/gcc-3.2.patch.bz2 b/fresco-base/fresco-cvs/files/gcc-3.2.patch.bz2
new file mode 100644 (file)
index 0000000..2b37a60
Binary files /dev/null and b/fresco-base/fresco-cvs/files/gcc-3.2.patch.bz2 differ
diff --git a/fresco-base/fresco-cvs/files/rundemo.sh b/fresco-base/fresco-cvs/files/rundemo.sh
new file mode 100644 (file)
index 0000000..ff90d08
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+TMPFILE="/tmp/orbref"
+if([ -e ${TMPFILE} ]) then
+       echo "${TMPFILE} already exists. Delete it please."
+       exit
+fi
+
+pushd /opt/fresco &> /dev/null
+
+echo "Starting up the server..."
+bin/server -R ior &> ${TMPFILE} &
+sleep 2
+
+REF=`head -1 ${TMPFILE} | cut -d " " -f 3`
+rm ${TMPFILE}
+
+echo "Starting the demo..."
+bin/demo -ORBInitRef ${REF}
+
+popd &> /dev/null
diff --git a/fresco-base/fresco-cvs/fresco-cvs-20021020.ebuild b/fresco-base/fresco-cvs/fresco-cvs-20021020.ebuild
new file mode 100644 (file)
index 0000000..3f6a728
--- /dev/null
@@ -0,0 +1,61 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/fresco-base/fresco-cvs/fresco-cvs-20021020.ebuild,v 1.1 2002/10/20 10:48:00 phoenix Exp $
+
+ECVS_SERVER="cvs.fresco.org:/cvs/fresco"
+ECVS_MODULE="Fresco"
+#ECVS_BRANCH=${PN/cvs/}${PV/./-}
+ECVS_TOP_DIR="${DISTDIR}/cvs-src/${ECVS_BRANCH}"
+
+inherit cvs
+inherit gcc
+
+MY_PN="${PN/fresco-cvs/Fresco}"
+S="${WORKDIR}/${MY_PN}"
+DESCRIPTION="fresco -- A free X11 replacement which is under heavy development. CVS ebuild."
+HOMEPAGE="http://www2.fresco.org"
+LICENSE="fresco"
+SLOT="0"
+KEYWORDS="~x86"
+PATCH="gcc-3.2.patch"
+       
+DEPEND="net-misc/omniORB
+       media-libs/libggi
+       media-libs/libsdl
+       dev-libs/DirectFB
+       virtual/opengl
+       media-libs/libart_lgpl
+       >=media-libs/freetype-2.0.0
+       sys-libs/zlib
+       media-libs/libpng
+       fresco-base/fresco-env"
+
+
+src_compile() {
+       cd ${S}
+       
+       # Apply the patch on gcc3.2 boxes
+       if([ "`gcc-version`" == "3.2" ]) then
+               einfo "GCC 3.2 found. Applying patch"
+               cp ${FILESDIR}/${PATCH}.bz2 ${S}
+               bunzip2 ${S}/${PATCH}.bz2
+               patch -p0 < ${PATCH}
+       fi
+
+       ./autogen.sh || die "autogen.sh failed"
+       ./configure || die "configure failed" 
+       make configure_args="--prefix=/opt/fresco --enable-tracer" || die "make failed"
+}
+
+src_install () {
+       make DESTDIR=${D} install || die
+       exeinto /opt/fresco
+       doexe ${FILESDIR}/rundemo.sh
+       dodoc INSTALL README
+}
+
+pkg_postinst () {
+       einfo "***********************************************"
+       einfo "* Use /opt/fresco/rundemo.sh to run the demo. *"
+       einfo "***********************************************"
+}