# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-portage/himerge/himerge-0.20.ebuild,v 1.1 2008/05/02 03:11:55 araujo Exp $ inherit base haskell-cabal DESCRIPTION="Haskell Graphical User Interface for the Gentoo's Portage System." HOMEPAGE="http://www.haskell.org/himerge/" SRC_URI="http://www.haskell.org/himerge/release/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=dev-lang/ghc-6.8.2 >=dev-haskell/gtk2hs-0.9.12.1 dev-haskell/parallel >=app-portage/eix-0.9.3 >=app-portage/gentoolkit-0.2.3 >=app-portage/portage-utils-0.1.28" RDEPEND="" pkg_setup() { if ! built_with_use -o dev-haskell/gtk2hs firefox seamonkey xulrunner; then echo eerror "gtk2hs was not merged with the firefox, seamonkey or xulrunner USE flag." eerror "Himerge requires gtk2hs be compiled with any of these flags." die "gtk2hs missing web browser support." fi } src_install() { cabal-copy cabal-pkg einfo "Installing data files." mkdir -p "${D}"/usr/share/himerge/icons mkdir -p "${D}"/usr/share/doc/"${P}" cp "${S}"/data/himerge/doc/himerge.css "${D}"/usr/share/doc/"${P}"/ cp "${S}"/data/himerge/doc/himerge_doc.html "${D}"/usr/share/doc/"${P}"/ cp "${S}"/data/himerge/icons/* "${D}"/usr/share/himerge/icons/ }