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.0.2.ebuild
Date: Mon, 25 Aug 2008 20:25:18
Message-Id: E1KXicl-0005cY-HL@stork.gentoo.org
1 kolmodin 08/08/25 20:25:15
2
3 Modified: ChangeLog
4 Added: darcs-2.0.2.ebuild
5 Log:
6 Add dev-util/darcs-2.0.2, first in the 2.x series.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.88 dev-util/darcs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/ChangeLog?rev=1.88&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/ChangeLog?rev=1.88&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/ChangeLog?r1=1.87&r2=1.88
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/darcs/ChangeLog,v
19 retrieving revision 1.87
20 retrieving revision 1.88
21 diff -u -r1.87 -r1.88
22 --- ChangeLog 29 Jun 2008 11:02:14 -0000 1.87
23 +++ ChangeLog 25 Aug 2008 20:25:15 -0000 1.88
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.87 2008/06/29 11:02:14 klausman Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/darcs/ChangeLog,v 1.88 2008/08/25 20:25:15 kolmodin Exp $
29 +
30 +*darcs-2.0.2 (25 Aug 2008)
31 +
32 + 25 Aug 2008; Lennart Kolmodin <kolmodin@g.o> +darcs-2.0.2.ebuild:
33 + Bump to 2.0.2, first ebuild in the 2.x series.
34
35 29 Jun 2008; Tobias Klausmann <klausman@g.o>
36 darcs-1.1.0_pre1.ebuild:
37
38
39
40 1.1 dev-util/darcs/darcs-2.0.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/darcs-2.0.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/darcs/darcs-2.0.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: darcs-2.0.2.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.0.2.ebuild,v 1.1 2008/08/25 20:25:15 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 ~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/parsec
70 dev-haskell/regex-compat
71 sys-apps/diffutils
72 doc? ( virtual/latex-base
73 >=dev-tex/latex2html-2002.2.1_pre20041025-r1 )"
74
75 RDEPEND=">=net-misc/curl-7.10.2
76 virtual/mta
77 dev-libs/gmp"
78
79 S=${WORKDIR}/${MY_P}
80
81 pkg_setup() {
82 if use doc && ! built_with_use -o dev-tex/latex2html png gif; then
83 eerror "Building darcs with USE=\"doc\" requires that"
84 eerror "dev-tex/latex2html is built with at least one of"
85 eerror "USE=\"png\" and USE=\"gif\"."
86 die "USE=doc requires dev-tex/latex2html with USE=\"png\" or USE=\"gif\""
87 fi
88 }
89
90 src_unpack() {
91 base_src_unpack
92
93 cd "${S}/tools"
94 epatch "${FILESDIR}/${PN}-1.0.9-bashcomp.patch"
95
96 # On ia64 we need to tone down the level of inlining so we don't break some
97 # of the low level ghc/gcc interaction gubbins.
98 use ia64 && sed -i 's/-funfolding-use-threshold20//' "${S}/GNUmakefile"
99
100 cd "${S}"
101 # Since we've patched the build system:
102 eautoreconf
103 }
104
105 src_compile() {
106 # use --enable-bytestring?
107 econf $(use_with doc docs) \
108 || die "configure failed"
109 emake all || die "make failed"
110 }
111
112 src_test() {
113 make test
114 }
115
116 src_install() {
117 make DESTDIR="${D}" installbin || die "installation failed"
118 # The bash completion should be installed in /usr/share/bash-completion/
119 # rather than /etc/bash_completion.d/ . Fixes bug #148038.
120 insinto "/usr/share/bash-completion" \
121 && doins "${D}/etc/bash_completion.d/darcs" \
122 && rm "${D}/etc/bash_completion.d/darcs" \
123 && rmdir "${D}/etc/bash_completion.d" \
124 && rmdir "${D}/etc" \
125 || die "fixing location of darcs bash completion failed"
126 if use doc; then
127 dodoc "${S}/doc/manual/darcs.ps" || die "installing darcs.ps failed"
128 dohtml -r "${S}/doc/manual/"* || die "installing darcs manual failed"
129 fi
130 }
131
132 pkg_postinst() {
133 ewarn "NOTE: in order for the darcs send command to work properly,"
134 ewarn "you must properly configure your mail transport agent to relay"
135 ewarn "outgoing mail. For example, if you are using ssmtp, please edit"
136 ewarn "/etc/ssmtp/ssmtp.conf with appropriate values for your site."
137 }