From: | "Lennart Kolmodin (kolmodin)" <kolmodin@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-haskell/cabal: ChangeLog cabal-1.6.0.1.ebuild |
Date: | Sun, 19 Oct 2008 17:42:43 |
Message-Id: | E1KrcIa-0005XE-C4@stork.gentoo.org |
1 | kolmodin 08/10/19 17:42:40 |
2 | |
3 | Modified: ChangeLog |
4 | Added: cabal-1.6.0.1.ebuild |
5 | Log: |
6 | Add dev-haskell/cabal-1.6.0.1, newest version |
7 | (Portage version: 2.1.4.4) |
8 | |
9 | Revision Changes Path |
10 | 1.44 dev-haskell/cabal/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/cabal/ChangeLog?rev=1.44&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/cabal/ChangeLog?rev=1.44&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/cabal/ChangeLog?r1=1.43&r2=1.44 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-haskell/cabal/ChangeLog,v |
19 | retrieving revision 1.43 |
20 | retrieving revision 1.44 |
21 | diff -u -r1.43 -r1.44 |
22 | --- ChangeLog 18 Oct 2008 18:01:34 -0000 1.43 |
23 | +++ ChangeLog 19 Oct 2008 17:42:40 -0000 1.44 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for dev-haskell/cabal |
26 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/ChangeLog,v 1.43 2008/10/18 18:01:34 nixnut Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/ChangeLog,v 1.44 2008/10/19 17:42:40 kolmodin Exp $ |
29 | + |
30 | +*cabal-1.6.0.1 (19 Oct 2008) |
31 | + |
32 | + 19 Oct 2008; Lennart Kolmodin <kolmodin@g.o> +cabal-1.6.0.1.ebuild: |
33 | + Bump to latest available. |
34 | + We still bundle filepath-1.1.0.0 because of the cyclic dep. |
35 | |
36 | 18 Oct 2008; nixnut <nixnut@g.o> cabal-1.2.3.0.ebuild: |
37 | Stable on ppc wrt bug 239368 |
38 | |
39 | |
40 | |
41 | 1.1 dev-haskell/cabal/cabal-1.6.0.1.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/cabal/cabal-1.6.0.1.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/cabal/cabal-1.6.0.1.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: cabal-1.6.0.1.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2008 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/cabal-1.6.0.1.ebuild,v 1.1 2008/10/19 17:42:40 kolmodin Exp $ |
51 | |
52 | CABAL_FEATURES="bootstrap lib profile" |
53 | inherit haskell-cabal eutils |
54 | |
55 | MY_PN="Cabal" |
56 | MY_P="${MY_PN}-${PV}" |
57 | |
58 | # Resolve cyclic dep between filepath and Cabal by using a private copy of |
59 | # filepath when building Cabal. |
60 | FP_PN=filepath |
61 | FP_PV=1.1.0.0 |
62 | FP_P=${FP_PN}-${FP_PV} |
63 | |
64 | |
65 | DESCRIPTION="A framework for packaging Haskell software" |
66 | HOMEPAGE="http://www.haskell.org/cabal/" |
67 | SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz |
68 | http://hackage.haskell.org/packages/archive/${FP_PN}/${FP_PV}/${FP_P}.tar.gz" |
69 | |
70 | LICENSE="BSD" |
71 | SLOT="0" |
72 | KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
73 | IUSE="doc" |
74 | |
75 | DEPEND=">=dev-lang/ghc-6.4" |
76 | |
77 | S="${WORKDIR}/${MY_P}" |
78 | |
79 | src_unpack() { |
80 | unpack ${A} |
81 | |
82 | # We're using the private copy of filepath: |
83 | sed -i -e 's/Build-Depends: filepath >= 1 && < 1.2//' \ |
84 | -e '/Other-Modules:/a \ |
85 | System.FilePath System.FilePath.Posix System.FilePath.Windows' \ |
86 | "${S}/Cabal.cabal" |
87 | # Note: do not replace spaces with tabs on the line above, it'll break |
88 | # things. You'll just have to put up with the repoman warning. |
89 | |
90 | echo " Hs-Source-Dirs: ., ../${FP_P}" >> "${S}/Cabal.cabal" |
91 | } |
92 | |
93 | src_compile() { |
94 | if ! cabal-is-dummy-lib; then |
95 | einfo "Bootstrapping Cabal..." |
96 | $(ghc-getghc) -i -i. -i"${WORKDIR}/${FP_P}" -cpp --make Setup.hs \ |
97 | -o setup || die "compiling Setup.hs failed" |
98 | cabal-configure |
99 | cabal-build |
100 | fi |
101 | } |
102 | |
103 | src_install() { |
104 | cabal_src_install |
105 | } |