/[gentoo-x86]/dev-haskell/mmap/mmap-0.5.8.ebuild
Gentoo

Contents of /dev-haskell/mmap/mmap-0.5.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Nov 18 08:29:25 2012 UTC (22 months ago) by gienah
Branch: MAIN
Bump mmap to 0.5.8

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 618E971F)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 # ebuild generated by hackport 0.3.9999
8
9 CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
10 inherit haskell-cabal
11
12 DESCRIPTION="Memory mapped files for POSIX and Windows"
13 HOMEPAGE="http://hackage.haskell.org/package/mmap"
14 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="0/${PV}"
18 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~ppc-macos ~x86-macos"
19 # IUSE="test"
20 IUSE=""
21
22 RESTRICT="test" # the test suite compile fails: Not in scope: data constructor `Permissions'
23
24 RDEPEND=">=dev-lang/ghc-6.10.4:="
25 DEPEND="${RDEPEND}
26 >=dev-haskell/cabal-1.6"
27 # test? ( dev-haskell/hunit[profile?] )" # pcheck dislikes useless depends
28
29 src_configure() {
30 cabal_src_configure # $(cabal_flag test mmaptest)
31 }
32
33 src_test() {
34 # breaking the abstraction a bit, we're not supposed to know about ./setup
35 # and how it works...
36 ./dist/build/mmaptest/mmaptest || die "tests failed"
37 }
38
39 src_install() {
40 cabal_src_install
41
42 rm "${D}/usr/bin/mmaptest"
43 rmdir "${D}/usr/bin" 2> /dev/null # only if empty
44 }

  ViewVC Help
Powered by ViewVC 1.1.20