/[gentoo-x86]/net-misc/unison/unison-2.12.0-r1.ebuild
Gentoo

Contents of /net-misc/unison/unison-2.12.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 16 20:46:11 2008 UTC (11 years, 6 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove unused versions
(Portage version: 2.1.5.5)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/unison/unison-2.12.0-r1.ebuild,v 1.2 2005/09/21 21:35:41 mattam Exp $
4
5 inherit eutils
6
7 IUSE="gtk static debug threads"
8
9 DESCRIPTION="Two-way cross-platform file synchronizer"
10 HOMEPAGE="http://www.cis.upenn.edu/~bcpierce/unison/"
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 ppc ~amd64 sparc"
14
15 DEPEND=">=dev-lang/ocaml-3.04
16 gtk? ( >=dev-ml/lablgtk-2.2 )"
17
18 RDEPEND="gtk? ( >=dev-ml/lablgtk-2.2
19 || ( net-misc/x11-ssh-askpass net-misc/gtk2-ssh-askpass ) )"
20
21 SRC_URI="mirror://gentoo/${P}.tar.gz"
22
23 src_unpack() {
24 unpack ${P}.tar.gz
25
26 # Fix for coreutils change of tail syntax
27 cd ${S}
28 sed -i -e 's/tail -1/tail -n 1/' Makefile.OCaml
29 # Fix for bad button behavior
30 epatch ${FILESDIR}/unison-2.12.0-gtk2-bug.patch
31 }
32
33 src_compile() {
34 local myconf
35
36 if use threads; then
37 myconf="$myconf THREADS=true"
38 fi
39
40 if use static; then
41 myconf="$myconf STATIC=true"
42 fi
43
44 if use debug; then
45 myconf="$myconf DEBUGGING=true"
46 fi
47
48 if use gtk; then
49 myconf="$myconf UISTYLE=gtk2"
50 else
51 myconf="$myconf UISTYLE=text"
52 fi
53
54 make $myconf CFLAGS="" || die "error making unsion"
55 }
56
57 src_install () {
58 # install manually, since it's just too much
59 # work to force the Makefile to do the right thing.
60 dobin unison || die
61 dodoc BUGS.txt CONTRIB COPYING INSTALL NEWS \
62 README ROADMAP.txt TODO.txt || die
63 }

  ViewVC Help
Powered by ViewVC 1.1.20