summaryrefslogtreecommitdiff
blob: 3b4621da6cb90732e62291c415197668808f2ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/pilot-mailsync/pilot-mailsync-0.9.1.ebuild,v 1.3 2007/09/16 19:22:31 philantrop Exp $

inherit flag-o-matic eutils

DESCRIPTION="An application to transfer outgoing mail from and deliver incoming mail to a Palm OS device."
HOMEPAGE="http://wissrech.iam.uni-bonn.de/people/garcke/pms/"
SRC_URI="http://wissrech.iam.uni-bonn.de/people/garcke/pms/${P}.tar.gz"

LICENSE="MPL-1.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ssl gnome"

DEPEND="ssl? ( dev-libs/openssl )
	gnome? ( >=app-pda/gnome-pilot-2 )
	~app-pda/pilot-link-0.11.8"

MAKEOPTS="${MAKEOPTS} -j1"

src_unpack() {
	unpack ${A}
	cd "${WORKDIR}"
	if use gnome; then
		mv ${P} ${P}-gpilot
		unpack ${A}
	fi
	cd "${S}"
	# Fixes bug 151351.
	epatch "${FILESDIR}/${P}-glibc.patch"
}

src_compile() {
	# bug 45755
	#append-flags -fPIC

	cd "${S}"
	econf $(use_enable ssl)
	if use gnome; then
		cd "${S}-gpilot"
		econf $(use_enable ssl) --enable-gpilot
	fi

	cd "${S}"
	emake || die "make failed"
	if use gnome; then
		cd "${S}-gpilot"
		emake || die "gpilot plugin make failed"
	fi

}

src_install() {
	cd "${S}"
	make RPM_BUILD_ROOT="${D}" install || die "install failed"
	dodoc README INSTALL docs/* || die "installing docs failed"

	if use gnome; then
		cd "${S}-gpilot"
		insinto /usr/share/gnome-pilot/conduits/
		doins mailsync.conduit
		insinto /usr/lib/gnome-pilot/conduits/
		doins .libs/libgnome_mailsync_conduit.so
	fi
}