Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182692 Details for
Bug 198849
xbmc ebuild request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Added some eautoreconfs
xbmc-9999-r3.ebuild (text/plain), 8.31 KB, created by
Peter Fern
on 2009-02-20 21:39:00 UTC
(
hide
)
Description:
Added some eautoreconfs
Filename:
MIME Type:
Creator:
Peter Fern
Created:
2009-02-20 21:39:00 UTC
Size:
8.31 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI="1" >inherit autotools eutils flag-o-matic subversion > >ESVN_REPO_URI="https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC" >use vdpau && ESVN_REPO_URI="https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/xbmc-vdpau/XBMC" >use pvr && ESVN_REPO_URI="https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/unified-pvr/XBMC" >DESCRIPTION="XBMC is a free and open source media-player and entertainment hub" >HOMEPAGE="http://xbmc.org/" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="" >IUSE="alsa autostart +debug external-libraries gprof joystick opengl pulseaudio pvr vdpau" >RDEPEND="opengl? ( virtual/opengl ) > external-libraries? ( media-video/ffmpeg ) > app-arch/bzip2 > app-arch/unrar > app-arch/unzip > app-arch/zip > app-i18n/enca > dev-lang/nasm > >=dev-lang/python-2.4 > dev-libs/boost > <dev-libs/fribidi-0.19.1 > dev-libs/libpcre > dev-libs/lzo > dev-libs/tre > =dev-python/pysqlite-2* > dev-util/cmake > 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/libvorbis > media-libs/sdl-gfx > media-libs/sdl-image > media-libs/sdl-mixer > media-libs/sdl-sound > net-misc/curl > sys-apps/dbus > sys-apps/hal > sys-apps/lsb-release > sys-apps/pmount > virtual/mysql > x11-libs/libXinerama > x11-libs/libXrandr > x11-libs/libXrender > x11-proto/xineramaproto > vdpau? ( x11-drivers/nvidia-drivers ) > " >DEPEND="${RDEPEND}" > >pkg_setup() { > if use pvr && use vdpau; then > die "'pvr' and 'vdpau' track different subversion branches, and so cannot be enabled concurrently. Please choose only one." > fi > > if use pvr; then > ewarn "Enabling the 'pvr' flag tracks an alternative branch, you" > ewarn "probably shouldn't do this unless you know what you are doing" > epause 3 > fi > > if use vdpau; then > ewarn "Enabling the 'vdpau' flag tracks an alternative branch, you" > ewarn "probably shouldn't do this unless you know what you are doing" > epause 3 > fi > > # Video playback gives either segfaults or floating point exceptions # > # if media-libs/alsa-lib is not built with 'debug' USE flag enabled # > if ! built_with_use media-libs/alsa-lib debug; then > die "media-libs/alsa-lib needs to be built with the 'debug' USE flag enabled." > fi > > # media-libs/libsdl USE flag checks # > if use joystick && built_with_use media-libs/libsdl nojoystick; then > die "media-libs/libsdl needs to be built with USE -nojoystick." > fi > for flag in {alsa,X}; do > if ! built_with_use media-libs/libsdl ${flag}; then > die "media-libs/libsdl needs to be built with the '"${flag}"' USE flag enabled." > fi > done > > # media-libs/sdl-image USE flag checks # > for flag in {gif,jpeg,png}; do > if ! built_with_use media-libs/sdl-image ${flag}; then > die "media-libs/sdl-image needs to be built with the '"${flag}"' USE flag enabled." > fi > done > > if use autostart; then > XBMC_GROUPS="video,audio,cdrom,plugdev,tty,uucp,usb" > enewuser xbmc -1 /bin/bash /home/xbmc ${XBMC_GROUPS} > usermod -a -G ${XBMC_GROUPS} xbmc > fi >} > >src_unpack() { > subversion_src_unpack > > # Enable support for XBMC to read data DVD discs # > # See http://xbmc.org/trac/attachment/ticket/5296/ # > epatch "${FILESDIR}/${P}_readsector.patch" > > # XBMC's autotools files (configure.{ac,in}, Makefile.{ac,in}, ltmain.sh, etc.) can be distro specific # > # and in need of some love. If we need to regenerate 'configure', 'Makefile', 'ltmain.sh', etc., # > # (in the case where we don't run Debian/Ubuntu or have a version of libtool greater than 1.5*), # > # we run into problems, so let's clean this up # > for file in `find . -name configure.ac`; do > echo 'AC_PROG_CXX' >> "${file}" > done > for file in `find . -name configure.in`; do > echo 'AC_PROG_CXX' >> "${file}" > sed -e '/AM_PATH_XMMS/ c\echo' \ > -i ${file} || die "Sed failed for '"${file}"'" > sed -e '/AM_PATH_SDL2/ c\echo' \ > -i ${file} || die "Sed failed for '"${file}"'" > done > > # Prevent Mac OSX files being installed # > rm -rf system/python/lib-osx/ > > # Clean up XBMC's wrapper script # > echo '#!/bin/sh' > tools/Linux/xbmc.sh.in > use alsa && echo 'export SDL_AUDIODRIVER=alsa' >> tools/Linux/xbmc.sh.in > echo '' >> tools/Linux/xbmc.sh.in > echo 'export XBMC_PLATFORM_MODE=1' >> tools/Linux/xbmc.sh.in > > echo 'exec @prefix@/share/xbmc/xbmc.bin -fs $*' >> tools/Linux/xbmc.sh.in > > for dir in \ > xbmc/cores/dvdplayer/Codecs/libDVDCSS \ > xbmc/cores/dvdplayer/Codecs/libdvdnav \ > xbmc/cores/dvdplayer/Codecs/libfaad2 \ > xbmc/cores/dvdplayer/Codecs/libmad \ > xbmc/lib/libass \ > xbmc/lib/libid3tag/libid3tag \ > xbmc/cores/paplayer/MPCCodec \ > xbmc/visualizations/Goom/goom2k4-0 > do > cd ${S}/${dir} > eautoreconf > done > cd ${S} > > # Fix XBMC's final version string showing as "exported" instead of the SVN revision number # > sed -e "s/\$(svnversion -n .)/${ESVN_WC_REVISION}/g" \ > -i configure || die "Sed failed for '${S}/configure'" > > # Disable problem building of internal linked libraries' API docs if latex/doxygen are present # > sed -e 's#^AC_PATH_PROG(LATEX.*$#LATEX="no"#g' \ > -i xbmc/cores/dvdplayer/Codecs/libDVDCSS/configure.ac || \ > die "Sed failed for '${S}/xbmc/cores/dvdplayer/Codecs/libDVDCSS/configure.ac'" >} > >src_compile() { > # Strip out the use of custom C{XX}FLAGS to make debugging easier for upstream # ># strip-flags > > econf \ > --disable-ccache \ > $(use_enable debug) \ > $(use_enable external-libraries) \ > $(use_enable gprof profiling) \ > $(use_enable joystick) \ > $(use_enable opengl gl) \ > $(use_enable pulseaudio pulse) \ > || die "Configure failed!" > > emake || die "Make failed!" > cd "${S}" > > if use autostart; then > echo 'int main() {' > autologinxbmc.c > echo ' execlp("login", "login", "-f", "xbmc", 0);' >> autologinxbmc.c > echo '}' >> autologinxbmc.c > $(tc-getCC) -w -o autologinxbmc autologinxbmc.c > fi > > einfo > einfo "Generating textures..." > einfo > for skin in skin/* ; do > ./tools/XBMCTex/XBMCTex -input "\"${skin}/media/\"" \ > -output "\"${skin}/media/Textures.xpr\"" || die "XBMCTex failed..." > done > > # Fix case sensitivity # > mv "${S}/media/Fonts/arial.ttf" "${S}/media/Fonts/Arial.ttf" > mv "${S}/media/Splash.png" "${S}/media/splash.png" > > # Unzip web content # > unzip "${S}"/web/Project_Mayhem_III_webserver_*.zip -d "${S}/web/" || die "Unzip web content failed..." >} > >src_install() { > einstall INSTALL_ROOT="${D}" || die "Install failed!" > > for doc in LICENSE.GPL README.linux copying.txt known_issues.txt; do dodoc "${doc}"; done > rm ${D}/usr/share/xbmc/README.linux ${D}/usr/share/xbmc/LICENSE.GPL ${D}/usr/share/xbmc/*.txt > > insinto /usr/share/applications > doins tools/Linux/xbmc.desktop > insinto /usr/share/pixmaps > doins tools/Linux/xbmc.png > > dodir /etc/env.d > if use autostart; then > echo 'CONFIG_PROTECT="/usr/share/xbmc/userdata /home/xbmc"' > "${D}/etc/env.d/95xbmc" > > echo '/usr/bin/xbmc' > .xinitrc > echo 'case "`tty`" in' > .bash_profile > echo ' *tty8) xinit -- :$(echo $[`(ls /tmp/.X?-lock 2> /dev/null) | tail -n1 | sed "s,^/tmp/.X\(.*\)-lock$,\1,"` + 1]); logout ;;' >> .bash_profile > echo 'esac' >> .bash_profile > > insinto /home/xbmc > doins .bash_profile > doins .xinitrc > > exeinto /usr/sbin > doexe autologinxbmc > else > echo 'CONFIG_PROTECT="/usr/share/xbmc/userdata"' > "${D}/etc/env.d/95xbmc" > fi >} > >pkg_postinst() { > elog > elog "Toggle fullscreen mode using the backslash key" > elog "To access a MythTV backend, add 'myth://<mythdb_user>:<mythdb_pass>@<hostname>/'" > elog " as a new source in the 'Videos' section" > elog "For further documentation, visit http://xbmc.org/wiki/?title=XBMC_Online_Manual" > elog > elog "Details on filing bugs to upstream can be found at" > elog "http://xbmc.org/wiki/?title=HOW-TO_Submit_a_Proper_Bug_Report" > elog "Make sure you (re)build with the 'debug' USE flag enabled" > elog > > if use autostart; then > elog "You have enabled 'USE=autostart', the following needs" > elog " to be performed to complete the installation:" > elog "Please add the following to your /etc/inittab file" > elog "at the end of the TERMINALS section" > elog "c8:2345:respawn:/sbin/agetty -n -l /usr/sbin/autologinxbmc 38400 tty8" > elog > elog "To have the system reload /etc/inittab without rebooting," > elog "issue 'init q' as root" > elog > elog "For the security conscious, please note that this automatically" > elog "logins the user 'xbmc' with no authentication password necessary" > elog > else > elog "To have XBMC start automatically, set 'USE=autostart'" > elog > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 198849
:
154915
|
156499
|
158461
|
158463
|
159349
|
159791
|
160046
|
161074
|
161090
|
161453
|
161515
|
162061
|
165834
|
167750
|
167752
|
167754
|
169152
|
169154
|
170055
|
170640
|
170858
|
170976
|
171513
|
171625
|
171788
|
171958
|
173332
|
174353
|
175028
|
175034
|
175317
|
176341
|
176344
|
176346
|
176540
|
176956
|
177426
|
177427
|
182495
|
182498
|
182587
| 182692