# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsql-odbc/hsql-odbc-1.7.ebuild,v 1.4 2006/03/01 19:45:13 corsair Exp $ CABAL_FEATURES="lib haddock" inherit base haskell-cabal DESCRIPTION="ODBC driver for HSQL" HOMEPAGE="http://htoolkit.sourceforge.net/" SRC_URI="mirror://gentoo/HSQL-${PV}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="" DEPEND=">=virtual/ghc-6.4.1 ~dev-haskell/hsql-${PV} >=dev-db/unixODBC-2.2" S="${WORKDIR}/HSQL/ODBC" src_unpack() { base_src_unpack echo '> import Distribution.Simple' > "${S}/Setup.lhs" echo '> main = defaultMain' >> "${S}/Setup.lhs" sed -i '/cc-options:/d' "${S}/ODBC.cabal" echo 'extra-libraries: odbc' >> "${S}/ODBC.cabal" echo 'include-dirs: Database/HSQL' >> "${S}/ODBC.cabal" }