1 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils multilib python
7 DESCRIPTION="Disper is an on-the-fly display switch utility"
8 HOMEPAGE="http://willem.engen.nl/projects/disper/"
9 SRC_URI="http://ppa.launchpad.net/disper-dev/ppa/ubuntu/pool/main/d/disper/${PN}_${PV}.tar.gz"
13 KEYWORDS="~x86 ~amd64"
16 DEPEND="dev-lang/python"
20 S="${WORKDIR}/dispercur"
22 python_convert_shebangs -r 2 .
23 # Avoid running disper within ebuild, since it fails without X
24 [ -f disper.1.in ] && touch disper.1.in
25 sed -i~ 's?`src/disper.py --version|?`echo "${PN} ${PV}"|?' Makefile
28 emake DESTDIR="${D}" install || die "make install failed."