diff options
Diffstat (limited to 'dev-haskell/persistent-sqlite')
5 files changed, 130 insertions, 0 deletions
diff --git a/dev-haskell/persistent-sqlite/Manifest b/dev-haskell/persistent-sqlite/Manifest new file mode 100644 index 000000000000..82b8d41395e4 --- /dev/null +++ b/dev-haskell/persistent-sqlite/Manifest @@ -0,0 +1,2 @@ +DIST persistent-sqlite-2.1.4.2.tar.gz 1460596 BLAKE2B b5bb2a869888fd276fc4a515000253408f878964b5b4b0740406a7655f2488a8b5c9354be108bc4f24b31caafa4916a9973ed2204a4be7ca53745dbc7217893f SHA512 9c959164135120f02464daee6d9012872d12212bcb94128010f05784cd11cd04d2fd2dcca5dafd9036d0bd4154a5262b26816b27d7a335f0404634471e3944c7 +DIST persistent-sqlite-2.6.tar.gz 3565770 BLAKE2B e92865929494d37ea5363dcb5110821e5ae5de099aca3fefa59311d2586b9c450f648fd4077ac7310efe72d5c7267b8f5c943610e65db7731608d8e86c62fdfe SHA512 c0be576429ee0051eeeffff6c6d7168a7993deeca47acd27bf2d0075afad2702855f2c14d8b389697d5053aa097d81fe119e4eb215a1c56f782e2ac95a5f8ff8 diff --git a/dev-haskell/persistent-sqlite/files/persistent-sqlite-2.1.4.2-exe.patch b/dev-haskell/persistent-sqlite/files/persistent-sqlite-2.1.4.2-exe.patch new file mode 100644 index 000000000000..2bd856f5f786 --- /dev/null +++ b/dev-haskell/persistent-sqlite/files/persistent-sqlite-2.1.4.2-exe.patch @@ -0,0 +1,20 @@ +diff --git a/persistent-sqlite.cabal b/persistent-sqlite.cabal +index 39971e7..c0edfe3 100644 +--- a/persistent-sqlite.cabal ++++ b/persistent-sqlite.cabal +@@ -76,2 +76,2 @@ executable sanity + hs-source-dirs: test +- build-depends: base, persistent-sqlite ++ build-depends: base, persistent-sqlite, monad-logger +diff --git a/test/sanity.hs b/test/sanity.hs +index aed09a3..ce61fed 100644 +--- a/test/sanity.hs ++++ b/test/sanity.hs +@@ -3,2 +3,3 @@ + import Database.Persist.Sqlite ++import Control.Monad.Logger + +@@ -7,2 +8,2 @@ $(return []) -- just force TH to run + main :: IO () +-main = withSqliteConn ":memory:" $ const $ return () ++main = runStderrLoggingT $ withSqliteConn ":memory:" $ const $ return () diff --git a/dev-haskell/persistent-sqlite/metadata.xml b/dev-haskell/persistent-sqlite/metadata.xml new file mode 100644 index 000000000000..5ba8045185a5 --- /dev/null +++ b/dev-haskell/persistent-sqlite/metadata.xml @@ -0,0 +1,15 @@ +<?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> + This package includes a thin sqlite3 wrapper based on the direct-sqlite package, as well as the entire C library, so there are no system dependencies. + </longdescription> + <use> + <flag name="build-sanity-exe">Build a sanity check test executable.</flag> + </use> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-haskell/persistent-sqlite/persistent-sqlite-2.1.4.2.ebuild b/dev-haskell/persistent-sqlite/persistent-sqlite-2.1.4.2.ebuild new file mode 100644 index 000000000000..56c7aa40a997 --- /dev/null +++ b/dev-haskell/persistent-sqlite/persistent-sqlite-2.1.4.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.5.9999 +#hackport: flags: +systemlib + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Backend for the persistent library using sqlite3" +HOMEPAGE="https://www.yesodweb.com/book/persistent" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="build-sanity-exe" + +RDEPEND=">=dev-db/sqlite-3.0 + >=dev-haskell/aeson-0.6.2:=[profile?] + >=dev-haskell/conduit-0.5.3:=[profile?] + >=dev-haskell/monad-control-0.2:=[profile?] + >=dev-haskell/monad-logger-0.2.4:=[profile?] + dev-haskell/old-locale:=[profile?] + >=dev-haskell/persistent-2.1:=[profile?] <dev-haskell/persistent-3:=[profile?] + >=dev-haskell/resourcet-1.1:=[profile?] + >=dev-haskell/text-0.7:=[profile?] + >=dev-haskell/transformers-0.2.1:=[profile?] + >=dev-lang/ghc-7.6.1:= + virtual/libc +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.16.0 + test? ( dev-haskell/hspec + dev-haskell/persistent-template ) +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-exe.patch +} + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag build-sanity-exe build-sanity-exe) \ + --flag=systemlib +} diff --git a/dev-haskell/persistent-sqlite/persistent-sqlite-2.6.ebuild b/dev-haskell/persistent-sqlite/persistent-sqlite-2.6.ebuild new file mode 100644 index 000000000000..da127f5e3af4 --- /dev/null +++ b/dev-haskell/persistent-sqlite/persistent-sqlite-2.6.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# ebuild generated by hackport 0.5.9999 +#hackport: flags: +systemlib + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Backend for the persistent library using sqlite3" +HOMEPAGE="https://www.yesodweb.com/book/persistent" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="build-sanity-exe" + +RDEPEND=">=dev-db/sqlite-3.0 + >=dev-haskell/aeson-0.6.2:=[profile?] + >=dev-haskell/conduit-0.5.3:=[profile?] + >=dev-haskell/monad-control-0.2:=[profile?] + >=dev-haskell/monad-logger-0.2.4:=[profile?] + dev-haskell/old-locale:=[profile?] + >=dev-haskell/persistent-2.6:=[profile?] <dev-haskell/persistent-3:=[profile?] + dev-haskell/resource-pool:=[profile?] + >=dev-haskell/resourcet-1.1:=[profile?] + >=dev-haskell/text-0.7:=[profile?] + >=dev-lang/ghc-7.8.2:= + virtual/libc +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.18.1.3 + test? ( dev-haskell/hspec + dev-haskell/persistent-template + dev-haskell/temporary ) +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag build-sanity-exe build-sanity-exe) \ + --flag=systemlib +} |
