blob: e31542c40a412dc583b788590ec488869d77343b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-odbc/hdbc-odbc-1.0.0.0.ebuild,v 1.2 2007/10/31 13:00:38 dcoutts Exp $
CABAL_FEATURES="lib profile haddock"
inherit base haskell-cabal versionator
DESCRIPTION="ODBC database driver for HDBC"
HOMEPAGE="http://quux.org/devel/hdbc/"
SRC_URI="http://quux.org/devel/hdbc/${PN}_${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
hdbc_PV=$(get_version_component_range 1-3)
DEPEND=">=dev-lang/ghc-6.4.1
~dev-haskell/hdbc-${hdbc_PV}
>=dev-db/unixODBC-2.2"
S="${WORKDIR}/${PN}"
src_unpack() {
base_src_unpack
# temp patch for missing #include. It seems different versions of
# dev-db/unixODBC #include their headers in each other differently.
sed -i 's/#include <sqlext.h>/#include <sqlext.h>\n#include <sqlucode.h>/' \
"${S}/Database/HDBC/ODBC/TypeConv.hsc"
}
|