summaryrefslogtreecommitdiff
path: root/dev-haskell/hdbc-mysql
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/hdbc-mysql
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/hdbc-mysql')
-rw-r--r--dev-haskell/hdbc-mysql/Manifest9
-rw-r--r--dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch33
-rw-r--r--dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch18
-rw-r--r--dev-haskell/hdbc-mysql/hdbc-mysql-0.6.6.1-r3.ebuild36
-rw-r--r--dev-haskell/hdbc-mysql/hdbc-mysql-0.7.1.0.ebuild39
-rw-r--r--dev-haskell/hdbc-mysql/metadata.xml19
6 files changed, 154 insertions, 0 deletions
diff --git a/dev-haskell/hdbc-mysql/Manifest b/dev-haskell/hdbc-mysql/Manifest
new file mode 100644
index 000000000000..67bfb76d7852
--- /dev/null
+++ b/dev-haskell/hdbc-mysql/Manifest
@@ -0,0 +1,9 @@
+AUX hdbc-mysql-0.6.6.1-cabal-1.18.patch 1110 SHA256 35003c4f6f005cbce77fdbfea7bd397f15c0e47b08d0b77fa09a6c6c2b4b8957 SHA512 fca7c256c0035df6bf3e882a368e1207cee8177a1348e7502982b7085c0d81c667bdd905aa0ad5c04761aa8edd9e62809c690bcd220957769fba221f94c79e28 WHIRLPOOL a088d8c1d2d8c34c4903831909f02e96b338ac6692373f2fc610ac90d94bf9d52f917d0c024df83bab683aae90cb2e6e29c0f3e35b7592109a6d49983733aee4
+AUX hdbc-mysql-0.6.6.1-extralib.patch 460 SHA256 1734f4a093fd8a0b083a926e0477af62676ecdc74b798360c2d26bfb16c7ef92 SHA512 04e374b7803748d34bf8f87505609aa4463e70e49b29054a16f65d693eef2bc5ddcfa56c072a4f95e5576c1ad72b9ee94dd00c16538ce04e34b96c060954b114 WHIRLPOOL 3251b90bc11f35f6d92c6af9729ff36040bac402f2f8f0223564010848e59d6056b1bfcc12f1113a4657503ae61a8d1c9546289882e264659f8653205dae8a78
+DIST HDBC-mysql-0.6.6.1.tar.gz 23120 SHA256 35f1f32f20e9122800cde9eaf07d41e17b8786269f79125e31502cadacefa0e0 SHA512 be74be365021df54c9660af699cfec05271444da0042152c944d43927efcf7cf78712d3bfe25796f944af409b9eb24ab903c0b92bb6b3c6dbcf0a3ee057366bf WHIRLPOOL 274a15ab1f8b4dee2870c95319b6199803050087bd200540fe1f817ef5c0edae982398887f5c66e3da3accce671647e914c36e662ae9ca1122bc975ac92ba6a9
+DIST HDBC-mysql-0.7.1.0.tar.gz 24086 SHA256 81c985d4a243c965930fb412b3175ca799ba66985f8b6844014fd600df1da7cf SHA512 aec9387f08c16c8ccb6df1ca82e69005105a2781e253b6b8788665fa88e54a697601f99d10931ea6d3854dd9c0b43f062bccad1362a1512f5a2135cede0b0cc1 WHIRLPOOL 84179d2edef809838e8694844c52a6093f0334af936179c3e014aa4bae78d782139a021569adf43e7ab9984c018f9a2abd2968a64302170ffb1722c626436b9a
+EBUILD hdbc-mysql-0.6.6.1-r3.ebuild 849 SHA256 4f33433c650f9f989a01816bc52435ef0aea0365629acf1401faadc91f452078 SHA512 c2ffda9e01cddcbd648c5c8905df6056a11e2e3b446ef3896b2382b4da6fe2d107d50c66fe314856373f9376f92b1442eb2af03f4e9cfb294ad1a4aa67623d9b WHIRLPOOL 137aec6a04211b1b5552eea17843ccb99cb8ad7a69b7b6b0400476806ddea43737739e0b0b489957c84ccc3568dffffa4606977c54e11d2ceaced926bf33e8fb
+EBUILD hdbc-mysql-0.7.1.0.ebuild 826 SHA256 7cff16c3d3138cec6c41f6bb82e3de52fd3366586091e845db61fb0a4cd72221 SHA512 ea1f16c467689697be3b263eeaae14cc8b15455c33cfe81e4838d53b90cb8082c4fde82ee0919029d8cdf2fc3b5444a7c83dddacca09e13d0b0d773cade77e1d WHIRLPOOL 8e876eada03a7e61433cb64efe772947775065aaddfae3b147f52856df3e84c757ff68ef96a2eb1bec8fc015c7d2978cd0809257ea5fdf4467a29bae2a75a8b2
+MISC ChangeLog 3317 SHA256 a5856a7655f6c2e390d801e6b021431cc7df7354a790e2eb02f18dcc2dacfb01 SHA512 888813ae9d9e3eeb16e827c17c0eeec13d85243b2d726c7f2a3c7b6442a911abac9f109c6ade1841d9b93edb60cd5df3119ce5558d6e7ded02633f98458fdd5f WHIRLPOOL 138c8936f1f4bec8b7b3a70b5504e4c567ea989e0e1d6fb76eb5647f277351e7623a1d28a932ffd28cb216a37c26846c0876c6f9500811140199a0e52bb66e82
+MISC ChangeLog-2015 1389 SHA256 43a90c569e69aea69e361c0fb7fafb7410ec92d83c05026213aaa2490220cd1e SHA512 deb829a2c3ec1415a09c5e016178b2297ed628c0ebc03ddccb6fa4cc500ff4d771b0c9cec06fcb77c16a81e34ac700d482329e96551eab4cfc4ddb378d48a535 WHIRLPOOL d836c2ea115d3493b620d3acc61673e8e23c12e8997c5f91452c0c6bc81917e71b377899be44ef2f7f68fd81d542d07dd573f6fcfe1314117a18e1cef96b22c2
+MISC metadata.xml 592 SHA256 254a3cfffbc4e714fcc7e0e17a812610f15207cdde7e1fa499ef92a34d72d7ab SHA512 aa93543e2bb7a4dd1141b3ec81bc75fad2b848f962c13b74903d2aaedaaa0369f3d7bed6faefe15b5ec7204e69d5341dace3250f9fd5d06ca474f4bd4c8df4a6 WHIRLPOOL a4e291d1f48a592eb620203876f1d3d197c83e62853e349afc51ed9c01315d33af31e428dce4ebb7be472ee146bce72966d35d2aa2532214ff405a7ba131c847
diff --git a/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch
new file mode 100644
index 000000000000..83ddd4a4c8ca
--- /dev/null
+++ b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch
@@ -0,0 +1,33 @@
+--- HDBC-mysql-0.6.6.1-orig/Setup.lhs 2012-08-30 13:40:03.000000000 +1000
++++ HDBC-mysql-0.6.6.1/Setup.lhs 2014-07-03 22:31:21.162259637 +1000
+@@ -1,6 +1,7 @@
+ #!/usr/bin/env runhaskell
+
+ \begin{code}
++{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
+ import Distribution.Simple
+ import Distribution.PackageDescription
+ import Distribution.Version
+@@ -26,8 +27,21 @@
+ }
+ }
+
++-- 'ConstOrId' is a @Cabal-1.16@ vs @Cabal-1.18@ compatibility hack,
++-- 'programFindLocation' has a new (unused in this case)
++-- parameter. 'ConstOrId' adds this parameter when types say it is
++-- mandatory.
++class ConstOrId a b where
++ constOrId :: a -> b
++
++instance ConstOrId a a where
++ constOrId = id
++
++instance ConstOrId a (b -> a) where
++ constOrId = const
++
+ mysqlConfigProgram = (simpleProgram "mysql_config") {
+- programFindLocation = \verbosity -> do
++ programFindLocation = \verbosity -> constOrId $ do
+ mysql_config <- findProgramOnPath "mysql_config" verbosity
+ mysql_config5 <- findProgramOnPath "mysql_config5" verbosity
+ return (mysql_config `mplus` mysql_config5)
diff --git a/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch
new file mode 100644
index 000000000000..8b9993969cb3
--- /dev/null
+++ b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch
@@ -0,0 +1,18 @@
+commit d53860f7edb75873e263111129c159802b2ac5a6
+Author: Satoshi Nakamura <snakamura@infoteria.com>
+Date: Tue May 27 15:44:57 2014 +0900
+
+ Add mysqlclient to Extra-Libraries
+
+diff --git a/HDBC-mysql.cabal b/HDBC-mysql.cabal
+index 2d56d8b..6a8967a 100644
+--- a/HDBC-mysql.cabal
++++ b/HDBC-mysql.cabal
+@@ -32,6 +32,7 @@ library
+ time,
+ utf8-string
+ ghc-options: -Wall
++ Extra-Libraries: mysqlclient
+
+ source-repository head
+ type: git
diff --git a/dev-haskell/hdbc-mysql/hdbc-mysql-0.6.6.1-r3.ebuild b/dev-haskell/hdbc-mysql/hdbc-mysql-0.6.6.1-r3.ebuild
new file mode 100644
index 000000000000..861ba83ab5ca
--- /dev/null
+++ b/dev-haskell/hdbc-mysql/hdbc-mysql-0.6.6.1-r3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.3.1.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+CABAL_FEATURES+=" nocabaldep" # workaround depend on old cabal-1.16
+inherit haskell-cabal
+
+MY_PN="HDBC-mysql"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="MySQL driver for HDBC"
+HOMEPAGE="https://github.com/bos/hdbc-mysql"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/hdbc-2.1.0:=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ >=dev-lang/ghc-6.12.1:=
+ virtual/mysql"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${P}"-cabal-1.18.patch
+ "${FILESDIR}/${P}"-extralib.patch
+)
diff --git a/dev-haskell/hdbc-mysql/hdbc-mysql-0.7.1.0.ebuild b/dev-haskell/hdbc-mysql/hdbc-mysql-0.7.1.0.ebuild
new file mode 100644
index 000000000000..ce4e1c94bf63
--- /dev/null
+++ b/dev-haskell/hdbc-mysql/hdbc-mysql-0.7.1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.1.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+MY_PN="HDBC-mysql"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="MySQL driver for HDBC"
+HOMEPAGE="https://github.com/ryantm/hdbc-mysql"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND=">=dev-haskell/hdbc-2.1.0:2=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ >=dev-lang/ghc-8.0.1:=
+ dev-libs/openssl
+ sys-libs/zlib
+ >=virtual/mysql-4.0
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.24.0.0
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag debug debug)
+}
diff --git a/dev-haskell/hdbc-mysql/metadata.xml b/dev-haskell/hdbc-mysql/metadata.xml
new file mode 100644
index 000000000000..7fca400db6e5
--- /dev/null
+++ b/dev-haskell/hdbc-mysql/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ This package provides a MySQL driver for HDBC, implemented via
+ bindings to the C @mysqlclient@ library.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">bos/hdbc-mysql</remote-id>
+ </upstream>
+</pkgmetadata>