New version
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 1 Nov 2006 16:21:53 +0000 (16:21 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 1 Nov 2006 16:21:53 +0000 (16:21 +0000)
Package-Manager: portage-2.1.2_rc1-r1

x11-drivers/ati-drivers/ChangeLog
x11-drivers/ati-drivers/Manifest
x11-drivers/ati-drivers/ati-drivers-8.30.3.ebuild [new file with mode: 0644]
x11-drivers/ati-drivers/files/digest-ati-drivers-8.30.3 [new file with mode: 0644]

index f5f571d05dff583b09e640f96393e4832a2d0629..0ebd34bfde4afeecb74370d5872cdd882a329a3b 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for x11-drivers/ati-drivers
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/ChangeLog,v 1.51 2006/10/13 15:38:52 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/ChangeLog,v 1.52 2006/11/01 16:21:53 lu_zero Exp $
+
+*ati-drivers-8.30.3 (01 Nov 2006)
+
+  01 Nov 2006; Luca Barbato <lu_zero@gentoo.org> +ati-drivers-8.30.3.ebuild:
+  New version, thanks to Jory for the test and the help.
 
   13 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org>
   ati-drivers-8.27.10-r1.ebuild, ati-drivers-8.28.8.ebuild,
index 1a5d7571e91d5c2227a8faebdad681a0144e86d3..6d8c976d76a99e17f011edf685f6e8bf4163b99e 100644 (file)
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
 AUX 09ati 75 RMD160 f4b42cfdc7deaa6fe7618e3506860a06a75de435 SHA1 01cac55ba02710dbd7d71737dd64dbec2cc081fd SHA256 5daa70f3e4c19f2b006bc7b2b22abde5404c3b498485b9ffac428eb458c32134
 MD5 5ac06946904a0282c5da617bda2a8f6b files/09ati 75
 RMD160 f4b42cfdc7deaa6fe7618e3506860a06a75de435 files/09ati 75
@@ -17,6 +14,7 @@ DIST ati-driver-installer-8.27.10-x86.run 25136032 RMD160 5080d72e97101b97da6610
 DIST ati-driver-installer-8.27.10-x86_64.run 32487472 RMD160 04dc8598253791b52215ba3be847a9dc6eb54079 SHA1 9844ad5dc79a8d914d8707d2d17cf6be0de9e7d5 SHA256 1039d0b2218bab7076ef55626e510a779027ab658e62730c74dc2de439f4ab33
 DIST ati-driver-installer-8.28.8.run 53989404 RMD160 0ea23d37c0e203fc8acc5bd7e100bdf78c05745f SHA1 811b73481f82d178b26417fd3d4b227864bd4527 SHA256 5eaeab1b906a0b8a30f88ab733390ecbc3ebeaa0c04c0368b757b99c31919e77
 DIST ati-driver-installer-8.29.6.run 57776757 RMD160 b2440a153e4c95c8926d7333efbd864b2c1450bc SHA1 db53f411fa076bc927023f2636171b474aa360f0 SHA256 d1d341db0a4a6d723ce99b553dbc332f9e234e92ba22cb5cc4dbec40ece5ce6b
+DIST ati-driver-installer-8.30.3.run 58041208 RMD160 d4481bba9313cf9bcb71b7603034595677eb53f9 SHA1 37e73967e6921b0a362cb344929282be99e163ce SHA256 3d03b64ba8fd6fef3c50a2037a4e8d97955086fee3da274c2993d55aae058dcc
 EBUILD ati-drivers-8.27.10-r1.ebuild 11283 RMD160 6453079c69f3019a5cf01af885abeb77a59f87a4 SHA1 c7f7cb42ef294f16b043654877bfcbc4a725a1fd SHA256 53c4bfbc5a72637ad6fe6c4caeca5dcac1c7b08676ff286e7e1d9c411c5cfe60
 MD5 ed22a46365152134f6befb644d164871 ati-drivers-8.27.10-r1.ebuild 11283
 RMD160 6453079c69f3019a5cf01af885abeb77a59f87a4 ati-drivers-8.27.10-r1.ebuild 11283
@@ -29,10 +27,14 @@ EBUILD ati-drivers-8.29.6.ebuild 11199 RMD160 3a8c6ef276bc246298488cbb379f057dcd
 MD5 4551a8aaaaa9afd8addb70753ca45625 ati-drivers-8.29.6.ebuild 11199
 RMD160 3a8c6ef276bc246298488cbb379f057dcd7fbab2 ati-drivers-8.29.6.ebuild 11199
 SHA256 d7e759385c6f6e258bc020882172cb9d263d0e6e356b9682ab8c5c9c7ffec473 ati-drivers-8.29.6.ebuild 11199
-MISC ChangeLog 32665 RMD160 131d3c764ba0f1dd1f9821e3c0c2ddbb90fdd874 SHA1 4847043cd732e50c81e8e716a5ac6c8f97551d40 SHA256 51bdb0a0d29f7c538dc44633d9b8921a73ed2d43567ff1e064fd55020247f5d6
-MD5 79cd635cc65d9fd4946acb49241c3ea1 ChangeLog 32665
-RMD160 131d3c764ba0f1dd1f9821e3c0c2ddbb90fdd874 ChangeLog 32665
-SHA256 51bdb0a0d29f7c538dc44633d9b8921a73ed2d43567ff1e064fd55020247f5d6 ChangeLog 32665
+EBUILD ati-drivers-8.30.3.ebuild 11194 RMD160 6cef5a7467098dc471000bf7baf24776db056a0f SHA1 8b33c55477abc25a53ec821d07df5fedf679bf27 SHA256 3422ebee63d8418afe1855cba0e0625d9aca39b9aa37054b18fd1323d96cc684
+MD5 dd66ec8951ad6e44f8959dabc43702f0 ati-drivers-8.30.3.ebuild 11194
+RMD160 6cef5a7467098dc471000bf7baf24776db056a0f ati-drivers-8.30.3.ebuild 11194
+SHA256 3422ebee63d8418afe1855cba0e0625d9aca39b9aa37054b18fd1323d96cc684 ati-drivers-8.30.3.ebuild 11194
+MISC ChangeLog 32834 RMD160 4ba39d034b51c9c4c4330185502bab44318b0132 SHA1 c1c8b81cc6b0d4a6899e47eef185f867b5781274 SHA256 ceb6022acaa69eda5f9bebb7d9ebefee3ce478445e68b3bd9adbabd72940aa01
+MD5 236cff132d362ea2309218367a85b6a2 ChangeLog 32834
+RMD160 4ba39d034b51c9c4c4330185502bab44318b0132 ChangeLog 32834
+SHA256 ceb6022acaa69eda5f9bebb7d9ebefee3ce478445e68b3bd9adbabd72940aa01 ChangeLog 32834
 MISC metadata.xml 227 RMD160 e2ed1445a0405b39e40741d3d1f67746daab8fff SHA1 47e1824ff5e7e3789fcbb4ca5de9c3ccd9162b76 SHA256 4fbed7030b32bcdc95b70000adbbcb6f1d73092c4a2f20e6cfb737a1b44d6e07
 MD5 c306bb93866a4dd8913899229dd20726 metadata.xml 227
 RMD160 e2ed1445a0405b39e40741d3d1f67746daab8fff metadata.xml 227
@@ -46,10 +48,6 @@ SHA256 a172c7af9725583e45454906174254b91c5ee6fdea38d8a56f22f3c28abcb82b files/di
 MD5 def642418453b0cfdd7964633b0ffc8f files/digest-ati-drivers-8.29.6 280
 RMD160 24625bb4e4e00d67975e90f65f8c84ecf7a58177 files/digest-ati-drivers-8.29.6 280
 SHA256 1be5719dcefe0f04a6bae5aa005174cf1dbead722948f6328c6470bcf9a10c36 files/digest-ati-drivers-8.29.6 280
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFL7MZkT4lNIS36YERAgRAAJ4/95z87q3rEiVxk4IiFSublGJFOgCgn7Og
-C5BHHARTvu4FV7lTney2grE=
-=cKNE
------END PGP SIGNATURE-----
+MD5 74b92713cd7b0e4a8cb31b0cf50834ec files/digest-ati-drivers-8.30.3 280
+RMD160 91645bb5fe9039e684e70b913283b3c841f70b19 files/digest-ati-drivers-8.30.3 280
+SHA256 18779cfdde4edd8c60953531296ac2200483b8fbab9dc6001922bf0f5d4a9691 files/digest-ati-drivers-8.30.3 280
diff --git a/x11-drivers/ati-drivers/ati-drivers-8.30.3.ebuild b/x11-drivers/ati-drivers/ati-drivers-8.30.3.ebuild
new file mode 100644 (file)
index 0000000..0bfc3c5
--- /dev/null
@@ -0,0 +1,390 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-8.30.3.ebuild,v 1.1 2006/11/01 16:21:53 lu_zero Exp $
+
+IUSE="acpi doc opengl"
+
+inherit eutils rpm multilib linux-mod linux-info toolchain-funcs
+
+DESCRIPTION="Ati precompiled drivers for r350, r300, r250 and r200 chipsets"
+HOMEPAGE="http://www.ati.com"
+ATI_URL="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/"
+SRC_URI="${ATI_URL}/ati-driver-installer-${PV}.run"
+
+LICENSE="ATI"
+KEYWORDS="-* ~amd64 ~x86"
+
+RDEPEND="|| ( x11-base/xorg-server virtual/x11 )
+        app-admin/eselect-opengl
+        || ( sys-libs/libstdc++-v3 =sys-devel/gcc-3.3* )
+        acpi? (
+               || ( x11-apps/xauth virtual/x11 )
+               sys-power/acpid
+        )"
+
+DEPEND=">=virtual/linux-sources-2.4
+       ${RDEPEND}"
+
+PROVIDE="virtual/opengl"
+
+ATIBIN="${D}/opt/ati/bin"
+RESTRICT="nostrip multilib-pkg-force stricter"
+
+MODULE_NAMES="fglrx(video:${WORKDIR}/common/lib/modules/fglrx/build_mod)"
+
+QA_EXECSTACK_x86="usr/lib/xorg/modules/dri/fglrx_dri.so"
+QA_EXECSTACK_amd64="usr/lib64/xorg/modules/dri/fglrx_dri.so usr/lib32/xorg/modules/dri/fglrx_dri.so"
+QA_TEXTRELS_x86="usr/lib/xorg/modules/dri/fglrx_dri.so usr/lib/opengl/ati/lib/libGL.so.1.2"
+QA_TEXTRELS_amd64="usr/lib64/xorg/modules/dri/fglrx_dri.so usr/lib32/opengl/ati/lib/libGL.so.1.2 usr/lib32/xorg/modules/dri/fglrx_dri.so usr/lib32/xorg/modules/dri/atiogl_a_dri.so"
+
+choose_driver_paths() {
+       ARCH_DIR="${WORKDIR}/arch"
+       COMMON_DIR="${WORKDIR}/common"
+
+       #new modular X paths, 0 is a workaround.
+       if has_version "x11-base/xorg-server"; then
+               if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 1 ] &&
+                  [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 0 ] &&
+                  [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ] ||
+                  [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" != 0 ]
+               then
+                       BASE_DIR="${WORKDIR}/x710"
+               else
+                       BASE_DIR="${WORKDIR}/x690"
+               fi
+                       xlibdir="xorg"
+       else
+               BASE_DIR="${WORKDIR}/x$(get_version_component_range 1 ${X11_IMPLEM_V})"
+               xlibdir=""
+
+               # Determine if we are facing X.org 6.8.99 aka 6.9
+               if [ "$(get_version_component_range 1 ${X11_IMPLEM_V})" = 6 ] &&
+                  [ "$(get_version_component_range 2 ${X11_IMPLEM_V})" = 8 ] &&
+                  [ "$(get_version_component_range 3 ${X11_IMPLEM_V})" = 99 ]
+               then
+                       BASE_DIR="${BASE_DIR}90"
+               else
+                       BASE_DIR="${BASE_DIR}$(get_version_component_range 2 ${X11_IMPLEM_V})0"
+               fi
+       fi
+
+       if use amd64 ; then
+               BASE_DIR="${BASE_DIR}_64a"
+               ARCH_DIR="${ARCH_DIR}/x86_64"
+       else
+               ARCH_DIR="${ARCH_DIR}/x86"
+       fi
+}
+
+pkg_setup(){
+       #check kernel and sets up KV_OBJ
+       linux-mod_pkg_setup
+       local agp
+       ebegin "Checking for MTRR support enabled"
+       linux_chkconfig_present MTRR
+       eend $?
+       if [[ $? -ne 0 ]] ; then
+       ewarn "You don't have MTRR support enabled, the direct rendering"
+       ewarn "will not work."
+       fi
+
+       ebegin "Checking for AGP support enabled"
+       linux_chkconfig_present AGP
+       eend $?
+
+       if [[ $? -ne 0 ]] ; then
+
+               ebegin "Checking for PCI Express support enabled"
+               linux_chkconfig_present PCIEPORTBUS
+               eend $?
+
+               if [[ $? -ne 0 ]] ; then
+                       ewarn "If you don't have either AGP or PCI Express support enabled, direct rendering"
+                       ewarn "could work only using the internal support."
+               fi
+
+       fi
+       ebegin "Checking for DRM support disabled"
+       ! linux_chkconfig_builtin DRM
+       eend $?
+       if [[ $? -ne 0 ]] ; then
+       ewarn "You have DRM support enabled builtin, the direct rendering"
+       ewarn "will not work."
+       fi
+
+       # Set up X11 implementation
+       if has_version "x11-base/xorg-server"; then
+               X11_IMPLEM=xorg-x11
+               X11_IMPLEM_V="$(best_version x11-base/xorg-server)"
+               X11_IMPLEM_V="${X11_IMPLEM_V/x11-base\/xorg-server-/}"
+       elif has_version "<x11-base/xorg-x11-6.8.99"; then
+               X11_IMPLEM=xorg-x11
+               X11_IMPLEM_V="$(best_version x11-base/xorg-x11)"
+               X11_IMPLEM_V="${X11_IMPLEM_V/${X11_IMPLEM}-/}"
+               X11_IMPLEM_V="${X11_IMPLEM_V##*\/}"
+       else
+               X11_IMPLEM_P="$(best_version virtual/x11)"
+               X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
+               X11_IMPLEM="${X11_IMPLEM##*\/}"
+               X11_IMPLEM_V="${X11_IMPLEM_P/${X11_IMPLEM}-/}"
+               X11_IMPLEM_V="${X11_IMPLEM_V##*\/}"
+       fi
+       einfo "X11 implementation is ${X11_IMPLEM}."
+       choose_driver_paths
+}
+
+src_unpack() {
+       local OLDBIN="/usr/X11R6/bin"
+
+       ebegin "Unpacking Ati drivers"
+       sh ${DISTDIR}/${A} --extract ${WORKDIR} &> /dev/null
+       eend $? || die "unpack failed"
+
+       rm -rf ${ARCH_DIR}/usr/X11R6/bin/{fgl_glxgears,fireglcontrolpanel}
+
+       if use acpi
+       then
+               sed -i \
+               -e "s/\/var\/lib\/xdm\/authdir/\/etc\/X11\/xdm\/authdir/" \
+               -e "s/\/var\/lib\/gdm/\/var\/gdm/" \
+               -e "s/#ffff#/#ffff##:.*MIT-MAGIC-COOKIE/" \
+               "${WORKDIR}/common/etc/ati/authatieventsd.sh" \
+                       || die "sed failed."
+
+               cd ${WORKDIR}
+               epatch ${FILESDIR}/ati-powermode.sh.patch
+       fi
+}
+
+src_compile() {
+       einfo "Building the DRM module..."
+       cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
+       ln -s \
+       ${ARCH_DIR}/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC$(gcc-major-version) \
+       || die "cannot find precompiled core"
+
+       if kernel_is 2 6
+       then
+               set_arch_to_kernel
+               addwrite "/usr/src/${FK}"
+               cp 2.6.x/Makefile .
+               export _POSIX2_VERSION="199209"
+               if use_m ;
+               then
+                       make -C ${KV_DIR} M="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \
+                               modules || ewarn "DRM module not built"
+               else
+                       make -C ${KV_DIR} SUBDIRS="`pwd`" GCC_VER_MAJ=$(gcc-major-version) \
+                               modules || ewarn "DRM module not built"
+               fi
+               set_arch_to_portage
+       else
+               export _POSIX2_VERSION="199209"
+               # That is the dirty way to avoid the id -u check
+               sed -e 's:`id -u`:0:' \
+                       -e "s:\`uname -r\`:${KV_FULL}:" \
+                       -i make.sh
+               chmod +x make.sh
+               ./make.sh || ewarn "DRM module not built"
+       fi
+}
+
+pkg_preinst() {
+       # Clean the dynamic libGL stuff's home to ensure
+       # we don't have stale libs floating around ...
+       if [ -d "${ROOT}/usr/lib/opengl/ati" ]
+       then
+               rm -rf ${ROOT}/usr/lib/opengl/ati/*
+       fi
+}
+
+src_install() {
+       local ATI_LIBGL_PATH=""
+       cd ${WORKDIR}/common/lib/modules/fglrx/build_mod
+       linux-mod_src_install
+
+       cd ${WORKDIR}
+
+       local native_dir
+       use x86 && native_dir="lib"
+       use amd64 && native_dir="lib64"
+
+       # Install the libs
+       # MULTILIB-CLEANUP: Fix this when FEATURES=multilib-pkg is in portage
+       local MLTEST=$(type dyn_unpack)
+       if [ "${MLTEST/set_abi/}" = "${MLTEST}" ] && has_multilib_profile; then
+               local OABI=${ABI}
+               for ABI in $(get_install_abis); do
+                       src_install-libs
+               done
+               ABI=${OABI}
+               unset OABI
+       elif has_multilib_profile; then
+               src_install-libs
+       elif use amd64; then
+               src_install-libs lib $(get_multilibdir)
+               src_install-libs lib64 $(get_libdir)
+       else
+               src_install-libs
+       fi &> /dev/null
+
+       #apps, man pages, and conf files
+       exeinto /opt/ati/bin
+       doexe ${ARCH_DIR}/usr/X11R6/bin/*
+       if use acpi
+       then
+               exeinto /opt/ati/sbin
+               doexe ${ARCH_DIR}/usr/sbin/*
+               insinto /opt/ati/man/man8
+               doins common/usr/share/man/man8/*
+               newinitd ${FILESDIR}/atieventsd.rc6 atieventsd
+               dodir /etc/conf.d
+               echo 'ATIEVENTSDOPTS=""' > ${D}/etc/conf.d/atieventsd
+       fi
+       #ati custom stuff
+       insinto /usr
+       doins -r ${WORKDIR}/common/usr/include
+
+       #documentation
+       if use doc; then
+               dodir /usr/share/doc/fglrx
+               cp -pPR common/usr/share/doc/fglrx/* \
+                       ${D}/usr/share/doc/fglrx
+       fi
+
+       #env.d entry
+       cp ${FILESDIR}/09ati ${T}/
+
+       if use acpi
+       then
+               local ATIETC="${WORKDIR}/common/usr/share/doc/fglrx/examples/etc/acpi"
+               exeinto /etc/acpi
+               doexe ${ATIETC}/ati-powermode.sh
+               insinto /etc/acpi/events
+               doins ${ATIETC}/events/a-ac-aticonfig
+               doins ${ATIETC}/events/a-lid-aticonfig
+       fi
+
+       #Work around hardcoded path in 32bit libGL.so on amd64, bug 101539
+       if has_multilib_profile && [ $(get_abi_LIBDIR x86) = "lib32" ] ; then
+               ATI_LIBGL_PATH="/usr/lib/dri:/usr/$(get_libdir)/dri:/usr/lib32/${xlibdir}/modules/dri/:/usr/$(get_libdir)/${xlibdir}/modules/dri"
+       fi
+               cat >>${T}/09ati <<EOF
+
+LIBGL_DRIVERS_PATH="\$LIBGL_DRIVERS_PATH:$ATI_LIBGL_PATH"
+EOF
+
+       doenvd ${T}/09ati
+}
+
+src_install-libs() {
+       local pkglibdir=lib
+       local inslibdir="$(get_libdir)/${xlibdir}"
+       ATI_LIBGL_PATH="${ATI_LIBGL_PATH}:/usr/$(get_libdir)/${xlibdir}/modules/dri"
+       if [ ${#} -eq 2 ]; then
+               pkglibdir=${1}
+               inslibdir=${2}
+       elif has_multilib_profile && [ "${ABI}" == "amd64" ]; then
+               pkglibdir=lib64
+       fi
+
+       einfo "${pkglibdir} -> ${inslibdir}"
+
+       local ATI_ROOT="/usr/$(get_libdir)/opengl/ati"
+
+       # The GLX libraries
+       exeinto ${ATI_ROOT}/lib
+       doexe ${ARCH_DIR}/usr/X11R6/${pkglibdir}/libGL.so.1.2
+       dosym libGL.so.1.2 ${ATI_ROOT}/lib/libGL.so.1
+       dosym libGL.so.1.2 ${ATI_ROOT}/lib/libGL.so
+
+       # Don't do this... see bug #47598
+       #dosym libGL.so.1.2 ${ATI_ROOT}/lib/libMesaGL.so
+
+       # same as the xorg implementation
+       dosym ../${X11_IMPLEM}/extensions ${ATI_ROOT}/extensions
+       #Workaround
+       if use opengl ; then
+       sed -e "s:libdir=.*:libdir=${ATI_ROOT}/lib:" \
+               /usr/$(get_libdir)/opengl/${X11_IMPLEM}/lib/libGL.la \
+               > $D/${ATI_ROOT}/lib/libGL.la
+       dosym ../${X11_IMPLEM}/include ${ATI_ROOT}/include
+       fi
+       # X and DRI driver
+       if has_version "<x11-base/xorg-x11-6.8.0-r4"
+       then
+               local X11_DIR="/usr/X11R6/"
+       else
+               local X11_DIR="/usr/"
+       fi
+
+       local X11_LIB_DIR="${X11_DIR}${inslibdir}"
+
+       exeinto ${X11_LIB_DIR}/modules/drivers
+       # In X.org 6.8.99 / 6.9 this is a .so
+       doexe ${BASE_DIR}/usr/X11R6/${pkglibdir}/modules/drivers/fglrx_drv.*o
+
+       exeinto ${X11_LIB_DIR}/modules/dri
+       doexe ${ARCH_DIR}/usr/X11R6/${pkglibdir}/modules/dri/fglrx_dri.so
+       doexe ${ARCH_DIR}/usr/X11R6/${pkglibdir}/modules/dri/atiogl_a_dri.so
+
+       exeinto ${X11_LIB_DIR}/modules/linux
+       # In X.org 6.8.99 / 6.9 this is a .so
+       if has_version ">=x11-base/xorg-x11-6.8.99" || \
+               has_version "x11-base/xorg-server"
+       then
+               doexe ${BASE_DIR}/usr/X11R6/${pkglibdir}/modules/linux/libfglrxdrm.so
+       else
+               doexe ${BASE_DIR}/usr/X11R6/${pkglibdir}/modules/linux/libfglrxdrm.a
+       fi
+
+       if has_version ">=x11-base/xorg-x11-6.8.99" || \
+               has_version "x11-base/xorg-server"
+       then
+               cp -pPR ${ARCH_DIR}/usr/X11R6/${pkglibdir}/lib{fglrx_*,aticonfig} \
+                       ${D}/usr/$(get_libdir)
+       else
+               cp -pPR ${ARCH_DIR}/usr/X11R6/${pkglibdir}/lib{fglrx_*,aticonfig.a} \
+                       ${D}/usr/$(get_libdir)
+       fi
+
+       #Not the best place
+       insinto ${X11_DIR}/include/X11/extensions
+       doins ${COMMON_DIR}/usr/X11R6/include/X11/extensions/fglrx_gamma.h
+
+       # misc ati configuration files for /etc
+       dodir /etc/ati
+       cp -pP ${COMMON_DIR}/etc/fglrxprofiles.csv ${D}/etc/ati/
+       cp -pP ${COMMON_DIR}/etc/fglrxrc ${D}/etc/ati/
+       cp -pP ${COMMON_DIR}/etc/ati/logo* ${D}/etc/ati/
+       if use acpi
+       then
+               cp -pP ${COMMON_DIR}/etc/ati/authatieventsd.sh ${D}/etc/ati/
+       fi
+}
+
+
+pkg_postinst() {
+       /usr/bin/eselect opengl set --use-old ati
+
+       echo
+       einfo "To switch to ATI OpenGL, run \"eselect opengl set ati\""
+       einfo "To change your xorg.conf you can use the bundled \"aticonfig\""
+       if use !opengl ; then
+       ewarn "You don't have the opengl useflag enabled, you won't be able to build"
+       ewarn "opengl applications nor use opengl driver features, if that isn't"
+       ewarn "the intended behaviour please add opengl to your useflag and issue"
+       ewarn "# emerge -Nu ati-drivers"
+       fi
+       echo
+       einfo "If you experience unexplained segmentation faults and kernel crashes"
+       einfo "with this driver and multi-threaded applications such as wine,"
+       einfo "set UseFastTLS in xorg.conf to either 0 or 1, but not 2."
+       # DRM module
+       linux-mod_pkg_postinst
+}
+
+pkg_postrm() {
+       linux-mod_pkg_postrm
+       /usr/bin/eselect opengl set --use-old xorg-x11
+}
diff --git a/x11-drivers/ati-drivers/files/digest-ati-drivers-8.30.3 b/x11-drivers/ati-drivers/files/digest-ati-drivers-8.30.3
new file mode 100644 (file)
index 0000000..d25b822
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 058990a8e7cb57c670d423adfd7bfc00 ati-driver-installer-8.30.3.run 58041208
+RMD160 d4481bba9313cf9bcb71b7603034595677eb53f9 ati-driver-installer-8.30.3.run 58041208
+SHA256 3d03b64ba8fd6fef3c50a2037a4e8d97955086fee3da274c2993d55aae058dcc ati-driver-installer-8.30.3.run 58041208