summaryrefslogtreecommitdiff
path: root/dev-haskell/hdbc
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
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/hdbc')
-rw-r--r--dev-haskell/hdbc/Manifest7
-rw-r--r--dev-haskell/hdbc/hdbc-2.3.1.2.ebuild61
-rw-r--r--dev-haskell/hdbc/hdbc-2.4.0.1.ebuild63
-rw-r--r--dev-haskell/hdbc/metadata.xml17
4 files changed, 148 insertions, 0 deletions
diff --git a/dev-haskell/hdbc/Manifest b/dev-haskell/hdbc/Manifest
new file mode 100644
index 000000000000..ead4bcb6d1b1
--- /dev/null
+++ b/dev-haskell/hdbc/Manifest
@@ -0,0 +1,7 @@
+DIST HDBC-2.3.1.2.tar.gz 23314 SHA256 07c962ebaf94f15df65dc0da875bda370abd2d163ab3fe3a946931dd11ac4ae6 SHA512 e98ca4043c311eb8e5adb02d1a59bc0d1be84ba66c224b848649a596de214a2a38b8bedfe71fa8f17ae0843cf073e814c76e7e868aca1e20619e3d5fa573109c WHIRLPOOL 76e909d4ac6ef0dce33a2771c7dba864b0e863251c76e8b9e97f706bbe36f78af566d8ec5e0bc4779161bae91528c8f6bddd7f8fdfe941d00a3f750f1d238eac
+DIST HDBC-2.4.0.1.tar.gz 23415 SHA256 7a3ee21c41e716111c4a3742a66eb448683719a9384afbf7021c5942ac73d2ad SHA512 1a20a533ffe7700cfb48c9875e9c6b09f940c1b808fd1a371327eed9c358abfe0167d206bb5b2dbb904b49f2081f91f81091d4164aad2aa08555f6de01a55d5a WHIRLPOOL 9c375d0828c1deb7d97a1312d56a41543aa342480965e39f73dd68fef79f5c68c30159f94ebf3bc2a8f80eb3a41ea08618ba499ef61cfa41725cb4507062b8f0
+EBUILD hdbc-2.3.1.2.ebuild 1547 SHA256 2b5ecbb17183e3e2a8c9aebabbde56b219653d271f04a62164eff8d0cd316df9 SHA512 2d1fabcae9662f12389e54bdb362e5ef959c186d689d51460cda8ac1fec5830b06168deaf7543fe117b686fb2d43f554bb6af109ead7f4dd6d62a757a415e9fd WHIRLPOOL 1fd46ada1bbd959d3604a1f753ce287f7c2c93baf0b3c54b05a90058ffad9762c1c92aec25212d71e8961f608f6918b1055dfebc5c408ace246de76d9e051970
+EBUILD hdbc-2.4.0.1.ebuild 1427 SHA256 819bd67ac5d05eea2c7a120ff151aad77394babfaba6eece1c269d68192964ac SHA512 49a199920bba639e88ac82be84cebe5003e125c92e02d314dc2123024280908ae5534fccb4eddfb94570080ae1a3bf00d61290eaee8f4545130977ff5706ec74 WHIRLPOOL b8937e359a1f60fe73824d0224be9b7bb2225b0fbb4ea687325cebd2977cd1cc9f2e13d84987adbd876bdc3c0de9387d27f55e4afa672be14a30821c0ee6b436
+MISC ChangeLog 3067 SHA256 160a4bb9ae0ae5cb12c1dad7b149b2db19e71962a2b2202c0eaab583c5569df6 SHA512 33c2b5e96d329747c343ad4e5eb37a73dca95a4a488848c741b1ffe09c579722230cf4556a0cb1cc002d8e393cb7bcce3704a30fba6ba9198d8db4cfde0a29e4 WHIRLPOOL 47a18ab17abed94747db8f229ad9ec74fbedca184d6f305e866be093cf58cf7093a43558758939616663a5a25d2cfe59033eafbd0bee2545ad48f7f96d132fcb
+MISC ChangeLog-2015 3681 SHA256 dfdb5e1a4d2b28825c4d08fad8f8c946224fd7fcdcbcd0ab25e175c760f82d4c SHA512 4f96e02d734610c1fe99f234afcc5910b6ec0a3f9a27b1c8502f77c6aeb53e382d67cd2582a4805aeb82ed11862d72b95fa9e5f429bb2be0907be9aba39ee3a6 WHIRLPOOL e81b0328a29b06dc8251b6da3f774c9f5acdf250fca17425e3e7cce635ba430baf97bd3ec639bb80f8005036efc08895b5f50906387a7c6d05a7e37e1798c557
+MISC metadata.xml 630 SHA256 4139fa02bbabf6fdf6a4e2e57180c8d254c16cc772b2560258c26ac56c056dcf SHA512 21033721685ac01211cd92c395fcff02a337bfac20b04a2b14932b70a9531ecbc8a56c429c51c9227b5c0912499f8e86d6bf7eaf93179dd3b73dff449290ea80 WHIRLPOOL d2fea64c42da2407ec37e556b54927ce0a7e0f23cce8c276c52d19e64cd783fb5fbdecedfd3902a5c14e4bbfb04f21e74b574b5adba5e8796bd45613915af968
diff --git a/dev-haskell/hdbc/hdbc-2.3.1.2.ebuild b/dev-haskell/hdbc/hdbc-2.3.1.2.ebuild
new file mode 100644
index 000000000000..43595a5a5289
--- /dev/null
+++ b/dev-haskell/hdbc/hdbc-2.3.1.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.1.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit haskell-cabal versionator
+
+MY_PN="HDBC"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Haskell Database Connectivity"
+HOMEPAGE="https://github.com/hdbc/hdbc"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="2/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="mysql odbc postgres sqlite test"
+
+RDEPEND=">=dev-haskell/convertible-1.0.10.0:=[profile?] <dev-haskell/convertible-1.1.0.0:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/text:=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ >=dev-lang/ghc-6.12.1:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit
+ dev-haskell/quickcheck
+ dev-haskell/testpack
+ )
+ "
+
+DEPENDV="$(get_version_component_range 1-2)"
+PDEPEND="mysql? ( dev-haskell/hdbc-mysql )
+ odbc? ( =dev-haskell/hdbc-odbc-${DEPENDV}* )
+ postgres? ( =dev-haskell/hdbc-postgresql-${DEPENDV}* )
+ sqlite? ( >=dev-haskell/hdbc-sqlite3-${DEPENDV} )"
+
+S="${WORKDIR}/${MY_P}"
+
+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/hdbc-2.4.0.1.ebuild b/dev-haskell/hdbc/hdbc-2.4.0.1.ebuild
new file mode 100644
index 000000000000..1f48de05daec
--- /dev/null
+++ b/dev-haskell/hdbc/hdbc-2.4.0.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.4.9999
+#hackport: flags: buildtests:test
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
+inherit haskell-cabal
+
+MY_PN="HDBC"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Haskell Database Connectivity"
+HOMEPAGE="https://github.com/hdbc/hdbc"
+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" # Tests do not compile with time 1.5
+
+RDEPEND=">=dev-haskell/convertible-1.1.0.0:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ dev-haskell/text:=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ test? ( dev-haskell/hunit:=[profile?]
+ >=dev-haskell/quickcheck-2.0:2=[profile?]
+ >=dev-haskell/testpack-2.0:=[profile?] )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ cabal_chdeps \
+ 'time >= 1.5 && < 1.6' 'time >= 1.5'
+}
+
+src_configure() {
+ haskell-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/metadata.xml b/dev-haskell/hdbc/metadata.xml
new file mode 100644
index 000000000000..70786ef184be
--- /dev/null
+++ b/dev-haskell/hdbc/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+ HDBC provides an abstraction layer between Haskell programs and SQL
+ relational databases. This lets you write database code once, in
+ Haskell, and have it work with any number of backend SQL databases
+ (MySQL, Oracle, PostgreSQL, ODBC-compliant databases, etc.)
+ </longdescription>
+ <upstream>
+ <remote-id type="github">hdbc/hdbc</remote-id>
+ </upstream>
+</pkgmetadata>