1 |
commit: e10fd2fc5d48def901899220caf6bc826ff9d214 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 2 09:05:01 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 09:06:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e10fd2fc |
7 |
|
8 |
dev-haskell/happy: revert "drop old" |
9 |
|
10 |
This reverts commit 741f647b14abffbed96096460d72efd341d4b2fc. |
11 |
|
12 |
Dropped latest version by accident. Noticed by dwfreed |
13 |
|
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
dev-haskell/happy/Manifest | 2 + |
17 |
dev-haskell/happy/happy-1.19.12.ebuild | 69 ++++++++++++++++++++++++++++++++++ |
18 |
dev-haskell/happy/happy-1.19.4.ebuild | 66 ++++++++++++++++++++++++++++++++ |
19 |
3 files changed, 137 insertions(+) |
20 |
|
21 |
diff --git a/dev-haskell/happy/Manifest b/dev-haskell/happy/Manifest |
22 |
index cc64de9debf..1bbc723221e 100644 |
23 |
--- a/dev-haskell/happy/Manifest |
24 |
+++ b/dev-haskell/happy/Manifest |
25 |
@@ -1 +1,3 @@ |
26 |
+DIST happy-1.19.12.tar.gz 183254 BLAKE2B 17b0d30f4aaf194a0e36c06bd6349665c704b5ab61dce16cae47f0ca6bfef0a0e2d4bbf3456f47cebf0f71f1a0b4a59ff6b581cb4ff76a26d82573eb0e7b056a SHA512 20f36b17adf7330852fd4c05335adbf31e6f19907b4ec247c85a40ee1f8496c6dc432055026696906b149cec7f982b88c9a2eeedf14a11d34b1f6f73272e5208 |
27 |
+DIST happy-1.19.4.tar.gz 160497 BLAKE2B a8a271ea69100d24b9a293d53e2a3262ad34c26cc9b511648cf64df719c49936b5badc6651191ca52b48ed96660335e86e706763e186f5275de1b58ae528631c SHA512 d49893098f9982321fc03dad464bf787873a1a82167165d53f617ba04923c7e5d8f177def7fa045a5669d1c7f886a88087ba8f668ef1900a71498b5800cc4b1a |
28 |
DIST happy-1.19.5.tar.gz 159280 BLAKE2B 5cfbddd981d689cfd076367e49f5b9fcfa38eca071a3d1d347a2074eb9c56436f6c7169d524b6628228472ee31ae1ccce3b5e1bcd0ae2b70d31283e3b4e33ee8 SHA512 7b43ef5236bdfba82bbddedb7edc7a8094990a389c0d3f5f848cb6208c3577e7b394cb290e51a2b2eebca25c97978a85ee932e74bbf6a792e261e5b5bff25a2b |
29 |
|
30 |
diff --git a/dev-haskell/happy/happy-1.19.12.ebuild b/dev-haskell/happy/happy-1.19.12.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..c67b77e14af |
33 |
--- /dev/null |
34 |
+++ b/dev-haskell/happy/happy-1.19.12.ebuild |
35 |
@@ -0,0 +1,69 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+# ebuild generated by hackport 0.6.9999 |
42 |
+#hackport: flags: +small_base |
43 |
+ |
44 |
+CABAL_FEATURES="test-suite" |
45 |
+inherit haskell-cabal autotools |
46 |
+ |
47 |
+DESCRIPTION="Happy is a parser generator for Haskell" |
48 |
+HOMEPAGE="https://www.haskell.org/happy/" |
49 |
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="BSD-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="doc" |
55 |
+ |
56 |
+RDEPEND=">=dev-haskell/mtl-2.2.1:= |
57 |
+ >=dev-lang/ghc-7.4.1:= |
58 |
+" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ >=dev-haskell/cabal-1.8 |
61 |
+ doc? ( ~app-text/docbook-xml-dtd-4.2 |
62 |
+ app-text/docbook-xsl-stylesheets ) |
63 |
+" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ if use doc; then |
69 |
+ cd doc || die |
70 |
+ eautoconf |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ # '--with-happy=false' allows detecting circular |
76 |
+ # depends even when 'happy' is installed in system |
77 |
+ haskell-cabal_src_configure \ |
78 |
+ --with-happy=false\ |
79 |
+ --flag=small_base |
80 |
+ |
81 |
+ if use doc; then |
82 |
+ # does not like out-of-source builds |
83 |
+ cd doc || die |
84 |
+ econf |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+src_compile() { |
89 |
+ haskell-cabal_src_compile |
90 |
+ |
91 |
+ if use doc; then |
92 |
+ emake -C doc -j1 |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ haskell-cabal_src_install |
98 |
+ |
99 |
+ if use doc; then |
100 |
+ docinto html |
101 |
+ dodoc -r doc/happy/. |
102 |
+ doman doc/happy.1 |
103 |
+ fi |
104 |
+} |
105 |
|
106 |
diff --git a/dev-haskell/happy/happy-1.19.4.ebuild b/dev-haskell/happy/happy-1.19.4.ebuild |
107 |
new file mode 100644 |
108 |
index 00000000000..40f68d3e302 |
109 |
--- /dev/null |
110 |
+++ b/dev-haskell/happy/happy-1.19.4.ebuild |
111 |
@@ -0,0 +1,66 @@ |
112 |
+# Copyright 1999-2020 Gentoo Authors |
113 |
+# Distributed under the terms of the GNU General Public License v2 |
114 |
+ |
115 |
+EAPI=5 |
116 |
+ |
117 |
+# ebuild generated by hackport 0.3.4.9999 |
118 |
+ |
119 |
+CABAL_FEATURES="bin test-suite" |
120 |
+inherit eutils haskell-cabal autotools |
121 |
+ |
122 |
+DESCRIPTION="Happy is a parser generator for Haskell" |
123 |
+HOMEPAGE="https://www.haskell.org/happy/" |
124 |
+SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" |
125 |
+ |
126 |
+LICENSE="BSD" |
127 |
+SLOT="0" |
128 |
+KEYWORDS="~amd64 ~x86" |
129 |
+IUSE="doc" |
130 |
+ |
131 |
+RDEPEND="" |
132 |
+DEPEND="${RDEPEND} |
133 |
+ >=dev-haskell/cabal-1.8 |
134 |
+ >=dev-haskell/mtl-1.0 |
135 |
+ >=dev-lang/ghc-6.10.4 |
136 |
+ doc? ( ~app-text/docbook-xml-dtd-4.2 |
137 |
+ app-text/docbook-xsl-stylesheets ) |
138 |
+" |
139 |
+ |
140 |
+src_prepare() { |
141 |
+ for f in AttrGrammarParser Parser; do |
142 |
+ # drop broken autogenerated |
143 |
+ mv "dist/build/happy/happy-tmp/$f.hs" src/ || die |
144 |
+ # drop depend on itself, otherwise cabal tries to regenerate it |
145 |
+ rm "src/$f.ly" || die |
146 |
+ done |
147 |
+ use doc && cd doc && eautoconf |
148 |
+} |
149 |
+ |
150 |
+src_configure() { |
151 |
+ # '--with-happy=false' allows detecting circular |
152 |
+ # depends even when 'happy' is installed in system |
153 |
+ haskell-cabal_src_configure --with-happy=false |
154 |
+ |
155 |
+ if use doc; then |
156 |
+ # does not like out-of-source builds |
157 |
+ cd doc || die |
158 |
+ econf |
159 |
+ fi |
160 |
+} |
161 |
+ |
162 |
+src_compile() { |
163 |
+ haskell-cabal_src_compile |
164 |
+ |
165 |
+ if use doc; then |
166 |
+ emake -C doc -j1 |
167 |
+ fi |
168 |
+} |
169 |
+ |
170 |
+src_install() { |
171 |
+ haskell-cabal_src_install |
172 |
+ if use doc; then |
173 |
+ cd doc || die |
174 |
+ dohtml -r happy/* |
175 |
+ doman "${S}/doc/happy.1" |
176 |
+ fi |
177 |
+} |