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

Contents of /net-misc/unison/unison-2.13.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Sep 21 16:32:39 2005 UTC (14 years, 2 months ago) by mattam
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Fix for gtk2 deprecation, update latest stable and unstable versions.
(Portage version: 2.0.51.22-r1)

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.13.0.ebuild,v 1.4 2005/08/13 20:04:00 mattam Exp $
4
5 inherit eutils
6
7 IUSE="gtk gtk2 doc 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? ( gtk2? ( >=dev-ml/lablgtk-2.2 ) !gtk2? ( =dev-ml/lablgtk-1.2* ) )"
17
18 RDEPEND="gtk? ( gtk2? ( >=dev-ml/lablgtk-2.2 ) !gtk2? ( =dev-ml/lablgtk-1.2* )
19 || ( net-misc/x11-ssh-askpass net-misc/gtk2-ssh-askpass ) )"
20
21 SRC_URI="http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}.tar.gz
22 doc? ( http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.pdf
23 http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.html )"
24
25 pkg_setup() {
26 ewarn "This is a beta release, use at your very own risk"
27 }
28
29 src_unpack() {
30 unpack ${P}.tar.gz
31
32 # Fix for coreutils change of tail syntax
33 cd ${S}
34 sed -i -e 's/tail -1/tail -n 1/' Makefile.OCaml
35 }
36
37 src_compile() {
38 local myconf
39
40 if use threads; then
41 myconf="$myconf THREADS=true"
42 fi
43
44 if use static; then
45 myconf="$myconf STATIC=true"
46 fi
47
48 if use debug; then
49 myconf="$myconf DEBUGGING=true"
50 fi
51
52 if use gtk; then
53 if use gtk2; then
54 myconf="$myconf UISTYLE=gtk2"
55 else
56 myconf="$myconf UISTYLE=gtk"
57 fi
58 else
59 myconf="$myconf UISTYLE=text"
60 fi
61
62 make $myconf CFLAGS="" || die "error making unsion"
63 }
64
65 src_install () {
66 # install manually, since it's just too much
67 # work to force the Makefile to do the right thing.
68 dobin unison || die
69 dodoc BUGS.txt CONTRIB COPYING INSTALL NEWS \
70 README ROADMAP.txt TODO.txt || die
71
72 if use doc; then
73 dohtml ${DISTDIR}/${P}-manual.html || die
74 dodoc ${DISTDIR}/${P}-manual.pdf || die
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20