summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2006-02-23 00:52:26 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2006-02-23 00:52:26 +0000
commitba1291a8ab054fab68cc4d7608a025a2e35395ca (patch)
tree88a5f3e3fcb8bfb401d5ce42bb7291da58b58b53 /dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
parentMask dev-haskel/hsql-* ebuilds 'til they've been fully tested. (diff)
downloadgentoo-2-ba1291a8ab054fab68cc4d7608a025a2e35395ca.tar.gz
gentoo-2-ba1291a8ab054fab68cc4d7608a025a2e35395ca.tar.bz2
gentoo-2-ba1291a8ab054fab68cc4d7608a025a2e35395ca.zip
Initial import.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild')
-rw-r--r--dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild b/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
new file mode 100644
index 000000000000..738aca038d60
--- /dev/null
+++ b/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2006 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.1 2006/02/23 00:51:19 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="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=virtual/ghc-6.4.1
+ =dev-haskell/hsql-${PV}
+ dev-db/mysql"
+
+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"
+}