Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/list-remote-forwards/files/, net-mail/list-remote-forwards/
Date: Sat, 14 Dec 2019 10:52:34
Message-Id: 1576320739.9b0b3e554064ac255d93f9f7d2796cac811bd136.slyfox@gentoo
1 commit: 9b0b3e554064ac255d93f9f7d2796cac811bd136
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 14 10:52:19 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 14 10:52:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b0b3e55
7
8 net-mail/list-remote-forwards: fix for ghc-8.4
9
10 Package-Manager: Portage-2.3.81, Repoman-2.3.20
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 .../files/list-remote-forwards-0.0.1-ghc84.patch | 26 ++++++++++++
14 .../list-remote-forwards-0.0.1-r2.ebuild | 47 ++++++++++++++++++++++
15 2 files changed, 73 insertions(+)
16
17 diff --git a/net-mail/list-remote-forwards/files/list-remote-forwards-0.0.1-ghc84.patch b/net-mail/list-remote-forwards/files/list-remote-forwards-0.0.1-ghc84.patch
18 new file mode 100644
19 index 00000000000..bf21a42d597
20 --- /dev/null
21 +++ b/net-mail/list-remote-forwards/files/list-remote-forwards-0.0.1-ghc84.patch
22 @@ -0,0 +1,26 @@
23 +--- a/src/OptionalConfiguration.hs
24 ++++ b/src/OptionalConfiguration.hs
25 +@@ -31,2 +31,3 @@ import System.IO.Error ( catchIOError )
26 + import MxList ( MxList(..) )
27 ++import qualified Data.Semigroup as S
28 +
29 +@@ -59,2 +60,19 @@ merge_maybes (Just _) (Just y) = Just y
30 +
31 ++instance S.Semigroup OptionalConfiguration where
32 ++ cfg1 <> cfg2 =
33 ++ OptionalConfiguration
34 ++ (merge_maybes (database cfg1) (database cfg2))
35 ++ (merge_maybes (domain_query cfg1) (domain_query cfg2))
36 ++ all_excluded_mx
37 ++ (merge_maybes (forward_query cfg1) (forward_query cfg2))
38 ++ (merge_maybes (host cfg1) (host cfg2))
39 ++ (merge_maybes (password cfg1) (password cfg2))
40 ++ (merge_maybes (port cfg1) (port cfg2))
41 ++ (merge_maybes (username cfg1) (username cfg2))
42 ++ where
43 ++ -- Use only the latter exclude_mx if there are any.
44 ++ all_excluded_mx =
45 ++ exclude_mx $ if (null (get_mxs $ exclude_mx cfg2))
46 ++ then cfg1
47 ++ else cfg2
48 +
49
50 diff --git a/net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r2.ebuild b/net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r2.ebuild
51 new file mode 100644
52 index 00000000000..783e292e6de
53 --- /dev/null
54 +++ b/net-mail/list-remote-forwards/list-remote-forwards-0.0.1-r2.ebuild
55 @@ -0,0 +1,47 @@
56 +# Copyright 1999-2019 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=6
60 +
61 +# ebuild generated by hackport 0.4.4
62 +
63 +CABAL_FEATURES="bin test-suite"
64 +inherit haskell-cabal
65 +
66 +DESCRIPTION="List all remote forwards for mail accounts stored in a database"
67 +HOMEPAGE="http://hackage.haskell.org/package/list-remote-forwards"
68 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
69 +
70 +LICENSE="GPL-3"
71 +SLOT="0"
72 +KEYWORDS="~amd64 ~x86"
73 +IUSE=""
74 +
75 +RESTRICT=test # Ambiguous packages: dns-3.0.2 resolv-0.1.1.1
76 +
77 +RDEPEND=""
78 +DEPEND="${RDEPEND}
79 + >=dev-haskell/cabal-1.16.0
80 + >=dev-haskell/cmdargs-0.10
81 + >=dev-haskell/configurator-0.2
82 + >=dev-haskell/dns-1.4
83 + >=dev-haskell/hdbc-2.4
84 + >=dev-haskell/hdbc-postgresql-2.3
85 + >=dev-haskell/hdbc-sqlite3-2.3
86 + >=dev-haskell/missingh-1.2
87 + >=dev-haskell/tasty-0.8
88 + >=dev-haskell/tasty-hunit-0.8
89 + >=dev-haskell/tasty-quickcheck-0.8
90 + >=dev-lang/ghc-7.6.1
91 + test? ( >=dev-haskell/doctest-0.9
92 + >=dev-haskell/filemanip-0.3.6 )
93 +"
94 +
95 +PATCHES=(
96 + "${FILESDIR}"/${P}-ghc84.patch
97 +)
98 +
99 +src_install() {
100 + haskell-cabal_src_install
101 + doman "${S}/doc/man1/${PN}.1"
102 +}