# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/gtk2hs-buildtools/gtk2hs-buildtools-0.12.4-r2.ebuild,v 1.7 2014/02/02 11:13:33 ago Exp $ EAPI=5 # ebuild generated by hackport 0.3.9999 GTK_MAJ_VER="2" CABAL_FEATURES="bin" inherit base haskell-cabal DESCRIPTION="Tools to build the Gtk2Hs suite of User Interface libraries." HOMEPAGE="http://projects.haskell.org/gtk2hs/" SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0/${PV}" KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86" IUSE="" RDEPEND="" DEPEND="${RDEPEND} dev-haskell/alex >=dev-haskell/cabal-1.8 dev-haskell/happy dev-haskell/hashtables dev-haskell/random >=dev-lang/ghc-6.10.4" PATCHES=("${FILESDIR}/${PN}-0.12.4-hashtables.patch") src_prepare() { base_src_prepare sed -e "s@Executable gtk2hsTypeGen@Executable gtk2hsTypeGen${GTK_MAJ_VER}@" \ -e "s@Executable gtk2hsHookGenerator@Executable gtk2hsHookGenerator${GTK_MAJ_VER}@" \ -e "s@Executable gtk2hsC2hs@Executable gtk2hsC2hs${GTK_MAJ_VER}@" \ -i "${S}/${PN}.cabal" \ || die "Could not change ${PN}.cabal for GTK+ slot 0" }