kernel-mod -> linux-mod
authorBryan Stine <battousai@gentoo.org>
Tue, 7 Dec 2004 05:12:12 +0000 (05:12 +0000)
committerBryan Stine <battousai@gentoo.org>
Tue, 7 Dec 2004 05:12:12 +0000 (05:12 +0000)
x11-base/x11-drm/ChangeLog
x11-base/x11-drm/Manifest
x11-base/x11-drm/x11-drm-20040827.ebuild

index 02c6098519defb2605c84d017275a6c63734a58f..f6f4762feedd4655b4c605e2bedcc58988e53502 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for x11-base/x11-drm
 # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/x11-drm/ChangeLog,v 1.8 2004/11/23 17:31:36 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/x11-drm/ChangeLog,v 1.9 2004/12/07 05:12:12 battousai Exp $
+
+  07 Dec 2004; Bryan Stine <battousai@gentoo.org>; x11-drm-20040827.ebuild:
+  Now with linux-mod eclass goodness, no more kernel-mod.
 
   23 Nov 2004; Donnie Berkholz <spyderous@gentoo.org>;
   -x11-drm-4.3.0-r6.ebuild:
index 72e9d6babdeadf20f694eb6119581507b89da0a7..db3165a8bbb2e5482aac8d69a037ec31415e4a36 100644 (file)
@@ -1,7 +1,7 @@
+MD5 7259bd273a14f44915e586895e38e50e ChangeLog 15173
 MD5 b67cc82ec3e8786dbc0f8f5e7e37bcfc metadata.xml 360
-MD5 de296fd72719b4173677623770a3872f x11-drm-20040827.ebuild 6090
+MD5 dbddd6be2c1192713f2acf6319c1a3ef x11-drm-20040827.ebuild 5836
 MD5 bb032bf32a1ea94e65c245ac3f7f9219 x11-drm-4.3.0-r7.ebuild 7037
-MD5 1d18d01d7249bf8a0e90fe2f0cb69c59 ChangeLog 15038
 MD5 7774a8ffb259c750552463655c1eee45 files/digest-x11-drm-20040827 252
 MD5 db87006ec48bc9579dcdc989c5ed86d6 files/digest-x11-drm-4.3.0-r7 363
 MD5 88b8c90e440b3db246a7d06cf53640ae files/modules.d-x11-drm 40
index ef192c75744039a43198f34983afa50a20bcc005..c19ce9370ae2377c2febde7ae40bc9470e0b4886 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-base/x11-drm/x11-drm-20040827.ebuild,v 1.5 2004/11/04 21:29:43 battousai Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-base/x11-drm/x11-drm-20040827.ebuild,v 1.6 2004/12/07 05:12:12 battousai Exp $
 
-inherit eutils x11 kernel-mod
+inherit eutils x11 linux-mod
 
 IUSE="gatos"
 IUSE_VIDEO_CARDS="3dfx ffb i810 i830 i915 mach64 matrox rage128 radeon savage sis via"
@@ -24,7 +24,7 @@ SRC_URI="mirror://gentoo/${PF}-gentoo-${PATCHVER}.tar.bz2
 
 SLOT="${KV}"
 LICENSE="X11"
-KEYWORDS="~x86 ~alpha ~ia64 ~ppc"
+KEYWORDS="~x86 ~alpha ~ia64 ~ppc ~amd64"
 
 DEPEND="virtual/x11
        virtual/linux-sources
@@ -33,8 +33,6 @@ DEPEND="virtual/x11
 PROVIDE="virtual/drm"
 
 pkg_setup() {
-       get_kernel_info
-
        # Require at least one video card
        if [ -z "${VIDEO_CARDS}" ]
        then
@@ -53,7 +51,7 @@ pkg_setup() {
                then
                        die "Remove gatos from your USE flags. It does not work with cards other than radeon and rage128."
                fi
-               kernel-mod_is_2_6_kernel && die "GATOS does not work with 2.6 kernels. Only 2.4 is supported at this time."
+               kernel_is 2 6 && die "GATOS does not work with 2.6 kernels. Only 2.4 is supported at this time."
        fi
 
        ewarn "Using koutput kernels is now deprecated. If you use a koutput kernel, please"
@@ -148,22 +146,14 @@ pkg_postinst() {
        fi
 
        einfo "Checking kernel module dependencies"
-       test -r "${ROOT}/usr/src/linux/System.map" && \
-               depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
+       update_modules
+       update_depmod
 }
 
 # Functions used above are defined below:
 
 set_vidcards() {
-       if kernel-mod_is_2_6_kernel
-       then
-               KV_OBJ="ko"
-       else
-               KV_OBJ="o"
-       fi
-
-       # To get the kernel module extension
-#      get_kernel_info
+       set_kvobj
 
        VIDCARDS=""
 
@@ -200,8 +190,8 @@ patch_prepare() {
        #     GATOS (2xx*) vs. Standard trees (1xx*)
        #     2.4 vs. 2.6 kernels
 
-       kernel-mod_is_2_4_kernel && mv -f ${PATCHDIR}/*kernel-2.6* ${EXCLUDED}
-       kernel-mod_is_2_6_kernel && mv -f ${PATCHDIR}/*kernel-2.4* ${EXCLUDED}
+       kernel_is 2 4 && mv -f ${PATCHDIR}/*kernel-2.6* ${EXCLUDED}
+       kernel_is 2 6 && mv -f ${PATCHDIR}/*kernel-2.4* ${EXCLUDED}
 
        if use gatos
        then