# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild,v 1.7 2007/10/31 13:03:59 dcoutts Exp $ CABAL_FEATURES="lib haddock" inherit base haskell-cabal DESCRIPTION="MySQL driver for HSQL" HOMEPAGE="http://htoolkit.sourceforge.net/" SRC_URI="mirror://gentoo/HSQL-${PV}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="" DEPEND=">=dev-lang/ghc-6.4.1 ~dev-haskell/hsql-${PV} >=virtual/mysql-4.0" S="${WORKDIR}/HSQL/MySQL" src_unpack() { base_src_unpack echo '> import Distribution.Simple' > "${S}/Setup.lhs" echo '> main = defaultMain' >> "${S}/Setup.lhs" sed -i '/cc-options:/d' "${S}/MySQL.cabal" echo 'extra-libraries: mysqlclient' >> "${S}/MySQL.cabal" echo 'ld-options: -L/usr/lib/mysql' >> "${S}/MySQL.cabal" echo 'include-dirs: Database/HSQL /usr/include/mysql' >> "${S}/MySQL.cabal" }