Gentoo Archives: gentoo-commits

From: "Lennart Kolmodin (kolmodin)" <kolmodin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/darcs: ChangeLog darcs-2.1.0.ebuild
Date: Sun, 19 Oct 2008 14:51:11
Message-Id: E1KrZca-00048D-Lv@stork.gentoo.org
1 kolmodin 08/10/19 14:51:08
2
3 Modified: ChangeLog
4 Added: darcs-2.1.0.ebuild
5 Log:
6 Bump dev-util/darcs to 2.1.0
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.99 dev-util/darcs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/ChangeLog?rev=1.99&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/ChangeLog?rev=1.99&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/ChangeLog?r1=1.98&r2=1.99
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/darcs/ChangeLog,v
19 retrieving revision 1.98
20 retrieving revision 1.99
21 diff -u -r1.98 -r1.99
22 --- ChangeLog 18 Oct 2008 18:05:50 -0000 1.98
23 +++ ChangeLog 19 Oct 2008 14:51:08 -0000 1.99
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/darcs
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/darcs/ChangeLog,v 1.98 2008/10/18 18:05:50 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/darcs/ChangeLog,v 1.99 2008/10/19 14:51:08 kolmodin Exp $
29 +
30 +*darcs-2.1.0 (19 Oct 2008)
31 +
32 + 19 Oct 2008; Lennart Kolmodin <kolmodin@g.o> +darcs-2.1.0.ebuild:
33 + Version bump
34
35 18 Oct 2008; nixnut <nixnut@g.o> darcs-2.0.2.ebuild:
36 Stable on ppc wrt bug 239368
37
38
39
40 1.1 dev-util/darcs/darcs-2.1.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/darcs-2.1.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/darcs-2.1.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: darcs-2.1.0.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-util/darcs/darcs-2.1.0.ebuild,v 1.1 2008/10/19 14:51:08 kolmodin Exp $
50
51 inherit base autotools eutils
52
53 DESCRIPTION="David's Advanced Revision Control System is yet another replacement for CVS"
54 HOMEPAGE="http://darcs.net"
55 MY_P0="${P/_rc/rc}"
56 MY_P="${MY_P0/_pre/pre}"
57 SRC_URI="http://darcs.net/${MY_P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
62 IUSE="doc"
63
64 DEPEND=">=net-misc/curl-7.10.2
65 >=dev-lang/ghc-6.2.2
66 =dev-haskell/quickcheck-1*
67 dev-haskell/mtl
68 dev-haskell/html
69 dev-haskell/http
70 dev-haskell/parsec
71 dev-haskell/regex-compat
72 sys-apps/diffutils
73 dev-haskell/network
74 dev-haskell/filepath
75 sys-libs/zlib
76 doc? ( virtual/latex-base
77 >=dev-tex/latex2html-2002.2.1_pre20041025-r1 )"
78
79 RDEPEND=">=net-misc/curl-7.10.2
80 virtual/mta
81 dev-libs/gmp"
82
83 S=${WORKDIR}/${MY_P}
84
85 pkg_setup() {
86 if use doc && ! built_with_use -o dev-tex/latex2html png gif; then
87 eerror "Building darcs with USE=\"doc\" requires that"
88 eerror "dev-tex/latex2html is built with at least one of"
89 eerror "USE=\"png\" and USE=\"gif\"."
90 die "USE=doc requires dev-tex/latex2html with USE=\"png\" or USE=\"gif\""
91 fi
92 }
93
94 src_unpack() {
95 base_src_unpack
96
97 cd "${S}/tools"
98 epatch "${FILESDIR}/${PN}-1.0.9-bashcomp.patch"
99
100 # On ia64 we need to tone down the level of inlining so we don't break some
101 # of the low level ghc/gcc interaction gubbins.
102 use ia64 && sed -i 's/-funfolding-use-threshold20//' "${S}/GNUmakefile"
103
104 cd "${S}"
105 # Since we've patched the build system:
106 eautoreconf
107 }
108
109 src_compile() {
110 # use --enable-bytestring?
111 econf $(use_with doc docs) \
112 --disable-haskeline \
113 --disable-haskell-zlib \
114 || die "configure failed"
115 emake all || die "make failed"
116 }
117
118 src_test() {
119 make test
120 }
121
122 src_install() {
123 make DESTDIR="${D}" installbin || die "installation failed"
124 # The bash completion should be installed in /usr/share/bash-completion/
125 # rather than /etc/bash_completion.d/ . Fixes bug #148038.
126 insinto "/usr/share/bash-completion" \
127 && doins "${D}/etc/bash_completion.d/darcs" \
128 && rm "${D}/etc/bash_completion.d/darcs" \
129 && rmdir "${D}/etc/bash_completion.d" \
130 && rmdir "${D}/etc" \
131 || die "fixing location of darcs bash completion failed"
132 if use doc; then
133 dodoc "${S}/doc/manual/darcs.ps" || die "installing darcs.ps failed"
134 dohtml -r "${S}/doc/manual/"* || die "installing darcs manual failed"
135 fi
136 }
137
138 pkg_postinst() {
139 ewarn "NOTE: in order for the darcs send command to work properly,"
140 ewarn "you must properly configure your mail transport agent to relay"
141 ewarn "outgoing mail. For example, if you are using ssmtp, please edit"
142 ewarn "/etc/ssmtp/ssmtp.conf with appropriate values for your site."
143 }