IUSE="cups opengl" P="winex-${PV}" DESCRIPTION="WineX is a distribution of Wine with enhanced DirectX for gaming" HOMEPAGE="http://www.transgaming.com/" SLOT="0" KEYWORDS="x86" LICENSE="Transgaming" RDEPEND="virtual/x11 opengl? ( virtual/opengl ) >=sys-libs/ncurses-5.2 cups? ( net-print/cups ) >=media-libs/freetype-2.0.0" src_unpack () { if [ ! -e "${DISTDIR}/${P}.tgz" ] ; then eerror "" eerror "Please download the appropriate WineX archive (${P}.tgz)" eerror "from: ${HOMEPAGE} (requires a Transgaming subscription)." eerror "" eerror "The archive should be placed into ${DISTDIR}." eerror "" die "package archive (${P}.tgz) not found" fi mkdir ${WORKDIR}/${P} cd ${WORKDIR}/${P} tar xfz ${DISTDIR}/${P}.tgz } src_install () { mv ${S}/usr ${D} } pkg_postinst() { einfo "" einfo "Run /usr/bin/winex to start winex as any non-root user." einfo "This is a wrapper-script which will take care of creating" einfo "an initial environment and do everything else." einfo "" einfo "Optionally, if you have binfmt_misc compiled into your kernel," einfo "you can add the following to /etc/sysctl.conf to allow direct" einfo "excecution of Windows binaries through the winex wrapper:" einfo "" einfo " fs.binfmt_misc.register = :WINEXE:M::MZ::/usr/bin/winex:" einfo "" einfo "Note: Binaries will still need excecutable permissions to run." einfo "Note: If binfmt_misc is compiled as a module, make sure you" einfo "have it loaded on startup by adding it to /etc/modules.autoload." einfo "" }