diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 17:17:59 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2007-12-13 17:17:59 +0000 |
commit | 33bf48c458949af053ced376f9e491f144885ac7 (patch) | |
tree | 51a040cfabf7e6c8b9c57f60cf4266d099bfe683 /dev-haskell/hdbc/hdbc-1.1.3.ebuild | |
parent | New version. (diff) | |
download | gentoo-2-33bf48c458949af053ced376f9e491f144885ac7.tar.gz gentoo-2-33bf48c458949af053ced376f9e491f144885ac7.tar.bz2 gentoo-2-33bf48c458949af053ced376f9e491f144885ac7.zip |
New version.
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-haskell/hdbc/hdbc-1.1.3.ebuild')
-rw-r--r-- | dev-haskell/hdbc/hdbc-1.1.3.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-haskell/hdbc/hdbc-1.1.3.ebuild b/dev-haskell/hdbc/hdbc-1.1.3.ebuild new file mode 100644 index 000000000000..43f531037ef0 --- /dev/null +++ b/dev-haskell/hdbc/hdbc-1.1.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc/hdbc-1.1.3.ebuild,v 1.1 2007/12/13 17:17:58 dcoutts Exp $ + +CABAL_FEATURES="lib profile haddock" +inherit haskell-cabal versionator + +MY_PN=HDBC +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Haskell Database Connectivity" +HOMEPAGE="http://software.complete.org/hdbc" +SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="odbc postgres sqlite" + +DEPEND=">=dev-lang/ghc-6.4.1 + >=dev-haskell/mtl-1.0" + +PDEPEND="odbc? ( =dev-haskell/hdbc-odbc-${PV}* ) + postgres? ( =dev-haskell/hdbc-postgresql-${PV}* ) + sqlite? ( =dev-haskell/hdbc-sqlite-${PV}* )" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack "${A}" + + sed -i -e '/GHC-Options:/d' "${S}/HDBC.cabal" + + if version_is_at_least "6.8" "$(ghc-version)"; then + sed -i -e '/Build-Depends:/a \ + , old-time, containers, bytestring' \ + "${S}/HDBC.cabal" + echo "GHC-Options: -fglasgow-exts" >> "${S}/HDBC.cabal" + fi +} |