summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2003-12-26 15:15:33 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2003-12-26 15:15:33 +0000
commitec52ad956a5eb5b40729824f23baac90aa40e1ee (patch)
tree866f501ae4a17054263cbba9f3382be3a1932d5c /media-video
parentx86 stable (diff)
downloadhistorical-ec52ad956a5eb5b40729824f23baac90aa40e1ee.tar.gz
historical-ec52ad956a5eb5b40729824f23baac90aa40e1ee.tar.bz2
historical-ec52ad956a5eb5b40729824f23baac90aa40e1ee.zip
Rewrite of ebuild to remove numerous policy violations. Bumped to close bug #36351.
Diffstat (limited to 'media-video')
-rw-r--r--media-video/mtxdrivers/ChangeLog9
-rw-r--r--media-video/mtxdrivers/Manifest8
-rw-r--r--media-video/mtxdrivers/files/digest-mtxdrivers-1.1.0_beta1
-rw-r--r--media-video/mtxdrivers/mtxdrivers-1.1.0_beta.ebuild100
4 files changed, 114 insertions, 4 deletions
diff --git a/media-video/mtxdrivers/ChangeLog b/media-video/mtxdrivers/ChangeLog
index d87869437e58..643d8889d23e 100644
--- a/media-video/mtxdrivers/ChangeLog
+++ b/media-video/mtxdrivers/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/mtxdrivers
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/ChangeLog,v 1.5 2003/07/12 21:12:50 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/ChangeLog,v 1.6 2003/12/26 15:15:25 spyderous Exp $
+
+*mtxdrivers-1.1.0_beta (26 Dec 2003)
+
+ 26 Dec 2003; Donnie Berkholz <spyderous@gentoo.org>;
+ mtxdrivers-1.1.0_beta.ebuild:
+ Rewrite of ebuild to remove numerous policy violations. Bumped to close bug
+ #36351.
*mtxdrivers-0.3.0 (6 Jun 2003)
diff --git a/media-video/mtxdrivers/Manifest b/media-video/mtxdrivers/Manifest
index b59724eb22c4..e7ee729c91f1 100644
--- a/media-video/mtxdrivers/Manifest
+++ b/media-video/mtxdrivers/Manifest
@@ -1,5 +1,7 @@
+MD5 042d3f2b92c56280398caf0d0f821ba3 ChangeLog 1051
+MD5 e27f1d4cfe8ae042beed3d67d37f3fa0 mtxdrivers-0.2.1.ebuild 2287
+MD5 b4f6b7ff07a723d983a895b9b32af7f8 mtxdrivers-0.3.0.ebuild 2341
+MD5 24d97268808972077d7d654f4aaa57b5 mtxdrivers-1.1.0_beta.ebuild 2754
MD5 7f8ba51a371592433503032c8875c3b2 files/digest-mtxdrivers-0.2.1 65
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-mtxdrivers-0.3.0 0
-MD5 b4f6b7ff07a723d983a895b9b32af7f8 mtxdrivers-0.3.0.ebuild 2341
-MD5 e27f1d4cfe8ae042beed3d67d37f3fa0 mtxdrivers-0.2.1.ebuild 2287
-MD5 383b4bcf50b3875d8549dad709e1c389 ChangeLog 832
+MD5 968935680d33455c821fee032880ece2 files/digest-mtxdrivers-1.1.0_beta 78
diff --git a/media-video/mtxdrivers/files/digest-mtxdrivers-1.1.0_beta b/media-video/mtxdrivers/files/digest-mtxdrivers-1.1.0_beta
new file mode 100644
index 000000000000..f8d6bffe430d
--- /dev/null
+++ b/media-video/mtxdrivers/files/digest-mtxdrivers-1.1.0_beta
@@ -0,0 +1 @@
+MD5 0567f78a30567e4c39357a932cb2aa48 mtxdrivers-rh9.0-v1.1.0-beta.run 1449561
diff --git a/media-video/mtxdrivers/mtxdrivers-1.1.0_beta.ebuild b/media-video/mtxdrivers/mtxdrivers-1.1.0_beta.ebuild
new file mode 100644
index 000000000000..c4d7f6d039d3
--- /dev/null
+++ b/media-video/mtxdrivers/mtxdrivers-1.1.0_beta.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/mtxdrivers/mtxdrivers-1.1.0_beta.ebuild,v 1.1 2003/12/26 15:15:25 spyderous Exp $
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-rh9.0-v${MY_PV}"
+DESCRIPTION="Drivers for the Matrox Parhelia and Millenium P650/P750 cards."
+HOMEPAGE="http://www.matrox.com/mga/products/parhelia/home.cfm"
+SRC_URI="${MY_P}.run"
+
+LICENSE="Matrox"
+SLOT="0"
+KEYWORDS="~x86"
+RESTRICT="fetch"
+
+DEPEND=">=x11-base/xfree-4.2.0
+ virtual/kernel
+ !mtxdrivers-pro"
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "You must go to: http://www.matrox.com/mga/registration/home.cfm?refid=7667"
+ einfo "(for the RH9.0 drivers) and log in (or create an account) to download the"
+ einfo "Matrox Parhelia drivers. Remember to right-click and use Save Link As when"
+ einfo "downloading the driver."
+}
+
+pkg_setup() {
+ # Force XFree86 4.3.0, 4.2.1 or 4.2.0 to be installed unless FORCE_VERSION
+ # is set. Need FORCE_VERSION for 4.3.99/4.4.0 compatibility until Matrox
+ # comes up with drivers (spyderous)
+ local INSTALLED_X="`best_version x11-base/xfree`"
+ GENTOO_X_VERSION_REVISION="${INSTALLED_X/x11-base\/xfree-}"
+ GENTOO_X_VERSION="${GENTOO_X_VERSION_REVISION%-*}"
+ if [ "${GENTOO_X_VERSION}" != "4.3.0" ]
+ then
+ if [ "${GENTOO_X_VERSION}" != "4.2.1" ]
+ then
+ if [ "${GENTOO_X_VERSION}" != "4.2.0" ]
+ then
+ if [ -n "${FORCE_VERSION}" ]
+ then
+ GENTOO_X_VERSION="${FORCE_VERSION}"
+ else
+ die "These drivers require XFree86 4.3.0, 4.2.1 or 4.2.0. Do FORCE_VERSION=version-you-want emerge ${PN} (4.3.0, 4.2.1 or 4.2.0) to force installation."
+ fi
+ fi
+ fi
+ fi
+}
+
+src_unpack() {
+ tail -n 4907 ${DISTDIR}/${A} | tar xvzf -
+}
+
+src_compile() {
+ export PARHELIUX="${PWD}/src"
+ cd ${S}/src/kernel/parhelia
+ ln -sf ../../../kernel/mtx_parhelia.o .
+ cd ..
+ # Can't use emake here
+ make clean
+ make
+}
+
+src_install() {
+ dodoc README* samples/*
+
+ # Kernel Module
+ dodir /lib/modules/${KV}/kernel/drivers/video
+ insinto /lib/modules/${KV}/kernel/drivers/video
+ doins src/kernel/mtx.o
+
+ # X Driver (2D)
+ dodir /usr/X11R6/lib/modules/drivers
+ insinto /usr/X11R6/lib/modules/drivers
+ doins xfree86/${GENTOO_X_VERSION}/mtx_drv.o
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ]
+ then
+ /sbin/modules-update
+ fi
+
+ einfo "Please look at /usr/share/doc/${P}/XF86Config.* for"
+ einfo "X configurations for your Parhelia or Millenium P650/P750 card."
+
+ if [ ! -d /dev/video ]
+ then
+ if [ -f /dev/video ]
+ then
+ einfo "NOTE: To be able to use busmastering, you MUST have /dev/video as"
+ einfo "a directory, which means you must remove anything there first"
+ einfo "(rm -f /dev/video), and mkdir /dev/video"
+ else
+ mkdir /dev/video
+ fi
+ fi
+}