1 |
slyfox 11/08/02 08:33:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghc-paths-0.1.0.8.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.1.10.7/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 dev-haskell/ghc-paths/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/ghc-paths/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/ghc-paths/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/ghc-paths/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-haskell/ghc-paths/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 17 Jul 2010 12:41:26 -0000 1.3 |
24 |
+++ ChangeLog 2 Aug 2011 08:33:01 -0000 1.4 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-haskell/ghc-paths |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/ghc-paths/ChangeLog,v 1.3 2010/07/17 12:41:26 slyfox Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/ghc-paths/ChangeLog,v 1.4 2011/08/02 08:33:01 slyfox Exp $ |
31 |
+ |
32 |
+*ghc-paths-0.1.0.8 (02 Aug 2011) |
33 |
+ |
34 |
+ 02 Aug 2011; Sergei Trofimovich <slyfox@g.o> |
35 |
+ +ghc-paths-0.1.0.8.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
17 Jul 2010; Sergei Trofimovich <slyfox@g.o> |
39 |
ghc-paths-0.1.0.6.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-haskell/ghc-paths/ghc-paths-0.1.0.8.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/ghc-paths/ghc-paths-0.1.0.8.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/ghc-paths/ghc-paths-0.1.0.8.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ghc-paths-0.1.0.8.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/ghc-paths/ghc-paths-0.1.0.8.ebuild,v 1.1 2011/08/02 08:33:01 slyfox Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
# haddock feature is explicitely disabled, as this library can be used as haddock depend |
57 |
CABAL_FEATURES="lib profile" |
58 |
inherit haskell-cabal |
59 |
|
60 |
DESCRIPTION="Knowledge of GHC's installation directories" |
61 |
HOMEPAGE="http://hackage.haskell.org/package/ghc-paths" |
62 |
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="" |
68 |
|
69 |
RDEPEND=">=dev-lang/ghc-6.8.2" |
70 |
DEPEND="${RDEPEND} |
71 |
>=dev-haskell/cabal-1.6" |
72 |
|
73 |
src_prepare() { |
74 |
# ghc-patch it has awfully unportable (across cabal versions) ghc detection code |
75 |
# but in gentoo we install it to fixed patch, so remove Setup.hs detection code |
76 |
cabal-mksetup |
77 |
|
78 |
# and use gentoo's hardcoded one: |
79 |
# a few things we need to replace, and example values |
80 |
# GHC_PATHS_LIBDIR /usr/lib64/ghc-6.12.0.20091010 |
81 |
# GHC_PATHS_DOCDIR /usr/share/doc/ghc-6.12.0.20091010/html |
82 |
# GHC_PATHS_GHC_PKG /usr/bin/ghc-pkg |
83 |
# GHC_PATHS_GHC /usr/bin/ghc (be careful: GHC_PATHS_GHC is a substring of GHC_PATHS_GHC_PKG) |
84 |
|
85 |
cat >"${S}/GHC/Paths.hs" <<EOF |
86 |
module GHC.Paths ( ghc, ghc_pkg, libdir, docdir ) where |
87 |
|
88 |
libdir, docdir, ghc, ghc_pkg :: FilePath |
89 |
|
90 |
libdir = "$(ghc-libdir)" |
91 |
docdir = "/usr/share/doc/ghc-$(ghc-version)/html" |
92 |
|
93 |
ghc = "$(ghc-getghc)" |
94 |
ghc_pkg = "$(ghc-getghcpkg)" |
95 |
EOF |
96 |
} |