diff options
-rw-r--r-- | games-emulation/dolphin-emu/dolphin-emu-9999.ebuild | 129 | ||||
-rw-r--r-- | media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.0.0017.ebuild | 67 | ||||
-rw-r--r-- | sys-fs/aufs2-util/aufs2-util-9999.ebuild | 1 |
3 files changed, 197 insertions, 0 deletions
diff --git a/games-emulation/dolphin-emu/dolphin-emu-9999.ebuild b/games-emulation/dolphin-emu/dolphin-emu-9999.ebuild new file mode 100644 index 0000000..3cecd58 --- /dev/null +++ b/games-emulation/dolphin-emu/dolphin-emu-9999.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +EAPI="3" + +WX_GTK_VER="2.8" + +inherit cmake-utils eutils flag-o-matic games subversion wxwidgets + +MY_PV="${PV/9999_p/}" + +DESCRIPTION="Free. open source emulator for Nintendo GameCube and Wii" +HOMEPAGE="http://www.dolphin-emu.com/" +SRC_URI="" +ESVN_REPO_URI="http://dolphin-emu.googlecode.com/svn/trunk/" +ESVN_PROJECT="dolphin-emu-read-only" +#ESVN_REVISION="$MY_PV" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc ~ppc64" +IUSE="alsa ao bluetooth doc encode +lzo openal opengl portaudio pulseaudio +wxwidgets +xrandr" +RESTRICT="" + +RDEPEND=">=media-libs/glew-1.5 + >=media-libs/libsdl-1.2[joystick] + sys-libs/readline + x11-libs/libXext + ao? ( media-libs/libao ) + alsa? ( media-libs/alsa-lib ) + bluetooth? ( net-wireless/bluez ) + encode? ( media-video/ffmpeg[encode] ) + lzo? ( dev-libs/lzo ) + openal? ( media-libs/openal ) + opengl? ( virtual/opengl ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + wxwidgets? ( x11-libs/wxGTK:2.8 ) + xrandr? ( x11-libs/libXrandr )" +DEPEND="${RDEPEND} + dev-util/cmake + dev-util/pkgconfig + media-gfx/nvidia-cg-toolkit" + #dev-util/scons + +# Configure using scons (deprecated) +#src_prepare() { +# sed -e "s;env\['prefix'\] + '/bin';'${GAMES_BINDIR}';" \ +# -e "s;env\['prefix'\] + \"/share/dolphin-emu\";'${GAMES_DATADIR}/${PN}';" \ +# -e "s;env\['prefix'\] + '/lib/dolphin-emu';'$(games_get_libdir)/${PN}';" \ +# -e "s;env\['prefix'\] + '/lib/;'$(games_get_libdir)/;" \ +# -i "${S}/SConstruct" \ +# || die "sed path update 1 failed" +#} + +src_configure() { + # Configure using cmake + mycmakeargs=" + -DDOLPHIN_WC_REVISION=${MY_PV} + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -Dprefix=${GAMES_PREFIX} + -Ddatadir=${GAMES_DATADIR}/${PN} + -Dplugindir=$(games_get_libdir)/${PN} + $(cmake-utils_use !wxwidgets DISABLE_WX) + $(cmake-utils_use encode ENCODE_FRAMEDUMPS)" + cmake-utils_src_configure +} + +src_compile() { + # Build using cmake + cmake-utils_src_make + + # Build using scons (deprecated) + # run "scons -h" to get a complete list of options + #local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }") + #scons ${sconsopts} \ + # nowx=$(use wxwidgets && echo "false" || echo "true") \ + # install=global \ + # prefix="/usr" \ + # destdir="${D}" \ + # shared_glew=true \ + # shared_lzo=true \ + # shared_sdl=true \ + # shared_zlib=true \ + # shared_sfml=false \ + # shared_soil=false \ + # verbose=false \ + # || die "scons build failed" +} + +src_install() { + # copy files to target installation directory + cmake-utils_src_install + #scons install || die "scons install failed" + + # set binary name + local binary="${PN}" + use wxwidgets || binary+="-nogui" + + # install documentation as appropriate + cd "${S}" + dodoc Readme.txt + if use doc; then + doins -r docs + fi + + # create menu entry for GUI builds + if use wxwidgets; then + doicon Source/Core/DolphinWX/resources/Dolphin.xpm || die + make_desktop_entry "${binary}" "Dolphin" "Dolphin" "Game;Emulator" + fi + + prepgamesdirs +} + +pkg_postinst() { + echo + if ! use portaudio; then + ewarn "If you need to use your microphone for a game, rebuild with USE=portaudio" + echo + fi + if ! use wxwidgets; then + ewarn "Note: It is not currently possible to configure Dolphin without the GUI." + ewarn "Rebuild with USE=wxwidgets to enable the GUI if needed." + echo + fi + + games_pkg_postinst +} diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.0.0017.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.0.0017.ebuild new file mode 100644 index 0000000..a9dc6d4 --- /dev/null +++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.0.0017.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit versionator + +MY_PV="$(get_version_component_range 1-2)" +MY_DATE="July2010" +DESCRIPTION="NVIDIA's C graphics compiler toolkit" +HOMEPAGE="http://developer.nvidia.com/object/cg_toolkit.html" +SRC_URI="x86? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz ) + amd64? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz )" + +LICENSE="NVIDIA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="strip" +DEPEND="media-libs/freeglut + x86? ( virtual/libstdc++:3.3 )" + +S=${WORKDIR} + +src_compile() { + einfo "Nothing to compile." +} + + +src_install() { + dobin usr/bin/* + + if use x86; then + dolib usr/lib/* + elif use amd64; then + dolib usr/lib64/* + fi + + doenvd "${FILESDIR}"/80cgc + + insinto /usr/include/Cg + doins usr/include/Cg/* + + doman usr/share/man/man3/* + + dodoc usr/local/Cg/MANIFEST usr/local/Cg/README \ + usr/local/Cg/docs/*.pdf usr/local/Cg/docs/CgReferenceManual.chm + + docinto html + dohtml usr/local/Cg/docs/html/* + + docinto examples + dodoc usr/local/Cg/examples/README + + docinto include/GL + dodoc usr/local/Cg/include/GL/* + + # Copy all the example code. + cd usr/local/Cg/examples + insinto /usr/share/doc/${PF}/examples + doins Makefile + for dir in $(find * -type d) ; do + insinto usr/share/doc/${PF}/examples/"${dir}" + doins "${dir}"/* + done +} diff --git a/sys-fs/aufs2-util/aufs2-util-9999.ebuild b/sys-fs/aufs2-util/aufs2-util-9999.ebuild index d9c575e..e9d13bc 100644 --- a/sys-fs/aufs2-util/aufs2-util-9999.ebuild +++ b/sys-fs/aufs2-util/aufs2-util-9999.ebuild @@ -21,6 +21,7 @@ CONFIG_CHECK="AUFS_FS" src_unpack() { git_src_unpack + git_branch cd ${WORKDIR}/${PN}-${PV} epatch ${FILESDIR}/aufs-util.patch } |