Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 444528
Collapse All | Expand All

(-)foo.ebuild (-19 / +25 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2012 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
1
# Distributed under the terms of the GNU General Public License v2
3
# $Header: $
4
2
5
EAPI=4
3
EAPI=4
6
4
Lines 10-18 Link Here
10
HOMEPAGE="http://www.amd.com"
8
HOMEPAGE="http://www.amd.com"
11
MY_V=( $(get_version_components) )
9
MY_V=( $(get_version_components) )
12
#RUN="${WORKDIR}/amd-driver-installer-9.00-x86.x86_64.run"
10
#RUN="${WORKDIR}/amd-driver-installer-9.00-x86.x86_64.run"
13
SRC_URI="http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-12.11-beta11-x86.x86_64.zip"
11
SRC_URI="http://www2.ati.com/drivers/beta/amd-driver-installer-catalyst-12.11-beta11-x86.x86_64.zip http://developer.amd.com.php53-23.ord1-1.websitetestlink.com/wordpress/media/2012/10/xvba-sdk-0.74-404001.tar.gz"
14
FOLDER_PREFIX="common/"
12
FOLDER_PREFIX="common/"
15
IUSE="debug +modules multilib qt4 static-libs disable-watermark"
13
IUSE="+vaapi debug +modules multilib qt4 static-libs disable-watermark"
16
14
17
LICENSE="AMD GPL-2 QPL-1.0 as-is"
15
LICENSE="AMD GPL-2 QPL-1.0 as-is"
18
KEYWORDS="-* ~amd64 ~x86"
16
KEYWORDS="-* ~amd64 ~x86"
Lines 47-52 Link Here
47
"
45
"
48
46
49
DEPEND="${RDEPEND}
47
DEPEND="${RDEPEND}
48
	app-arch/unzip
50
	x11-proto/inputproto
49
	x11-proto/inputproto
51
	x11-proto/xf86miscproto
50
	x11-proto/xf86miscproto
52
	x11-proto/xf86vidmodeproto
51
	x11-proto/xf86vidmodeproto
Lines 56-61 Link Here
56
	app-misc/pax-utils
55
	app-misc/pax-utils
57
"
56
"
58
57
58
PDEPEND="
59
	vaapi? ( x11-libs/xvba-video )
60
"
61
59
EMULTILIB_PKG="true"
62
EMULTILIB_PKG="true"
60
63
61
S="${WORKDIR}"
64
S="${WORKDIR}"
Lines 279-296 Link Here
279
}
282
}
280
283
281
src_unpack() {
284
src_unpack() {
282
	if [[ ${A} =~ .*\.tar\.gz ]]; then
285
	unpack ${A}
283
		unpack ${A}
286
	local RUN="$(ls amd-driver*)"
284
	else
287
	sh ${RUN} --extract "${S}" || die
285
		#please note, RUN may be insanely assigned at top near SRC_URI
286
		if [[ ${A} =~ .*\.zip ]]; then
287
			unpack ${A}
288
			[[ -z "$RUN" ]] && RUN="${S}/${A/%.zip/.run}"
289
		else
290
			RUN="${DISTDIR}/${A}"
291
		fi
292
		sh ${RUN} --extract "${S}" 2>&1 > /dev/null || die
293
	fi
294
}
288
}
295
289
296
src_prepare() {
290
src_prepare() {
Lines 516-521 Link Here
516
	doexe "${FILESDIR}"/switchlibGL || die "doexe switchlibGL failed"
510
	doexe "${FILESDIR}"/switchlibGL || die "doexe switchlibGL failed"
517
	cp "${FILESDIR}"/switchlibGL "${T}"/switchlibglx
511
	cp "${FILESDIR}"/switchlibGL "${T}"/switchlibglx
518
	doexe "${T}"/switchlibglx || die "doexe switchlibglx failed"
512
	doexe "${T}"/switchlibglx || die "doexe switchlibglx failed"
513
514
	insinto /usr/include
515
	doins ${WORKDIR}/include/*.h
519
}
516
}
520
517
521
src_install-libs() {
518
src_install-libs() {
Lines 588-596 Link Here
588
	for so in $(find "${D}"/usr/$(get_libdir) -maxdepth 1 -name *.so.[0-9].[0-9])
585
	for so in $(find "${D}"/usr/$(get_libdir) -maxdepth 1 -name *.so.[0-9].[0-9])
589
	do
586
	do
590
		local soname=${so##*/}
587
		local soname=${so##*/}
591
		## let's keep also this alternative way ;)
588
		local soname_one=${soname%.[0-9]}
592
		#dosym ${soname} /usr/$(get_libdir)/${soname%.[0-9]}
589
		local soname_zero=${soname_one%.[0-9]}
593
		dosym ${soname} /usr/$(get_libdir)/$(scanelf -qF "#f%S" ${so})
590
		dosym ${soname} /usr/$(get_libdir)/${soname_one}
591
		dosym ${soname_one} /usr/$(get_libdir)/${soname_zero}
594
	done
592
	done
595
593
596
	# See https://bugs.gentoo.org/show_bug.cgi?id=443466
594
	# See https://bugs.gentoo.org/show_bug.cgi?id=443466
Lines 599-604 Link Here
599
597
600
	#remove static libs if not wanted
598
	#remove static libs if not wanted
601
	use static-libs || rm -rf "${D}"/usr/$(get_libdir)/libfglrx_dm.a
599
	use static-libs || rm -rf "${D}"/usr/$(get_libdir)/libfglrx_dm.a
600
602
}
601
}
603
602
604
pkg_postinst() {
603
pkg_postinst() {
Lines 620-625 Link Here
620
	use modules && linux-mod_pkg_postinst
619
	use modules && linux-mod_pkg_postinst
621
	"${ROOT}"/usr/bin/eselect opengl set --use-old ati
620
	"${ROOT}"/usr/bin/eselect opengl set --use-old ati
622
	"${ROOT}"/usr/bin/eselect opencl set --use-old amd
621
	"${ROOT}"/usr/bin/eselect opencl set --use-old amd
622
623
	if has_version ">=x11-drivers/xf86-video-intel-2.20.3"; then
624
		ewarn "It is reported that xf86-video-intel-2.20.3 and later cause the X server"
625
		ewarn "to crash on systems that use hybrid AMD/Intel graphics. If you experience"
626
		ewarn "this crash, downgrade to xf86-video-intel-2.20.2 or earlier."
627
		ewarn "For details, see https://bugs.gentoo.org/show_bug.cgi?id=430000"
628
	fi
623
}
629
}
624
630
625
pkg_preinst() {
631
pkg_preinst() {

Return to bug 444528