diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-haskell/hdbc-odbc | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-haskell/hdbc-odbc')
-rw-r--r-- | dev-haskell/hdbc-odbc/Manifest | 4 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-6.12.patch | 37 | ||||
-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.0.ebuild | 71 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild | 66 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.0.ebuild | 65 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild | 65 | ||||
-rw-r--r-- | dev-haskell/hdbc-odbc/metadata.xml | 17 |
8 files changed, 377 insertions, 0 deletions
diff --git a/dev-haskell/hdbc-odbc/Manifest b/dev-haskell/hdbc-odbc/Manifest new file mode 100644 index 000000000000..c74a000d0329 --- /dev/null +++ b/dev-haskell/hdbc-odbc/Manifest @@ -0,0 +1,4 @@ +DIST HDBC-odbc-2.3.1.0.tar.gz 23604 SHA256 c44d777006341b73f4124773ee8d09c8d84839d5dcf622a0e4c320fd1e1aea6f SHA512 73fc7d0d82275316823dd0dd8baa7b1c422c2bdf06a18ad1da3f242a1628c6c10e8cd7941426b0915f38b94eec9f0fb517a8f4d67c922717dd60a04a7fa855b3 WHIRLPOOL 6ff993a2fa3e584141449ad520c9c829c768f1fb38983e9c63be49af07af1cb1ac0b1a516a6a077c13c9afa2336d93fa888fcd41e7acce4c5d042a1ad6d1c109 +DIST HDBC-odbc-2.3.1.1.tar.gz 24518 SHA256 87b992ec8b26d01070ddc732cb07052ba482e29faf9c235832f7778f3c7fd77f SHA512 dbf95afca7906c4814f79e00d1fef0d26ed71c8da45a0fd51c4e3e4e0427d56d1937be0b0c4088841d5f12d93da0c4c29ec6f359c2e58fdf4c693f34bdae250a WHIRLPOOL 195c717831d4e2099e2f71a76870495a062cccb19d949257a89d358214bee2bee06985553738c7818125c8a094e19ddbc6a0d81f17bcd4e9f1e7d595c0576e29 +DIST HDBC-odbc-2.4.0.0.tar.gz 26707 SHA256 1f8b979f7feaf969c83fe75367e48dd00608b94b25db57bb02d0cb92802c587e SHA512 f7d0ba5fe7581cee53befe7b49f743f325c80717719c914d6445482b5ade88269bcf1031c3e942ff2012618828e73dce487c07e1616ab1a8d429e3b24228513b WHIRLPOOL a0f227445aff5190ef4b1443dc32dc099e983d1951f9c81cc326a4ea44d7d45288688b07df1ed90435f69b85e926e88f9039fd1f4abd303b2bafac031dd227de +DIST HDBC-odbc-2.4.0.1.tar.gz 27185 SHA256 dbc6eecc122079ca396c86154bfe59553d65bea52f83f8c0630903f2292daee9 SHA512 ae9f5ac2aa6adfc155999fb78b35a12e381d1589bf2539306a4e346af4eee401db8af8ef74348cc0707620f9586367701505d0d61bd96f00f0ebeb9240ed9a06 WHIRLPOOL 4f15b83bc9b1a7c4cde9fa48a370d6996da02b69d56ee7aca7b3063dfd63e714cd6cd10da0bc6bcd2dd820fe315d8dc5bb1f9b2013522c82038bb9210ee34db1 diff --git a/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-6.12.patch b/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-6.12.patch new file mode 100644 index 000000000000..791656b18613 --- /dev/null +++ b/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-6.12.patch @@ -0,0 +1,37 @@ +--- HDBC-odbc-2.3.1.0-orig/HDBC-odbc.cabal 2011-08-10 07:16:38.000000000 +1000 ++++ HDBC-odbc-2.3.1.0/HDBC-odbc.cabal 2011-08-12 14:51:43.510895477 +1000 +@@ -37,10 +37,10 @@ + ExistentialQuantification, + ForeignFunctionInterface, + ScopedTypeVariables +- Build-Depends: base >= 4.3.1.0 && < 5 ++ Build-Depends: base >= 4.2.0.2 && < 5 + , mtl + , HDBC>=2.1.0 +- , time>=1.2.0.3 ++ , time>=1.1.4 + , utf8-string + , bytestring + GHC-Options: -O2 +--- HDBC-odbc-2.3.1.0-orig/Database/HDBC/ODBC/Statement.hsc 2011-08-10 07:16:38.000000000 +1000 ++++ HDBC-odbc-2.3.1.0/Database/HDBC/ODBC/Statement.hsc 2011-08-12 15:16:11.585672600 +1000 +@@ -17,7 +17,7 @@ + import Database.HDBC.ODBC.Utils + import Database.HDBC.ODBC.TypeConv + +-import Foreign.C.String (castCUCharToChar) ++import GHC.Base (unsafeChr) + import Foreign.C.Types + import Foreign.ForeignPtr + import Foreign.Ptr +@@ -55,6 +55,10 @@ + #let CALLCONV = "ccall" + #endif + ++-- | Convert a C @unsigned char@, representing a Latin-1 character, to ++-- the corresponding Haskell character. ++castCUCharToChar :: CUChar -> Char ++castCUCharToChar ch = unsafeChr (fromIntegral (fromIntegral ch :: Word8)) + fGetQueryInfo :: Conn -> ChildList -> String + -> IO ([SqlColDesc], [(String, SqlColDesc)]) + fGetQueryInfo iconn children query = 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.0.ebuild b/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.0.ebuild new file mode 100644 index 000000000000..5c0a4ee6b1ea --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +# ebuild generated by hackport 0.2.18.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="http://software.complete.org/hdbc-odbc" +SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="test" # requires configured ODBC + +hdbc_PV=$(get_version_component_range 1-2) + +RDEPEND="=dev-haskell/hdbc-${hdbc_PV}*[profile?] + dev-haskell/mtl[profile?] + dev-haskell/utf8-string[profile?] + >=dev-lang/ghc-6.12.3 + >=dev-db/unixODBC-2.2 + " +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.2.3 + test? ( dev-haskell/convertible + dev-haskell/hunit + dev-haskell/quickcheck + dev-haskell/testpack + ) + " + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + if has_version "<dev-lang/ghc-7.0.1"; then + # Backport to ghc 6.12.3. + epatch "${FILESDIR}/${P}-ghc-6.12.patch" || die "Could not apply ${P}-ghc-6.12.patch" + fi +} + +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.3.1.1.ebuild b/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild new file mode 100644 index 000000000000..08c345440f6d --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-2.3.1.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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.0.ebuild b/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.0.ebuild new file mode 100644 index 000000000000..24dd710cb2ad --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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/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..24dd710cb2ad --- /dev/null +++ b/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..0b5657ed5bdd --- /dev/null +++ b/dev-haskell/hdbc-odbc/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>haskell</herd> + <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> |