summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDonnie Berkholz <spyderous@gentoo.org>2003-06-29 07:59:35 +0000
committerDonnie Berkholz <spyderous@gentoo.org>2003-06-29 07:59:35 +0000
commit906a3bc47b7b24f49c4ad15ba96d180c06239c3f (patch)
tree1321e57779b98f6d89885b540295ed70540188ac /eclass
parentInitial import. Closes bug 18621 (diff)
downloadgentoo-2-906a3bc47b7b24f49c4ad15ba96d180c06239c3f.tar.gz
gentoo-2-906a3bc47b7b24f49c4ad15ba96d180c06239c3f.tar.bz2
gentoo-2-906a3bc47b7b24f49c4ad15ba96d180c06239c3f.zip
Initial commit of eclass, to be used in video-card-dependent ebuilds.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/xfree.eclass23
1 files changed, 23 insertions, 0 deletions
diff --git a/eclass/xfree.eclass b/eclass/xfree.eclass
new file mode 100644
index 000000000000..64e9fa7b702f
--- /dev/null
+++ b/eclass/xfree.eclass
@@ -0,0 +1,23 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/xfree.eclass,v 1.1 2003/06/29 07:59:35 spyderous Exp $
+#
+# Author: Seemant Kulleen <seemant@gentoo.org>
+#
+# The xfree.eclass is designed to ease the checking functions that are
+# performed in xfree and xfree-drm ebuilds. In the new scheme, a variable
+# called XFREE_CARDS will be used to indicate which cards a user wishes to
+# build support for. Note, that this variable is only unlocked if the USE
+# variable "expertxfree" is switched on
+
+ECLASS=xfree
+INHERITED="${INHERITED} ${ECLASS}"
+
+EXPORT_FUNCTIONS xcards
+
+
+xcards() {
+
+ has "$1" "${XFREE_CARDS}" && return 0
+ return 1
+}