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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Sep 12 14:58:13 2012 UTC (2 years ago) by qnikst
Branch: MAIN
Changes since 1.8: +2 -2 lines
move dev-haskell/mmap/mmap-0.4.1.ebuild ebuild to mirror://hackage

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20