summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2003-06-29 08:02:43 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2003-06-29 08:02:43 +0000
commit621ae69223ffa3326ad656e132157981368e9a82 (patch)
treeaecd276e70eb948803b2e05d130e8f1f1eefb29c /x11-base
parentInitial commit of eclass, to be used in video-card-dependent ebuilds. (diff)
downloadgentoo-2-621ae69223ffa3326ad656e132157981368e9a82.tar.gz
gentoo-2-621ae69223ffa3326ad656e132157981368e9a82.tar.bz2
gentoo-2-621ae69223ffa3326ad656e132157981368e9a82.zip
Add xfree.eclass for better XFREE_CARDS functionality.
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/xfree-drm/ChangeLog6
-rw-r--r--x11-base/xfree-drm/Manifest4
-rw-r--r--x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild51
3 files changed, 24 insertions, 37 deletions
diff --git a/x11-base/xfree-drm/ChangeLog b/x11-base/xfree-drm/ChangeLog
index ededf00fc3e9..e05c9b2b0109 100644
--- a/x11-base/xfree-drm/ChangeLog
+++ b/x11-base/xfree-drm/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-base/xfree-drm
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/ChangeLog,v 1.24 2003/06/29 06:37:45 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/ChangeLog,v 1.25 2003/06/29 08:02:39 spyderous Exp $
+
+ 29 Jun 2003; Donnie Berkholz <spyderous@gentoo.org>;
+ xfree-drm-4.3.0-r4.ebuild:
+ Add xfree.eclass for better XFREE_CARDS functionality.
29 Jun 2003; root <root@gentoo.org> xfree-drm-4.3.0-r4.ebuild:
Updated patch to fix sis not working.
diff --git a/x11-base/xfree-drm/Manifest b/x11-base/xfree-drm/Manifest
index 364b45e9f441..882ceb18da52 100644
--- a/x11-base/xfree-drm/Manifest
+++ b/x11-base/xfree-drm/Manifest
@@ -1,7 +1,7 @@
-MD5 3f948e0ea1c4c7fa87966cb7e7040d6a ChangeLog 5438
+MD5 d2e01a3e44f7f5651108be5212b67c23 ChangeLog 5580
MD5 6b1f0d725e8037cbf3c62d9ebee51ec8 xfree-drm-4.3.0-r2.ebuild 2655
MD5 0ed345e1687362bd46dbb26d1b3958e8 xfree-drm-4.3.0-r3.ebuild 2917
-MD5 a356d3812ef62e12632be169ec3c7e9f xfree-drm-4.3.0-r4.ebuild 4291
+MD5 749514b6c790809d4bc40c588e17a118 xfree-drm-4.3.0-r4.ebuild 4000
MD5 b340ab262c964f235620a98d7626d6b9 files/digest-xfree-drm-4.3.0-r2 166
MD5 08d125fc239e02143fe64d48dcadb64c files/digest-xfree-drm-4.3.0-r3 169
MD5 ac5dd043f538e9fed0825d46d6e999e4 files/digest-xfree-drm-4.3.0-r4 168
diff --git a/x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild b/x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild
index 229252639d36..1b5e751b457e 100644
--- a/x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild
+++ b/x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild,v 1.2 2003/06/29 06:37:45 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree-drm/xfree-drm-4.3.0-r4.ebuild,v 1.3 2003/06/29 08:02:39 spyderous Exp $
# Small note: we should prob consider using a DRM only tarball, as it will ease
# some of the overhead on older systems, and will enable us to
@@ -10,7 +10,7 @@ IUSE="3dfx gamma i8x0 matrox rage128 radeon sis"
# XFREE_CARDS="3dfx gamma i810 i830 matrox rage128 radeon sis"
-inherit eutils
+inherit eutils xfree
# Make sure Portage does _NOT_ strip symbols. We will do it later and make sure
# that only we only strip stuff that are safe to strip ...
@@ -83,38 +83,21 @@ fi
# Having a module twice (once from USE, once from XFREE_CARDS)
# doesn't matter at all.
-case "${XFREE_CARDS}" in
- *matrox*)
- VIDCARDS="${VIDCARDS} mga.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *3dfx*)
- VIDCARDS="${VIDCARDS} tdfx.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *rage128*)
- VIDCARDS="${VIDCARDS} r128.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *radeon*)
- VIDCARDS="${VIDCARDS} radeon.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *sis*)
- VIDCARDS="${VIDCARDS} sis.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *i810*)
- VIDCARDS="${VIDCARDS} i810.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *i830*)
- VIDCARDS="${VIDCARDS} i830.o" ;;
-esac
-case "${XFREE_CARDS}" in
- *gamma*)
- VIDCARDS="${VIDCARDS} gamma.o" ;;
-esac
+xcards matrox &>/dev/null && VIDCARDS="${VIDCARDS} mga.o"
+
+xcards 3dfx &>/dev/null && VIDCARDS="${VIDCARDS} tdfx.o"
+
+xcards rage128 &>/dev/null && VIDCARDS="${VIDCARDS} r128.o"
+
+xcards radeon &>/dev/null && VIDCARDS="${VIDCARDS} radeon.o"
+
+xcards sis &>/dev/null && VIDCARDS="${VIDCARDS} sis.o"
+
+xcards i810 &>/dev/null && VIDCARDS="${VIDCARDS} i810.o"
+
+xcards i830 &>/dev/null && VIDCARDS="${VIDCARDS} i830.o"
+
+xcards gamma &>/dev/null && VIDCARDS="${VIDCARDS} gamma.o"
# This builds everything if none of the cards are in USE.
#if [ -z "${VIDCARDS}" ]