All pastes #1480486 Raw Edit

Zoolook

public text v1 · immutable
#1480486 ·published 2009-07-01 08:07 UTC
rendered paste body
# Copyright 1999-2009 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-9.04.ebuild,v 1.1 2009/05/16 14:49:14 vapier Exp $# XXX: be nice to split out packages that come bundled and use the#      system libraries ...EAPI="2"inherit eutilsif [[ ${PV} == "9999" ]] ; then	IUSE="alsa debug joystick opengl profile pulseaudio vdpau pvr-testing"	# Use XBMC_ESVN_REPO_URI to track a different branch	if use pvr-testing ; then		XBMC_ESVN_REPO_URI="https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/pvr-testing/XBMC"	fi	ESVN_REPO_URI=${XBMC_ESVN_REPO_URI:-https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC}	ESVN_PROJECT=${ESVN_REPO_URI##*/svnroot/}	ESVN_PROJECT=${ESVN_PROJECT%/XBMC}	inherit subversion	KEYWORDS=""else	IUSE="alsa debug joystick opengl profile pulseaudio vdpau"	if [[ ${PV} == "9.04.1" ]] ; then		MY_P="${PV}_Babylon-linux-osx-win32-repack"		SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"		S=${WORKDIR}/${PV}_Babylon-linux-osx-win32/XBMC	else		MY_P="XBMC_${PV}_Babylon-linux-osx-win32"		SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"		S=${WORKDIR}/${MY_P}	fi	KEYWORDS="~amd64 ~x86"fiDESCRIPTION="XBMC is a free and open source media-player and entertainment hub"HOMEPAGE="http://xbmc.org/"LICENSE="GPL-2"SLOT="0"RDEPEND="opengl? ( virtual/opengl )	app-arch/bzip2	app-arch/unrar	app-arch/unzip	app-arch/zip	app-i18n/enca	>=dev-lang/python-2.4	dev-libs/boost	dev-libs/fribidi	dev-libs/libcdio	dev-libs/libpcre	dev-libs/lzo	>=dev-python/pysqlite-2	media-libs/alsa-lib	media-libs/faac	media-libs/fontconfig	media-libs/freetype	media-libs/glew	media-libs/jasper	media-libs/libmad	media-libs/libogg	media-libs/libsamplerate	media-libs/libsdl[alsa,audio,video,X]	media-libs/libvorbis	media-libs/sdl-gfx	media-libs/sdl-image[gif,jpeg,png]	media-libs/sdl-mixer	media-libs/sdl-sound	net-misc/curl	sys-apps/dbus	sys-apps/hal	sys-apps/pmount	virtual/mysql	x11-apps/xdpyinfo	x11-apps/mesa-progs	x11-libs/libXinerama	x11-libs/libXrandr	x11-libs/libXrender"DEPEND="${RDEPEND}	x11-proto/xineramaproto	dev-util/cmake	x86? ( dev-lang/nasm )"src_unpack() {	if [[ ${PV} == "9999" ]] ; then		subversion_src_unpack	else		unpack ${A}	fi	cd "${S}"	if [[ ${PV} == "9.04.1" ]] ; then		for x in $(find . | grep configure) ; do			chmod ugo+x ${x}		done	fi#	epatch "${FILESDIR}"/${P}-gcc.patch	# Avoid help2man	sed -i \		-e '/HELP2MAN.*--output/s:.*:\ttouch $@:' \		xbmc/lib/libcdio/libcdio/src/Makefile.in	# Tweak autotool timestamps to avoid regeneration	find . -type f -print0 | xargs -0 touch -r configure	# Fix XBMC's final version string showing as "exported"	# instead of the SVN revision number.  Also cleanup flags.	export SVN_REV=${ESVN_WC_REVISION:-exported}	sed -i -r -e '/DEBUG_FLAGS/s:-(g|O2)::' configure	sed -i -e 's:\<strip\>:echo:' xbmc/lib/libhdhomerun/Makefile.in	# Avoid lsb-release dependency	sed -i \		-e 's:/usr/bin/lsb_release -d:cat /etc/gentoo-release:' \		xbmc/utils/SystemInfo.cpp	# Fix case sensitivity	mv media/Fonts/{a,A}rial.ttf	mv media/{S,s}plash.png	# Do not use termcap #262822	sed -i 's:-ltermcap::' xbmc/lib/libPython/Python/configure	# Unzip web content	cd web	unpack ./Project_Mayhem_III_webserver_*.zip}src_configure() {	# Disable documentation generation	export ac_cv_path_LATEX=no	econf \		--disable-ccache \		--disable-optimizations \		$(use_enable debug) \		$(use_enable joystick) \		$(use_enable opengl gl) \		$(use_enable profile profiling) \		$(use_enable pulseaudio pulse) \		$(use_enable vdpau)}src_install() {	einstall || die "Install failed!"	insinto /usr/share/applications	doins tools/Linux/xbmc.desktop	doicon tools/Linux/xbmc.png	dodoc README.linux known_issues.txt	rm "${D}"/usr/share/xbmc/{README.linux,LICENSE.GPL,*.txt}}pkg_postinst() {	elog "Visit http://xbmc.org/wiki/?title=XBMC_Online_Manual"}# emerge --infoWARNING: One or more repositories have missing repo_name entries:	/mnt/remote/GenLSPro_xtra/gentoo/portage_overlays/layman/directfb/profiles/repo_nameNOTE: Each repo_name entry should be a plain text file containing aunique name for the repository on the first line.Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 i686)=================================================================System uname: Linux-2.6.30-gentoo-r1-i686-AMD_Athlon-tm-_Dual_Core_Processor_5050e-with-gentoo-2.0.1Timestamp of tree: Wed, 01 Jul 2009 01:00:20 +0000distcc 3.1 i686-pc-linux-gnu [disabled]app-shells/bash:     4.0_p24dev-java/java-config: 2.1.8-r1dev-lang/python:     2.6.2-r1dev-util/cmake:      2.6.4sys-apps/baselayout: 2.0.1sys-apps/openrc:     0.4.3-r5sys-apps/sandbox:    2.0sys-devel/autoconf:  2.13, 2.63-r1sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11sys-devel/binutils:  2.19.1-r1sys-devel/gcc-config: 1.4.1sys-devel/libtool:   2.2.6avirtual/os-headers:  2.6.29ACCEPT_KEYWORDS="x86 ~x86"CBUILD="i686-pc-linux-gnu"CFLAGS="-O2 -march=i686 -pipe -ggdb"CHOST="i686-pc-linux-gnu"CONFIG_PROTECT="/etc"CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"CXXFLAGS="-O2 -march=i686 -pipe"DISTDIR="/usr/portage_distfiles"EMERGE_DEFAULT_OPTS="--verbose --alphabetical"FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"LANG="en_US.utf8"LC_ALL="en_US.utf8"LDFLAGS="-Wl,-O1"LINGUAS="en en_GB en_US de ro"MAKEOPTS="-j3"PKGDIR="/var/tmp/binpkgs"PORTAGE_CONFIGROOT="/"PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"PORTAGE_TMPDIR="/var/tmp"PORTDIR="/usr/portage"PORTDIR_OVERLAY="/usr/portage_overlays/layman/synce /usr/portage_overlays/layman/desktop-effects /usr/portage_overlays/layman/orion5x /usr/portage_overlays/layman/pda /usr/portage_overlays/layman/science /usr/portage_overlays/layman/gnome /usr/portage_overlays/layman/webapps-experimental /usr/portage_overlays/layman/suka /usr/portage_overlays/layman/wschlich-testing /usr/portage_overlays/layman/vdr-devel /usr/portage_overlays/layman/vdr-testing /usr/portage_overlays/layman/vdr-xine /usr/portage_overlays/layman/sabayon /usr/portage_overlays/layman/directfb /usr/portage_overlays/layman/berkano /usr/portage_overlays/local/my_overlay+patches /usr/portage_overlays/layman/openmoko/trunk/openmoko-target /usr/portage_overlays/local/my_overlay+patches"SYNC="rsync://rsync.gentoo.org/gentoo-portage"USE="3dnow 3dnowext 7zip X aac acl acpi alsa avahi bash-completion berkdb binary-drivers bluetooth branding bzip2 cairo cdda cddax cddb cdparanoia cdr colordiff cpudetection cracklib crypt css cuda dbus dc1394 dia dirac disk-partition dri dts dv dvb dvd dvdnav dvdr dvdread encode etc-proposals exif fbcon fbcondecor ffmpeg firefox firefox3 flac fortran fuse fusion gif git gpm gstreamer gtk h264 h323 hal hddtemp iconv icotools id3tag ieee1394 ipv6 java5 java6 jpeg lame laptop lcms libextractor libnotify lirc live lm_sensors logitech-mouse lzma lzo mad matroska midi mikmod mjpeg mmx mmxext mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mudflap musepack musicbrainz ncurses network nforce2 nls nptl nptlonly nsplugin nvidia nvram ogg openexr opengl openmp pam pcre pdf perl pm-utils pmount png python qt3support quicktime raw readline rtc samba sdl session shout speex spell spl sse sse2 ssl startup-notification subversion sysfs tcpd theora tiff timezone truetype twolame ubuntu-patches unicode usb v4l v4l2 vdpau vdr vdr-net vnc vorbis win32codecs wmf x264 x86 x86emu xfce xfs xine xml xorg xrandr xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="ncurses graphlcd" LINGUAS="en en_GB en_US de ro" LIRC_DEVICES="animax" USERLAND="GNU" VIDEO_CARDS="nvidia"Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS