summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2007-12-13 05:50:33 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2007-12-13 05:50:33 +0000
commit459f94804a203364afe4c42abb36c68d2d4fb2ea (patch)
treee00b22a80c2fb56561d252bb0b5ecf32c355f33b /dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
parentfix deps and checks (diff)
downloadhistorical-459f94804a203364afe4c42abb36c68d2d4fb2ea.tar.gz
historical-459f94804a203364afe4c42abb36c68d2d4fb2ea.tar.bz2
historical-459f94804a203364afe4c42abb36c68d2d4fb2ea.zip
Updates for upward compatability with cabal-1.2 and ghc-6.8
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild')
-rw-r--r--dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild29
1 files changed, 15 insertions, 14 deletions
diff --git a/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild b/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
index a114102dd5a2..f109b222710e 100644
--- a/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
+++ b/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild
@@ -1,13 +1,13 @@
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsql-mysql/hsql-mysql-1.7.ebuild,v 1.8 2007/12/13 05:42:21 dcoutts Exp $
CABAL_FEATURES="lib haddock"
-inherit base haskell-cabal
+inherit haskell-cabal versionator
DESCRIPTION="MySQL driver for HSQL"
HOMEPAGE="http://htoolkit.sourceforge.net/"
-SRC_URI="mirror://gentoo/HSQL-${PV}.tar.gz"
+SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
@@ -18,16 +18,17 @@ 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"
+ unpack "${A}"
+
+ cabal-mksetup
+ sed -i '/cc-options:/d' "${S}/${PN}.cabal"
+ echo 'extra-libraries: mysqlclient' >> "${S}/${PN}.cabal"
+ echo 'ld-options: -L/usr/lib/mysql' >> "${S}/${PN}.cabal"
+ echo 'include-dirs: Database/HSQL /usr/include/mysql' >> "${S}/${PN}.cabal"
+
+ # Add in the extra split-base deps
+ if version_is_at_least "6.8" "$(ghc-version)"; then
+ echo "build-depends: old-time" >> "${S}/${PN}.cabal"
+ fi
}