diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-29 19:33:15 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-29 19:37:02 +0100 |
commit | 9891cbd2e44d85eb3dd1f81d2972497e28d4c87a (patch) | |
tree | ec2ad931e89d14e19ec94fdb810646c5fc7afff6 /dev-haskell | |
parent | dev-haskell/persistent-mysql: new package, a depend of esqueleto-3.3 (diff) | |
download | gentoo-9891cbd2e44d85eb3dd1f81d2972497e28d4c87a.tar.gz gentoo-9891cbd2e44d85eb3dd1f81d2972497e28d4c87a.tar.bz2 gentoo-9891cbd2e44d85eb3dd1f81d2972497e28d4c87a.zip |
dev-haskell/postgresql-libpq: new package, a depend of esqueleto-3.3
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell')
-rw-r--r-- | dev-haskell/postgresql-libpq/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/postgresql-libpq/metadata.xml | 16 | ||||
-rw-r--r-- | dev-haskell/postgresql-libpq/postgresql-libpq-0.9.4.2-r2.ebuild | 39 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-haskell/postgresql-libpq/Manifest b/dev-haskell/postgresql-libpq/Manifest new file mode 100644 index 000000000000..37d3ba2599d6 --- /dev/null +++ b/dev-haskell/postgresql-libpq/Manifest @@ -0,0 +1 @@ +DIST postgresql-libpq-0.9.4.2.tar.gz 31349 BLAKE2B 3f590eacc034eedeec7c9e83122ac0d52faf29dea1c0d929eaac50a199f933fe755dadaa99b6a25abb9db46b13f51a8f581fb37c628f70ab850fb599347c88bc SHA512 8bb811d8a25a09e232391412a78125a419db00bd293eaff8f0d3c652a65a5d312e3f42fae41babe9edf820adead5c243dc5a055ab16d7f9725c861b464a8d4f4 diff --git a/dev-haskell/postgresql-libpq/metadata.xml b/dev-haskell/postgresql-libpq/metadata.xml new file mode 100644 index 000000000000..da4203ad218c --- /dev/null +++ b/dev-haskell/postgresql-libpq/metadata.xml @@ -0,0 +1,16 @@ +<?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 is a binding to libpq: the C application + programmer's interface to PostgreSQL. libpq is a + set of library functions that allow client + programs to pass queries to the PostgreSQL + backend server and to receive the results of + these queries. + </longdescription> +</pkgmetadata> diff --git a/dev-haskell/postgresql-libpq/postgresql-libpq-0.9.4.2-r2.ebuild b/dev-haskell/postgresql-libpq/postgresql-libpq-0.9.4.2-r2.ebuild new file mode 100644 index 000000000000..c077b890a0ed --- /dev/null +++ b/dev-haskell/postgresql-libpq/postgresql-libpq-0.9.4.2-r2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.5.6.9999 +#hackport: flags: -use-pkg-config + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="low-level binding to libpq" +HOMEPAGE="https://github.com/phadej/postgresql-libpq" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-db/postgresql-7:* + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.10 <dev-haskell/cabal-3.3 +" + +src_prepare() { + default + + cabal_chdeps \ + 'base >=4.3 && <4.13' 'base >=4.3' \ + 'Cabal >= 1.10 && <2.5' 'Cabal >= 1.10 && <3.3' +} + +src_configure() { + haskell-cabal_src_configure \ + --flag=-use-pkg-config +} |