summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2003-06-18 00:37:20 +0000
committerGeorge Shapovalov <george@gentoo.org>2003-06-18 00:37:20 +0000
commit35cf910af6e2f2188480274ade13adea153b9621 (patch)
treed206e71b1e2228fddd5d808464cb94d54349ca82 /media-libs/esdl
parentmasked for fix testing esdl-0.93.0314-r1 (diff)
downloadhistorical-35cf910af6e2f2188480274ade13adea153b9621.tar.gz
historical-35cf910af6e2f2188480274ade13adea153b9621.tar.bz2
historical-35cf910af6e2f2188480274ade13adea153b9621.zip
nvidia headers fix
Diffstat (limited to 'media-libs/esdl')
-rw-r--r--media-libs/esdl/ChangeLog8
-rw-r--r--media-libs/esdl/Manifest6
-rw-r--r--media-libs/esdl/esdl-0.93.0314-r1.ebuild63
-rw-r--r--media-libs/esdl/files/digest-esdl-0.93.0314-r11
4 files changed, 75 insertions, 3 deletions
diff --git a/media-libs/esdl/ChangeLog b/media-libs/esdl/ChangeLog
index 30925ed88d09..6536983f50b9 100644
--- a/media-libs/esdl/ChangeLog
+++ b/media-libs/esdl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/esdl
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/esdl/ChangeLog,v 1.2 2003/05/11 00:36:00 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/esdl/ChangeLog,v 1.3 2003/06/18 00:37:18 george Exp $
+
+ 17 Jun 2003; George Shapovalov <george@gentoo.org> esdl-0.93.0314-r1.ebuild :
+ testing nvidia headers fix (#22933).
+ Not adding *esdl-0.93.0314-r1 header, since this ebuild is supposed to disappear
+ after testing (it will replace the -r0 one, - no need to force package recompilation
+ on everybody. The -r1 ebuild is package.mask'ed now)
*esdl-0.93.0314 (10 May 2003)
diff --git a/media-libs/esdl/Manifest b/media-libs/esdl/Manifest
index 49cb466eb81a..62a776462844 100644
--- a/media-libs/esdl/Manifest
+++ b/media-libs/esdl/Manifest
@@ -1,6 +1,8 @@
-MD5 1e93dbf778648c33b08525ea3e28828e ChangeLog 685
MD5 2fe710a449ef5f869ff0220bd77cd33d esdl-0.93.0131.ebuild 774
MD5 710d7296379900792f446fc94935d950 esdl-0.93.0314.ebuild 993
+MD5 63f798e3b2c440d75e43bca1da429433 ChangeLog 1032
+MD5 dc4b59b41210e374f051cbb6beb64b9d esdl-0.93.0314-r1.ebuild 1526
+MD5 8c6bb528fe0c29b1318311231f051981 files/esdl-0.93.0314.patch.bz2 2977
MD5 3305855c13a219a291b3c4c7d8c4a24f files/digest-esdl-0.93.0131 70
MD5 c0f6fc715b86df64ac4ba1de4a0c9517 files/digest-esdl-0.93.0314 70
-MD5 8c6bb528fe0c29b1318311231f051981 files/esdl-0.93.0314.patch.bz2 2977
+MD5 c0f6fc715b86df64ac4ba1de4a0c9517 files/digest-esdl-0.93.0314-r1 70
diff --git a/media-libs/esdl/esdl-0.93.0314-r1.ebuild b/media-libs/esdl/esdl-0.93.0314-r1.ebuild
new file mode 100644
index 000000000000..df4132efe5ee
--- /dev/null
+++ b/media-libs/esdl/esdl-0.93.0314-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/esdl/esdl-0.93.0314-r1.ebuild,v 1.1 2003/06/18 00:37:18 george Exp $
+
+IUSE=""
+
+DESCRIPTION="Erlang bindings for the SDL library"
+SRC_URI="mirror://sourceforge/esdl/${P}.src.tar.gz"
+HOMEPAGE="http://esdl.sourceforge.net/"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=dev-lang/erlang-9b
+ >=media-libs/libsdl-1.2.4
+ x11-base/opengl-update"
+
+#openGL state tracking
+MY_OpenGL="xfree"
+
+pkg_setup() {
+ #check whether we have nvidia opengl active
+ if [ -n "`ls -l /usr/lib/libGL.so|grep nvidia`" ]; then
+ MY_OpenGL="nvidia"
+ einfo "detected nvidia drivers"
+ einfo "activating Mesa implementation temporarily"
+ opengl-update xfree
+ else
+ einfo "nvidia openGL is not active"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ #Makefile wants to install some docs that arent' actually there
+ epatch ${FILESDIR}/${P}.patch.bz2
+}
+
+src_compile() {
+ make CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ ERLANG_DIR="/usr/lib/erlang/lib/"
+ ESDL_DIR="${ERLANG_DIR}/${P}"
+ dodir ${ESDL_DIR}
+
+ make install INSTALLDIR=${D}/${ESDL_DIR} || die
+ cp include/* ${D}/${ESDL_DIR}/include/ || die
+ dosym ${ESDL_DIR} ${ERLANG_DIR}/${PN}
+ dodoc Readme license.terms
+ mv ${D}/${ESDL_DIR}/doc/ ${D}/usr/share/doc/${PF}/html/
+}
+
+pkg_postinst() {
+ #now we need to activate proper openGL again
+ if [ $MY_OpenGL == "nvidia" ]; then
+ opengl-update nvidia
+ einfo "activating nvidia drivers"
+ fi
+}
diff --git a/media-libs/esdl/files/digest-esdl-0.93.0314-r1 b/media-libs/esdl/files/digest-esdl-0.93.0314-r1
new file mode 100644
index 000000000000..9556974eb3c6
--- /dev/null
+++ b/media-libs/esdl/files/digest-esdl-0.93.0314-r1
@@ -0,0 +1 @@
+MD5 9a89add6d7cceae8aaf5149f86fc73b6 esdl-0.93.0314.src.tar.gz 397043