1 |
gienah 12/11/25 06:24:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: darcs-2.8.3-r1.ebuild |
5 |
Log: |
6 |
Thanks to slyfox for patching darcs-2.8.3 for ghc 7.6.1 |
7 |
|
8 |
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 618E971F) |
9 |
|
10 |
Revision Changes Path |
11 |
1.37 dev-vcs/darcs/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/darcs/ChangeLog?rev=1.37&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/darcs/ChangeLog?rev=1.37&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/darcs/ChangeLog?r1=1.36&r2=1.37 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-vcs/darcs/ChangeLog,v |
20 |
retrieving revision 1.36 |
21 |
retrieving revision 1.37 |
22 |
diff -u -r1.36 -r1.37 |
23 |
--- ChangeLog 25 Sep 2012 14:19:45 -0000 1.36 |
24 |
+++ ChangeLog 25 Nov 2012 06:24:06 -0000 1.37 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-vcs/darcs |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/ChangeLog,v 1.36 2012/09/25 14:19:45 nativemad Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/ChangeLog,v 1.37 2012/11/25 06:24:06 gienah Exp $ |
30 |
+ |
31 |
+*darcs-2.8.3-r1 (25 Nov 2012) |
32 |
+ |
33 |
+ 25 Nov 2012; Mark Wright <gienah@g.o> +darcs-2.8.3-r1.ebuild, |
34 |
+ +files/darcs-2.8.1-tar-0.4.patch, +files/darcs-2.8.3-ghc-7.6.patch.bz2, |
35 |
+ +files/darcs-2.8.3-hack-for-haskeline-0.7-breaks-non-utf8.patch: |
36 |
+ Thanks to slyfox for patching darcs-2.8.3 for ghc 7.6.1 |
37 |
|
38 |
25 Sep 2012; Andreas Schuerch <nativemad@g.o> darcs-2.8.0.ebuild: |
39 |
x86 stable, see bug 421351 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-vcs/darcs/darcs-2.8.3-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/darcs/darcs-2.8.3-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/darcs/darcs-2.8.3-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: darcs-2.8.3-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/darcs/darcs-2.8.3-r1.ebuild,v 1.1 2012/11/25 06:24:06 gienah Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
# ebuild generated by hackport 0.3.9999 |
57 |
|
58 |
CABAL_FEATURES="bin lib profile haddock hoogle hscolour" |
59 |
inherit haskell-cabal bash-completion-r1 |
60 |
|
61 |
DESCRIPTION="a distributed, interactive, smart revision control system" |
62 |
HOMEPAGE="http://darcs.net/" |
63 |
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
SLOT="0/${PV}" |
67 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
68 |
IUSE="doc test" |
69 |
|
70 |
RDEPEND="=dev-haskell/extensible-exceptions-0.1*:=[profile?] |
71 |
>=dev-haskell/hashed-storage-0.5.6:=[profile?] |
72 |
<dev-haskell/hashed-storage-0.6:=[profile?] |
73 |
>=dev-haskell/haskeline-0.6.3:=[profile?] |
74 |
<dev-haskell/haskeline-0.8:=[profile?] |
75 |
=dev-haskell/html-1.0*:=[profile?] |
76 |
=dev-haskell/mmap-0.5*:=[profile?] |
77 |
>=dev-haskell/mtl-1.0:=[profile?] |
78 |
<dev-haskell/mtl-2.2:=[profile?] |
79 |
>=dev-haskell/parsec-2.0:=[profile?] |
80 |
<dev-haskell/parsec-3.2:=[profile?] |
81 |
=dev-haskell/random-1.0*:=[profile?] |
82 |
>=dev-haskell/regex-compat-0.95.1:=[profile?] |
83 |
>=dev-haskell/tar-0.3:=[profile?] |
84 |
<dev-haskell/tar-0.5:=[profile?] |
85 |
=dev-haskell/terminfo-0.3*:=[profile?] |
86 |
>=dev-haskell/text-0.11.0.6:=[profile?] |
87 |
<dev-haskell/text-0.12.0.0:=[profile?] |
88 |
>=dev-haskell/vector-0.7:=[profile?] |
89 |
>=dev-haskell/zlib-0.5.1.0:=[profile?] |
90 |
<dev-haskell/zlib-0.6.0.0:=[profile?] |
91 |
>=dev-lang/ghc-6.10.4:= |
92 |
net-misc/curl" |
93 |
DEPEND="${RDEPEND} |
94 |
>=dev-haskell/cabal-1.8 |
95 |
doc? ( virtual/latex-base |
96 |
|| ( dev-tex/latex2html[png] |
97 |
dev-tex/latex2html[gif] |
98 |
) |
99 |
) |
100 |
test? ( >=dev-haskell/cmdlib-0.2.1[profile?] |
101 |
<dev-haskell/cmdlib-0.4[profile?] |
102 |
>=dev-haskell/shellish-0.1.3[profile?] |
103 |
<dev-haskell/shellish-0.2[profile?] |
104 |
dev-haskell/test-framework[profile?] |
105 |
dev-haskell/test-framework-hunit[profile?] |
106 |
dev-haskell/test-framework-quickcheck2[profile?] |
107 |
) |
108 |
" |
109 |
|
110 |
src_prepare() { |
111 |
rm "${S}/tests/add_permissions.sh" || die "Could not rm add_permissions.sh" |
112 |
rm "${S}/tests/send-output-v1.sh" || die "Could not rm send-output-v1.sh" |
113 |
rm "${S}/tests/send-output-v2.sh" || die "Could not rm send-output-v2.sh" |
114 |
rm "${S}/tests/utf8.sh" || die "Could not rm utf8.sh" |
115 |
cabal_chdeps \ |
116 |
'tar == 0.3.*' 'tar >= 0.3 && < 0.5' \ |
117 |
'tar == 0.3.*' 'tar >= 0.3 && < 0.5' \ |
118 |
'haskeline >= 0.6.3 && < 0.7' 'haskeline >= 0.6.3 && < 0.8' |
119 |
|
120 |
epatch "${FILESDIR}/${PN}-2.8.1-tar-0.4.patch" |
121 |
epatch "${FILESDIR}"/${P}-hack-for-haskeline-0.7-breaks-non-utf8.patch |
122 |
|
123 |
# ghc-7.6 |
124 |
cabal_chdeps \ |
125 |
'base >= 4.5 && < 4.6' 'base >= 4.5 && < 4.7' \ |
126 |
'bytestring >= 0.9.0 && < 0.10' 'bytestring >= 0.9.0 && < 0.11' \ |
127 |
'containers >= 0.1 && < 0.5' 'containers >= 0.1 && < 0.6' \ |
128 |
'directory >= 1.0.0.0 && < 1.2.0.0' 'directory >= 1.0.0.0 && < 1.3.0.0' \ |
129 |
'unix >= 1.0 && < 2.6' 'unix >= 1.0 && < 2.7' \ |
130 |
'ghc >= 6.10 && < 7.6' 'ghc >= 6.10 && < 7.8' |
131 |
epatch "${FILESDIR}"/${P}-ghc-7.6.patch.bz2 |
132 |
} |
133 |
|
134 |
src_configure() { |
135 |
# checking whether ghc supports -threaded flag |
136 |
# Beware: http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#options-linker |
137 |
# contains: 'The ability to make a foreign call that does not block all other Haskell threads.' |
138 |
# It might have interactivity impact. |
139 |
|
140 |
threaded_flag="" |
141 |
if $(ghc-getghc) --info | grep "Support SMP" | grep -q "YES"; then |
142 |
threaded_flag="--flags=threaded" |
143 |
einfo "$P will be built with threads support" |
144 |
else |
145 |
threaded_flag="--flags=-threaded" |
146 |
einfo "$P will be built without threads support" |
147 |
fi |
148 |
|
149 |
# Use curl for net stuff to avoid strict version dep on HTTP and network |
150 |
cabal_src_configure \ |
151 |
--flags=curl \ |
152 |
--flags=-http \ |
153 |
--flags=color \ |
154 |
--flags=terminfo \ |
155 |
--flags=mmap \ |
156 |
$threaded_flag \ |
157 |
$(cabal_flag test) |
158 |
} |
159 |
|
160 |
src_test() { |
161 |
# run cabal test from haskell-cabal |
162 |
haskell-cabal_src_test || die "cabal test failed" |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
cabal_src_install |
167 |
newbashcomp "${S}/contrib/darcs_completion" "${PN}" |
168 |
|
169 |
# fixup perms in such an an awkward way |
170 |
mv "${ED}/usr/share/man/man1/darcs.1" "${S}/darcs.1" || die "darcs.1 not found" |
171 |
doman "${S}/darcs.1" || die "failed to register darcs.1 as a manpage" |
172 |
} |
173 |
|
174 |
pkg_postinst() { |
175 |
ghc-package_pkg_postinst |
176 |
|
177 |
ewarn "NOTE: in order for the darcs send command to work properly," |
178 |
ewarn "you must properly configure your mail transport agent to relay" |
179 |
ewarn "outgoing mail. For example, if you are using ssmtp, please edit" |
180 |
ewarn "${EPREFIX}/etc/ssmtp/ssmtp.conf with appropriate values for your site." |
181 |
} |