1 |
commit: 63c8177e036f3a8327b47e2ab0696f2d20c9b98a |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 20 08:38:07 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 20 08:38:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63c8177e |
7 |
|
8 |
dev-haskell/hdbc-odbc: drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-haskell/hdbc-odbc/Manifest | 1 - |
14 |
.../files/hdbc-odbc-2.3.1.0-ghc-7.6.patch | 52 ------------------ |
15 |
dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild | 64 ---------------------- |
16 |
dev-haskell/hdbc-odbc/metadata.xml | 12 ---- |
17 |
4 files changed, 129 deletions(-) |
18 |
|
19 |
diff --git a/dev-haskell/hdbc-odbc/Manifest b/dev-haskell/hdbc-odbc/Manifest |
20 |
index e9e419aff9e..b83c15e3010 100644 |
21 |
--- a/dev-haskell/hdbc-odbc/Manifest |
22 |
+++ b/dev-haskell/hdbc-odbc/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST HDBC-odbc-2.4.0.1.tar.gz 27185 BLAKE2B 5ccd40f9dcc3ee7045f8719b16f0d65f049cd52c323b86aebdc11fba7c9003747f29850aec059d4d092826c579e0f9dc2f9d12dbbf7b1e261ca052a3e5ba122a SHA512 ae9f5ac2aa6adfc155999fb78b35a12e381d1589bf2539306a4e346af4eee401db8af8ef74348cc0707620f9586367701505d0d61bd96f00f0ebeb9240ed9a06 |
25 |
DIST HDBC-odbc-2.6.0.0.tar.gz 28537 BLAKE2B a3055d837406cd97586448c921738ae1bf05360fe4dc11d28f931c8020899c53ba83924f377945865c17b787eb32658a881136e19be1bd2a45a51b4766e4faa1 SHA512 300ee4b14a9cf1392d32549d17f3bb46e4dff22c0c5c8fc6a235dd76cb8dae2d722c3094bcd191ca146381c23259678b0735a7fb3a2d6527122d2a7a7e4db0d4 |
26 |
|
27 |
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 |
28 |
deleted file mode 100644 |
29 |
index 8092cf16da6..00000000000 |
30 |
--- a/dev-haskell/hdbc-odbc/files/hdbc-odbc-2.3.1.0-ghc-7.6.patch |
31 |
+++ /dev/null |
32 |
@@ -1,52 +0,0 @@ |
33 |
---- HDBC-odbc-2.3.1.0-orig/testsrc/TestSbasics.hs 2011-08-10 07:16:38.000000000 +1000 |
34 |
-+++ HDBC-odbc-2.3.1.0/testsrc/TestSbasics.hs 2012-10-13 12:30:47.216363898 +1100 |
35 |
-@@ -1,9 +1,13 @@ |
36 |
-+{-# LANGUAGE CPP, ScopedTypeVariables #-} |
37 |
- module TestSbasics(tests) where |
38 |
- import Test.HUnit |
39 |
- import Database.HDBC |
40 |
- import TestUtils |
41 |
- import System.IO |
42 |
--import Control.Exception hiding (catch) |
43 |
-+#if !MIN_VERSION_base(4,6,0) |
44 |
-+import Prelude hiding (catch) |
45 |
-+#endif |
46 |
-+import Control.Exception |
47 |
- |
48 |
- openClosedb = sqlTestCase $ |
49 |
- do dbh <- connectDB |
50 |
-@@ -123,7 +127,7 @@ |
51 |
- -- Let's try a rollback. |
52 |
- catch (withTransaction dbh (\_ -> do sExecuteMany sth rows |
53 |
- fail "Foo")) |
54 |
-- (\_ -> return ()) |
55 |
-+ (\(_::IOException) -> return ()) |
56 |
- sExecute qrysth [] |
57 |
- sFetchAllRows qrysth >>= (assertEqual "rollback" [[Just "0"]]) |
58 |
- |
59 |
---- HDBC-odbc-2.3.1.0-orig/testsrc/Testbasics.hs 2011-08-10 07:16:38.000000000 +1000 |
60 |
-+++ HDBC-odbc-2.3.1.0/testsrc/Testbasics.hs 2012-10-13 12:30:10.883415738 +1100 |
61 |
-@@ -1,9 +1,13 @@ |
62 |
-+{-# LANGUAGE CPP, ScopedTypeVariables #-} |
63 |
- module Testbasics(tests) where |
64 |
- import Test.HUnit |
65 |
- import Database.HDBC |
66 |
- import TestUtils |
67 |
- import System.IO |
68 |
--import Control.Exception hiding (catch) |
69 |
-+#if !MIN_VERSION_base(4,6,0) |
70 |
-+import Prelude hiding (catch) |
71 |
-+#endif |
72 |
-+import Control.Exception |
73 |
- |
74 |
- openClosedb = sqlTestCase $ |
75 |
- do dbh <- connectDB |
76 |
-@@ -140,7 +144,7 @@ |
77 |
- -- Let's try a rollback. |
78 |
- catch (withTransaction dbh (\_ -> do executeMany sth rows |
79 |
- fail "Foo")) |
80 |
-- (\_ -> return ()) |
81 |
-+ (\(_::IOException) -> return ()) |
82 |
- execute qrysth [] |
83 |
- fetchAllRows qrysth >>= (assertEqual "rollback" [[SqlString "0"]]) |
84 |
- |
85 |
|
86 |
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 |
87 |
deleted file mode 100644 |
88 |
index 9b527d532bd..00000000000 |
89 |
--- a/dev-haskell/hdbc-odbc/hdbc-odbc-2.4.0.1.ebuild |
90 |
+++ /dev/null |
91 |
@@ -1,64 +0,0 @@ |
92 |
-# Copyright 1999-2019 Gentoo Authors |
93 |
-# Distributed under the terms of the GNU General Public License v2 |
94 |
- |
95 |
-EAPI=5 |
96 |
- |
97 |
-# ebuild generated by hackport 0.4.4.9999 |
98 |
- |
99 |
-# haddock is disabled as it chokes in .hsc file: |
100 |
-# Database/HDBC/ODBC/Statement.hsc:462:3: |
101 |
-# parse error on input `Word16' |
102 |
-CABAL_FEATURES="bin lib profile hoogle hscolour" |
103 |
-inherit haskell-cabal |
104 |
- |
105 |
-MY_PN="HDBC-odbc" |
106 |
-MY_P="${MY_PN}-${PV}" |
107 |
- |
108 |
-DESCRIPTION="ODBC driver for HDBC" |
109 |
-HOMEPAGE="https://github.com/hdbc/hdbc-odbc" |
110 |
-SRC_URI="https://hackage.haskell.org/package/${MY_P}/${MY_P}.tar.gz" |
111 |
- |
112 |
-LICENSE="BSD" |
113 |
-SLOT="2/${PV}" |
114 |
-KEYWORDS="~amd64 ~x86" |
115 |
-IUSE="buildstresstest test" |
116 |
-RESTRICT="test" # requires configured ODBC |
117 |
- |
118 |
-RDEPEND=">=dev-haskell/hdbc-2.1.0:2=[profile?] |
119 |
- dev-haskell/mtl:=[profile?] |
120 |
- dev-haskell/utf8-string:=[profile?] |
121 |
- >=dev-lang/ghc-7.4.1:= |
122 |
- >=dev-db/unixODBC-2.2 |
123 |
-" |
124 |
-DEPEND="${RDEPEND} |
125 |
- >=dev-haskell/cabal-1.8 |
126 |
- buildstresstest? ( dev-haskell/random:=[profile?] |
127 |
- dev-haskell/resource-pool:=[profile?] ) |
128 |
- test? ( dev-haskell/convertible:=[profile?] |
129 |
- dev-haskell/hunit:=[profile?] |
130 |
- dev-haskell/quickcheck:2=[profile?] |
131 |
- dev-haskell/testpack:=[profile?] ) |
132 |
-" |
133 |
- |
134 |
-S="${WORKDIR}/${MY_P}" |
135 |
- |
136 |
-src_configure() { |
137 |
- haskell-cabal_src_configure \ |
138 |
- $(cabal_flag buildstresstest buildstresstest) \ |
139 |
- $(cabal_flag test buildtests) |
140 |
-} |
141 |
- |
142 |
-src_test() { |
143 |
- # default tests |
144 |
- haskell-cabal_src_test || die "cabal test failed" |
145 |
- |
146 |
- # built custom tests |
147 |
- "${S}/dist/build/runtests/runtests" || die "unit tests failed" |
148 |
-} |
149 |
- |
150 |
-src_install() { |
151 |
- cabal_src_install |
152 |
- |
153 |
- # if tests were enabled, make sure the unit test driver is deleted |
154 |
- rm -f "${ED}/usr/bin/runtests" |
155 |
-} |
156 |
|
157 |
diff --git a/dev-haskell/hdbc-odbc/metadata.xml b/dev-haskell/hdbc-odbc/metadata.xml |
158 |
index 5c72d4a3ad3..b7878815d80 100644 |
159 |
--- a/dev-haskell/hdbc-odbc/metadata.xml |
160 |
+++ b/dev-haskell/hdbc-odbc/metadata.xml |
161 |
@@ -5,16 +5,4 @@ |
162 |
<email>haskell@g.o</email> |
163 |
<name>Gentoo Haskell</name> |
164 |
</maintainer> |
165 |
- <longdescription> |
166 |
- This package provides an ODBC database backend for HDBC. |
167 |
- It is cross-platform and supports unixODBC on Unix/Linux/POSIX platforms |
168 |
- and Microsoft ODBC on Windows. It is also the preferred way to access |
169 |
- MySQL databases from Haskell. |
170 |
- </longdescription> |
171 |
- <use> |
172 |
- <flag name="buildstresstest">Build stress test</flag> |
173 |
- </use> |
174 |
- <upstream> |
175 |
- <remote-id type="github">hdbc/hdbc-odbc</remote-id> |
176 |
- </upstream> |
177 |
</pkgmetadata> |