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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20