summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2007-12-13 05:43:11 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2007-12-13 05:43:11 +0000
commit35bcaf7ff6fb6bf27c0c8b52a504b3712af2fee6 (patch)
tree6f905a3dd44e1d600b154ebf27b00c3d413e27ac /dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild
parentUpdates for upward compatability with cabal-1.2 and ghc-6.8 (diff)
downloadgentoo-2-35bcaf7ff6fb6bf27c0c8b52a504b3712af2fee6.tar.gz
gentoo-2-35bcaf7ff6fb6bf27c0c8b52a504b3712af2fee6.tar.bz2
gentoo-2-35bcaf7ff6fb6bf27c0c8b52a504b3712af2fee6.zip
Updates for upward compatability with cabal-1.2 and ghc-6.8
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild')
-rw-r--r--dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild b/dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild
index ab69a3e0c2bf..bbef73e92801 100644
--- a/dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild
+++ b/dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild
@@ -1,13 +1,16 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild,v 1.6 2007/10/31 13:05:25 dcoutts Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hsql-sqlite/hsql-sqlite-1.7.ebuild,v 1.7 2007/12/13 05:43:11 dcoutts Exp $
CABAL_FEATURES="lib haddock"
-inherit base haskell-cabal
+inherit haskell-cabal
+
+MY_PN=hsql-sqlite3
+MY_P=${MY_PN}-${PV}
DESCRIPTION="SQLite3 driver HSQL"
HOMEPAGE="http://htoolkit.sourceforge.net/"
-SRC_URI="mirror://gentoo/HSQL-${PV}.tar.gz"
+SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
@@ -18,13 +21,11 @@ DEPEND=">=dev-lang/ghc-6.4.1
~dev-haskell/hsql-${PV}
>=dev-db/sqlite-3.0"
-S="${WORKDIR}/HSQL/SQLite3"
+S="${WORKDIR}/${MY_P}"
src_unpack() {
- base_src_unpack
-
- echo '> import Distribution.Simple' > "${S}/Setup.lhs"
- echo '> main = defaultMain' >> "${S}/Setup.lhs"
+ unpack "${A}"
- echo 'extra-libraries: sqlite3' >> "${S}/SQLite3.cabal"
+ cabal-mksetup
+ echo 'extra-libraries: sqlite3' >> "${S}/hsql-sqlite3.cabal"
}