# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils distutils MY_PV=${PV/_/} MY_P=${PN}-${MY_PV} DESCRIPTION="Easy installation of Windows applications through Wine" HOMEPAGE="http://www.wine-doors.org" SRC_URI="http://www.wine-doors.org/releases/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="app-arch/cabextract app-emulation/wine dev-python/gnome-python-desktop >=dev-python/pycairo-1.2.0 dev-python/pygtk dev-util/glade" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd "${S}" # Make setup.py compatible with distutils eclass. sed -i \ -e "s:\"--prefix\":\"--root\":" \ -e "s:sysinstall = False:sysinstall = True:" \ setup.py || die "sed setup.py" } src_install() { distutils_src_install # Fix broken symlink - is "usr" instead of "/usr" dosym /usr/share/${PN}/src/winedoors.py /usr/bin/${PN} || die }