/[gentoo-x86]/app-admin/haskell-updater/haskell-updater-1.2.1.ebuild
Gentoo

Contents of /app-admin/haskell-updater/haskell-updater-1.2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat May 17 13:58:54 2014 UTC (5 years, 8 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
Stable for alpha, wrt bug #502602

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="alpha", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/haskell-updater/haskell-updater-1.2.1.ebuild,v 1.8 2014/05/10 11:44:13 slyfox Exp $
4
5 EAPI=5
6
7 CABAL_FEATURES="bin nocabaldep"
8 inherit eutils haskell-cabal
9
10 DESCRIPTION="Rebuild Haskell dependencies in Gentoo"
11 HOMEPAGE="http://haskell.org/haskellwiki/Gentoo#haskell-updater"
12 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
17 IUSE=""
18
19 DEPEND=">=dev-lang/ghc-6.12.1"
20
21 # Need a lower version for portage to get --keep-going
22 RDEPEND="|| ( >=sys-apps/portage-2.1.6
23 sys-apps/pkgcore
24 sys-apps/paludis )"
25
26 src_prepare() {
27 if use prefix; then
28 sed -i -e "s,/var/db/pkg,${EPREFIX}&,g" \
29 "${S}/Distribution/Gentoo/Packages.hs" || die
30
31 sed -i -e 's,"/","'"${EPREFIX}"'/",g' \
32 "${S}/Distribution/Gentoo/GHC.hs" || die
33 fi
34
35 # for ghc snapshots (usually come with unstable Cabal API)
36 cabal_chdeps \
37 'Cabal >= 1.8 && < 1.19' 'Cabal >= 1.8 && < 1.21' \
38 'process < 1.2' 'process < 1.3'
39 }
40
41 src_configure() {
42 cabal_src_configure \
43 --bindir="${EPREFIX}/usr/sbin" \
44 --constraint="Cabal == $(cabal-version)"
45 }
46
47 src_install() {
48 cabal_src_install
49
50 dodoc TODO
51 }

  ViewVC Help
Powered by ViewVC 1.1.20