diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/hdbc-odbc |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/hdbc-odbc')
-rw-r--r-- | dev-haskell/hdbc-odbc/Manifest | 8 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-7.6.patch | 52 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild | 65 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild | 64 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/metadata.xml | 20 |
5 files changed, 209 insertions, 0 deletions
diff --git a/dev-haskell/hdbc-odbc/Manifest b/dev-haskell/hdbc-odbc/Manifest new file mode 100644 index 000000000000..3fd4d5b6080f --- /dev/null +++ b/dev-haskell/hdbc-odbc/Manifest @@ -0,0 +1,8 @@ +AUX hdbc-odbc-2.3.1.0-ghc-7.6.patch 1773 SHA256 4ec1dac2479f63a7b49f883f509a52bf2f69a6851306091be913ef3cade12853 SHA512 1978f79956a73b8615331698839583a242bf15987875a43df496b3bc68a814e516cd3d6868cad47b2b3f30226295a8affeab9995c056f58b649eb6a673ffb034 WHIRLPOOL 1623fabcd162006515502d5d7a7fbe3b98994e82ad94ee198af55aa56eae80f02df7bb7dbe27a058d68c7b65b2439584e9b57c2ac2f42e2de4f8052772d77fa6 +DIST HDBC-odbc-2.3.1.1.tar.gz 24518 SHA256 87b992ec8b26d01070ddc732cb07052ba482e29faf9c235832f7778f3c7fd77f SHA512 dbf95afca7906c4814f79e00d1fef0d26ed71c8da45a0fd51c4e3e4e0427d56d1937be0b0c4088841d5f12d93da0c4c29ec6f359c2e58fdf4c693f34bdae250a WHIRLPOOL 195c717831d4e2099e2f71a76870495a062cccb19d949257a89d358214bee2bee06985553738c7818125c8a094e19ddbc6a0d81f17bcd4e9f1e7d595c0576e29 +DIST HDBC-odbc-2.4.0.1.tar.gz 27185 SHA256 dbc6eecc122079ca396c86154bfe59553d65bea52f83f8c0630903f2292daee9 SHA512 ae9f5ac2aa6adfc155999fb78b35a12e381d1589bf2539306a4e346af4eee401db8af8ef74348cc0707620f9586367701505d0d61bd96f00f0ebeb9240ed9a06 WHIRLPOOL 4f15b83bc9b1a7c4cde9fa48a370d6996da02b69d56ee7aca7b3063dfd63e714cd6cd10da0bc6bcd2dd820fe315d8dc5bb1f9b2013522c82038bb9210ee34db1 +EBUILD hdbc-odbc-2.3.1.1.ebuild 1467 SHA256 fe2ece35ad359fdf8f2e63db418cfd7ce7d58b2648ca7f64c23e08afce990d74 SHA512 4ae7b7fcc5c64bb742d299ac58509918b675e95cfd4136d1a72f58c7c947f0dcc8256758f1e914c88e997839a7ce68230f62b2fc2df9018d1b5bc518f59d8558 WHIRLPOOL 7fb7476bece1375c02e55bd44dd6fe7045e707d2cb5b88ad1f322646abbb870b58c7abf1cca176ed49c095e228157faa9e1b8ece4fa4eb5268f01b362f0d36af +EBUILD hdbc-odbc-2.4.0.1.ebuild 1611 SHA256 82656cee15dd84325d0b3653a7e35ca5e3d02ac4a9ebfcf4cf0b621f4e31ccc4 SHA512 dce4e392e6cf4357fdd1f8d670a322cd7ebc24e784a95590cff45a6b4fabed8676fb98530503973c07df517774877719c234ba7dd4bf9c8e6ae01f6fd49ccdb1 WHIRLPOOL af65b29f12b5caa72e0931c8be9bdb972a88d105df22b0d01392e7642a1100efe38cefdcdc78a18b18577b81153346c30f94df3029028d660a71351a1fa770ef +MISC ChangeLog 3041 SHA256 9ecbdf447a44ffbf06017260a73fed9e214f75f194e019c8d451d92130658d19 SHA512 c94036604f748951a26c57b647ac1a4e06c0539666b55a9b6be077c2de3727549193e3842db817dae2daf5a07f6ecb2f90bd4a35eb87f46d9290efa6e67e3cc2 WHIRLPOOL 7204818bf43249c2e2a99eb9ac010cf3fbb6b915dfa4edcb50726b24fb9e985bb4f41c55e8e5dd17eb373b0feb5f99f81db0807cc3ccb4d9e8f437ab743d945c +MISC ChangeLog-2015 3836 SHA256 63688ce31cd6de2bea6513b6ad4e03bb08385a34e9f07721aef34ee0b0921ae3 SHA512 21cee2d5c406b9270689c849244529cf1189e8c536febcd48765b07c9c6cf9181b32e5fa4d3c109d671203c6c27bcbb5b3151fd60cdc2a23bd0e96f376159f6a WHIRLPOOL ec28c66d19f89a7a82f59fe357dea3fe6c5f98bfaa1f4d86b7f39b01e71d235dd7c8116155e165a9e196051ffb417f68d03c8b8cceac2b0afb8a68c70cb82fc2 +MISC metadata.xml 677 SHA256 44a7c422df0e1da87863901e04159a4a4b0ca1441dc20817dda3ef6aac2bc0e1 SHA512 bf7a8f735c7cbfd829bbca02e919e17ffe388d8b18289ea8126645588f856594e55f5891f924f19072e6a270d711b2397eab40c32d05d98eec27d69f20467170 WHIRLPOOL 65564da6373bdea31672652734262f256c942e5fc8bc7b235d79936b0ffe8d6374573e24cbed08ebf4b6337f37bcfbb1eaf4e8f9a2f489fdeba6084110f513a8 diff --git a/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-7.6.patch b/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-7.6.patch new file mode 100644 index 000000000000..8092cf16da6c --- /dev/null +++ b/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-7.6.patch @@ -0,0 +1,52 @@ +--- HDBC-odbc-2.3.1.0-orig/testsrc/TestSbasics.hs 2011-08-10 07:16:38.000000000 +1000 ++++ HDBC-odbc-2.3.1.0/testsrc/TestSbasics.hs 2012-10-13 12:30:47.216363898 +1100 +@@ -1,9 +1,13 @@ ++{-# LANGUAGE CPP, ScopedTypeVariables #-} + module TestSbasics(tests) where + import Test.HUnit + import Database.HDBC + import TestUtils + import System.IO +-import Control.Exception hiding (catch) ++#if !MIN_VERSION_base(4,6,0) ++import Prelude hiding (catch) ++#endif ++import Control.Exception + + openClosedb = sqlTestCase $ + do dbh <- connectDB +@@ -123,7 +127,7 @@ + -- Let's try a rollback. + catch (withTransaction dbh (\_ -> do sExecuteMany sth rows + fail "Foo")) +- (\_ -> return ()) ++ (\(_::IOException) -> return ()) + sExecute qrysth [] + sFetchAllRows qrysth >>= (assertEqual "rollback" [[Just "0"]]) + +--- HDBC-odbc-2.3.1.0-orig/testsrc/Testbasics.hs 2011-08-10 07:16:38.000000000 +1000 ++++ HDBC-odbc-2.3.1.0/testsrc/Testbasics.hs 2012-10-13 12:30:10.883415738 +1100 +@@ -1,9 +1,13 @@ ++{-# LANGUAGE CPP, ScopedTypeVariables #-} + module Testbasics(tests) where + import Test.HUnit + import Database.HDBC + import TestUtils + import System.IO +-import Control.Exception hiding (catch) ++#if !MIN_VERSION_base(4,6,0) ++import Prelude hiding (catch) ++#endif ++import Control.Exception + + openClosedb = sqlTestCase $ + do dbh <- connectDB +@@ -140,7 +144,7 @@ + -- Let's try a rollback. + catch (withTransaction dbh (\_ -> do executeMany sth rows + fail "Foo")) +- (\_ -> return ()) ++ (\(_::IOException) -> return ()) + execute qrysth [] + fetchAllRows qrysth >>= (assertEqual "rollback" [[SqlString "0"]]) + diff --git a/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild b/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild new file mode 100644 index 000000000000..cd66bbb26ccd --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.3.1.9999 + +# haddock is disabled as it chokes in .hsc file: +# Database/HDBC/ODBC/Statement.hsc:462:3: +# parse error on input `Word16' +CABAL_FEATURES="bin lib profile hoogle hscolour" +inherit haskell-cabal + +MY_PN="HDBC-odbc" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="ODBC driver for HDBC" +HOMEPAGE="https://github.com/hdbc/hdbc-odbc" +SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="2/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="test" # requires configured ODBC + +RDEPEND=">=dev-haskell/hdbc-2.1.0:=[profile?] + dev-haskell/mtl:=[profile?] + dev-haskell/utf8-string:=[profile?] + >=dev-lang/ghc-7.0.1:= + >=dev-db/unixODBC-2.2 + " +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 + test? ( dev-haskell/convertible + dev-haskell/hunit + dev-haskell/quickcheck + dev-haskell/testpack + ) + " + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-2.3.1.0-ghc-7.6.patch" +} + +src_configure() { + cabal_src_configure $(cabal_flag test buildtests) +} + +src_test() { + # default tests + haskell-cabal_src_test || die "cabal test failed" + + # built custom tests + "${S}/dist/build/runtests/runtests" || die "unit tests failed" +} + +src_install() { + cabal_src_install + + # if tests were enabled, make sure the unit test driver is deleted + rm -f "${ED}/usr/bin/runtests" +} diff --git a/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild b/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild new file mode 100644 index 000000000000..dd50a5bc197f --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.4.9999 + +# haddock is disabled as it chokes in .hsc file: +# Database/HDBC/ODBC/Statement.hsc:462:3: +# parse error on input `Word16' +CABAL_FEATURES="bin lib profile hoogle hscolour" +inherit haskell-cabal + +MY_PN="HDBC-odbc" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="ODBC driver for HDBC" +HOMEPAGE="https://github.com/hdbc/hdbc-odbc" +SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="2/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="buildstresstest test" +RESTRICT="test" # requires configured ODBC + +RDEPEND=">=dev-haskell/hdbc-2.1.0:2=[profile?] + dev-haskell/mtl:=[profile?] + dev-haskell/utf8-string:=[profile?] + >=dev-lang/ghc-7.4.1:= + >=dev-db/unixODBC-2.2 +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + buildstresstest? ( dev-haskell/random:=[profile?] + dev-haskell/resource-pool:=[profile?] ) + test? ( dev-haskell/convertible:=[profile?] + dev-haskell/hunit:=[profile?] + dev-haskell/quickcheck:2=[profile?] + dev-haskell/testpack:=[profile?] ) +" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag buildstresstest buildstresstest) \ + $(cabal_flag test buildtests) +} + +src_test() { + # default tests + haskell-cabal_src_test || die "cabal test failed" + + # built custom tests + "${S}/dist/build/runtests/runtests" || die "unit tests failed" +} + +src_install() { + cabal_src_install + + # if tests were enabled, make sure the unit test driver is deleted + rm -f "${ED}/usr/bin/runtests" +} diff --git a/dev-haskell/hdbc-odbc/metadata.xml b/dev-haskell/hdbc-odbc/metadata.xml new file mode 100644 index 000000000000..5c72d4a3ad3d --- /dev/null +++ b/dev-haskell/hdbc-odbc/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + This package provides an ODBC database backend for HDBC. + It is cross-platform and supports unixODBC on Unix/Linux/POSIX platforms + and Microsoft ODBC on Windows. It is also the preferred way to access + MySQL databases from Haskell. + </longdescription> + <use> + <flag name="buildstresstest">Build stress test</flag> + </use> + <upstream> + <remote-id type="github">hdbc/hdbc-odbc</remote-id> + </upstream> +</pkgmetadata> |