1 |
commit: 6eb63f1ecfaf19fde6280b24411dc3ec29418c2a |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 16 22:05:49 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 16 22:11:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb63f1e |
7 |
|
8 |
dev-haskell/wxcore: switch to WX_GTK_VER="3.0-gtk3" |
9 |
|
10 |
Reported-by: David Seifert |
11 |
Closes: https://bugs.gentoo.org/781035 |
12 |
Reported-by: Agostino Sarubbo |
13 |
Closes: https://bugs.gentoo.org/777885 |
14 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
15 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
16 |
|
17 |
dev-haskell/wxcore/wxcore-0.92.3.0-r1.ebuild | 53 ++++++++++++++++++++++++++++ |
18 |
1 file changed, 53 insertions(+) |
19 |
|
20 |
diff --git a/dev-haskell/wxcore/wxcore-0.92.3.0-r1.ebuild b/dev-haskell/wxcore/wxcore-0.92.3.0-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..6ec00209026 |
23 |
--- /dev/null |
24 |
+++ b/dev-haskell/wxcore/wxcore-0.92.3.0-r1.ebuild |
25 |
@@ -0,0 +1,53 @@ |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+# ebuild generated by hackport 0.5.3.9999 |
32 |
+ |
33 |
+WX_GTK_VER="3.0-gtk3" |
34 |
+ |
35 |
+CABAL_FEATURES="lib profile haddock hoogle hscolour" |
36 |
+inherit haskell-cabal wxwidgets |
37 |
+ |
38 |
+DESCRIPTION="wxHaskell core" |
39 |
+HOMEPAGE="https://wiki.haskell.org/WxHaskell" |
40 |
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="wxWinLL-3.1" |
43 |
+SLOT="${WX_GTK_VER}/${PV}" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="gstreamer" |
46 |
+ |
47 |
+RDEPEND="dev-haskell/parsec:=[profile?] |
48 |
+ dev-haskell/stm:=[profile?] |
49 |
+ >=dev-haskell/wxc-0.92:${WX_GTK_VER}=[profile?,gstreamer?] |
50 |
+ >=dev-haskell/wxdirect-0.91:${WX_GTK_VER}=[profile?] |
51 |
+ >=dev-lang/ghc-7.4.1:= |
52 |
+ x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer?,opengl] |
53 |
+ !!dev-haskell/wxcore:3.0 |
54 |
+" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ >=dev-haskell/cabal-1.23 |
57 |
+" |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}"/${PN}-0.92.2.0-ghc-8.4.patch |
61 |
+ "${FILESDIR}"/${PN}-0.92.3.0-cabal-3.patch |
62 |
+) |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ |
67 |
+ sed -e "s@wxdirect@wxdirect-${WX_GTK_VER}@g" \ |
68 |
+ -i "${S}/Setup.hs" \ |
69 |
+ || die "Could not change Setup.hs for wxdirect slot ${WX_GTK_VER}" |
70 |
+ |
71 |
+ cabal_chdeps\ |
72 |
+ 'containers >= 0.2 && < 0.6' 'containers >=0.2' |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ haskell-cabal_src_configure \ |
77 |
+ --flag=splitbase |
78 |
+} |