Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/mysql/files/, dev-haskell/mysql/
Date: Sat, 29 Aug 2020 18:37:17
Message-Id: 1598726219.bedf56d37838e88fcefce334ecef8a045956ac1e.slyfox@gentoo
1 commit: bedf56d37838e88fcefce334ecef8a045956ac1e
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 18:25:42 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 18:36:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bedf56d3
7
8 dev-haskell/mysql: new package, a depend of esqueleto-3.3
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/mysql/Manifest | 1 +
14 .../mysql/files/mysql-0.1.1.8-Cabal-1.24.patch | 29 ++++++++++++++++++
15 dev-haskell/mysql/metadata.xml | 20 +++++++++++++
16 dev-haskell/mysql/mysql-0.1.7.ebuild | 34 ++++++++++++++++++++++
17 4 files changed, 84 insertions(+)
18
19 diff --git a/dev-haskell/mysql/Manifest b/dev-haskell/mysql/Manifest
20 new file mode 100644
21 index 00000000000..ab6ba5ef4a0
22 --- /dev/null
23 +++ b/dev-haskell/mysql/Manifest
24 @@ -0,0 +1 @@
25 +DIST mysql-0.1.7.tar.gz 16544 BLAKE2B a7617293f2dc970b9ace46c0b2a9452f23a90524181a1b37aa10176f2ba4ee3f9e967d94faa9e714a947e50b59d368c79fc59602cbc8e0792e4e396a09b4596c SHA512 45074050e17fed48f865c21ccca72cdcca02631715ee4a34b46f71fda74b50ab6332d8998d1047e6ae43df84e3fc865610153f15c3092c6b300e3e5ada30efa1
26
27 diff --git a/dev-haskell/mysql/files/mysql-0.1.1.8-Cabal-1.24.patch b/dev-haskell/mysql/files/mysql-0.1.1.8-Cabal-1.24.patch
28 new file mode 100644
29 index 00000000000..475d3f79722
30 --- /dev/null
31 +++ b/dev-haskell/mysql/files/mysql-0.1.1.8-Cabal-1.24.patch
32 @@ -0,0 +1,29 @@
33 +diff --git a/Setup.lhs b/Setup.lhs
34 +index 2bf8d37..8fb2d3f 100644
35 +--- a/Setup.lhs
36 ++++ b/Setup.lhs
37 +@@ -14,15 +14,2 @@ import Distribution.Verbosity
38 +
39 +--- A Cabal 1.16 vs 1.18 compatibility hack, as in 1.18
40 +--- findProgramLocation has a new (unused in this case) parameter.
41 +--- ConstOrId adds this parameter when types say it is mandatory.
42 +-class ConstOrId a b where
43 +- constOrId :: a -> b
44 +-
45 +-instance ConstOrId a a where
46 +- constOrId = id
47 +-
48 +-instance ConstOrId a (b -> a) where
49 +- constOrId = const
50 +-
51 +-
52 + main = defaultMainWithHooks simpleUserHooks {
53 +@@ -39,5 +26,5 @@ main = defaultMainWithHooks simpleUserHooks {
54 + mysqlConfigProgram = (simpleProgram "mysql_config") {
55 +- programFindLocation = \verbosity -> constOrId $ liftM2 mplus
56 +- (findProgramLocation verbosity "mysql_config")
57 +- (findProgramLocation verbosity "mysql_config5")
58 ++ programFindLocation = \verbosity path -> liftM2 mplus
59 ++ (findProgramOnSearchPath verbosity path "mysql_config")
60 ++ (findProgramOnSearchPath verbosity path "mysql_config5")
61 + }
62
63 diff --git a/dev-haskell/mysql/metadata.xml b/dev-haskell/mysql/metadata.xml
64 new file mode 100644
65 index 00000000000..a966cd047c6
66 --- /dev/null
67 +++ b/dev-haskell/mysql/metadata.xml
68 @@ -0,0 +1,20 @@
69 +<?xml version="1.0" encoding="UTF-8"?>
70 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
71 +<pkgmetadata>
72 + <maintainer type="project">
73 + <email>haskell@g.o</email>
74 + <name>Gentoo Haskell</name>
75 + </maintainer>
76 + <longdescription>
77 + A low-level client library for the MySQL database, implemented as
78 + bindings to the C @mysqlclient@ API.
79 +
80 + /Important licensing note/: This library is BSD-licensed under the
81 + terms of the MySQL FOSS License Exception
82 + &lt;http://www.mysql.com/about/legal/licensing/foss-exception/&gt;.
83 +
84 + Since this library links against the GPL-licensed @mysqlclient@
85 + library, a non-open-source application that uses it /may/ be
86 + subject to the terms of the GPL.
87 + </longdescription>
88 +</pkgmetadata>
89
90 diff --git a/dev-haskell/mysql/mysql-0.1.7.ebuild b/dev-haskell/mysql/mysql-0.1.7.ebuild
91 new file mode 100644
92 index 00000000000..430ba9a0ad8
93 --- /dev/null
94 +++ b/dev-haskell/mysql/mysql-0.1.7.ebuild
95 @@ -0,0 +1,34 @@
96 +# Copyright 1999-2020 Gentoo Authors
97 +# Distributed under the terms of the GNU General Public License v2
98 +
99 +EAPI=7
100 +
101 +# ebuild generated by hackport 0.6.9999
102 +#hackport: flags: -developer
103 +
104 +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
105 +inherit haskell-cabal
106 +
107 +DESCRIPTION="A low-level MySQL client library"
108 +HOMEPAGE="https://github.com/paul-rouse/mysql"
109 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
110 +
111 +LICENSE="BSD"
112 +SLOT="0/${PV}"
113 +KEYWORDS="~amd64 ~x86"
114 +IUSE=""
115 +
116 +RESTRICT=test # needs local mysql
117 +
118 +RDEPEND=">=dev-haskell/semigroups-0.11:=[profile?] <dev-haskell/semigroups-0.19:=[profile?]
119 + >=dev-lang/ghc-7.4.1:=
120 +"
121 +DEPEND="${RDEPEND}
122 + >=dev-haskell/cabal-1.8
123 + test? ( dev-haskell/hspec )
124 +"
125 +
126 +src_configure() {
127 + haskell-cabal_src_configure \
128 + --flag=-developer
129 +}