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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 1 21:32:00 2015 UTC (5 years ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Stabilize on alpha/amd64/ia64/ppc/ppc64/sparc/x86

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2015 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.6.ebuild,v 1.1 2015/01/01 21:26:11 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
36 src_configure() {
37 cabal_src_configure \
38 --bindir="${EPREFIX}/usr/sbin" \
39 --constraint="Cabal == $(cabal-version)"
40 }
41
42 src_install() {
43 cabal_src_install
44
45 dodoc TODO
46 }

  ViewVC Help
Powered by ViewVC 1.1.20