/[gentoo-x86]/dev-haskell/hdbc-sqlite/hdbc-sqlite-2.3.0.0.ebuild
Gentoo

Contents of /dev-haskell/hdbc-sqlite/hdbc-sqlite-2.3.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Sep 12 15:39:34 2012 UTC (2 years ago) by qnikst
Branch: MAIN
Changes since 1.1: +3 -3 lines
move dev-haskell/hdbc-sqlite/hdbc-sqlite-2.3.0.0.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/hdbc-sqlite/hdbc-sqlite-2.3.0.0.ebuild,v 1.1 2011/06/12 19:52:57 slyfox Exp $
4
5 CABAL_FEATURES="bin lib profile haddock hscolour"
6 inherit haskell-cabal
7
8 MY_PN="HDBC-sqlite3"
9 MY_P="${MY_PN}-${PV}"
10
11 DESCRIPTION="Sqlite v3 driver for HDBC"
12 HOMEPAGE="http://software.complete.org/hdbc-sqlite3"
13 SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="2"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="test"
19 RESTRICT="test" # not all files are bundled
20
21 RDEPEND=">=dev-lang/ghc-6.10
22 >=dev-haskell/hdbc-2.2
23 dev-haskell/mtl
24 dev-haskell/utf8-string
25 >=dev-db/sqlite-3.2"
26 DEPEND="${RDEPEND}
27 >=dev-haskell/cabal-1.2.3
28 test? ( dev-haskell/convertible
29 dev-haskell/hunit
30 dev-haskell/testpack
31 dev-haskell/time
32 )
33 "
34
35 S="${WORKDIR}/${MY_P}"
36
37 src_configure() {
38 cabal_src_configure $(cabal_flag test buildtests)
39 }
40
41 src_test() {
42 # default tests
43 haskell-cabal_src_test || die "cabal test failed"
44
45 # built custom tests
46 "${S}/dist/build/runtests/runtests" || die "unit tests failed"
47 }
48
49 src_install() {
50 cabal_src_install
51
52 # if tests were enabled, make sure the unit test driver is deleted
53 rm -f "${ED}/usr/bin/runtests"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20