# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="3" inherit eutils rpm DESCRIPTION="simplified/streamlined version of wine with commercial support" HOMEPAGE="http://www.codeweavers.com/products/cxgames/" SRC_URI="crossover-games-demo-${PV}-1.i386.rpm" #crossover-games-demo-10.1.0-1.i386.rpm LICENSE="CROSSOVER" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="nas" RESTRICT="fetch strip" DEPEND="app-arch/rpm" RDEPEND="sys-libs/glibc x11-libs/libXrandr x11-libs/libXi x11-libs/libXmu x11-libs/libXxf86dga x11-libs/libXxf86vm dev-util/desktop-file-utils nas? ( media-libs/nas ) amd64? ( app-emulation/emul-linux-x86-xlibs ) media-libs/jpeg:62 media-libs/libpng:1.2" S=${WORKDIR} pkg_nofetch() { einfo "Please visit ${HOMEPAGE}" einfo "and place ${A} in ${DISTDIR}" } src_unpack() { rpm_src_unpack ${A} } src_install() { # Create /opt/cxgames dodir /opt/cxgames || die "dodir failed" # Copy all cxgames files cd "${S}/opt/cxgames" cp -r * "${D}"/opt/cxgames || die "cp failed" # Setup shortcuts #TBD } pkg_postinst() { elog "Run /opt/cxgames/bin/cxsetup as normal user to create" elog "bottles and install Windows applications." }