# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit games DESCRIPTION="Python application for practicing tsumegos" HOMEPAGE="http://www.u-go.net/uligo/" SRC_URI="http://dl.u-go.net/uligo/download/${PN}03.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="dev-lang/python" RDEPEND="${DEPEND}" S="${WORKDIR}/uligo03" src_prepare() { epatch ${FILESDIR}/${PN}_0.3-6.diff cp "${FILESDIR}/unixinst.py" "${S}/unixinst.py" } src_configure() { "${S}/unixinst.py" #There should not be any actual "installation" stuff in unixinst.py any longer. Hence this step belongs to the configure stage. } src_install() { dodir /usr/share/uligo03 cp -R "${S}" "${D}"/usr/share/ || die "Install failed" fperms 0755 /usr/share/uligo03/uligo.py || die "Install failed" dosym /usr/share/uligo03/uligo.py /usr/bin/uligo || die "Install failed" }