# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/darcs-2.4.4.ebuild,v 1.3 2010/07/10 19:08:04 slyfox Exp $ EAPI="2" CABAL_FEATURES="bin lib profile haddock" inherit haskell-cabal eutils bash-completion DESCRIPTION="a distributed, interactive, smart revision control system" HOMEPAGE="http://darcs.net/" SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ia64 ~ppc64 ~x86" IUSE="doc test" # Dependency notes: # 1) Use a cunning trick for hashed-storage, haskeline, regex-compat # where the min bound is the lowest version available. # 2) Do the opposite for zlib: highest not available. # 3) Prefer curl over HTTP since darcs uses an old version of HTTP. # 4) Use the same bounds for mmap as hashed-storage. COMMONDEPS=">=dev-lang/ghc-6.8 >=dev-haskell/hashed-storage-0.4.13 =dev-haskell/haskeline-0.6* =dev-haskell/html-1.0* =dev-haskell/mmap-0.4* /dev/null # fixup perms in such an an awkward way mv "${D}/usr/share/man/man1/darcs.1" "${S}/darcs.1" || die "darcs.1 not found" doman "${S}/darcs.1" || die "failed to register darcs.1 as a manpage" # if tests were enabled, make sure the unit test driver is deleted rm -rf "${D}/usr/bin/unit" } pkg_postinst() { ghc-package_pkg_postinst bash-completion_pkg_postinst ewarn "NOTE: in order for the darcs send command to work properly," ewarn "you must properly configure your mail transport agent to relay" ewarn "outgoing mail. For example, if you are using ssmtp, please edit" ewarn "/etc/ssmtp/ssmtp.conf with appropriate values for your site." }