summaryrefslogtreecommitdiff
blob: 6859d7de6165472871fcfb4e26d0754b3460bde3 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/jpilot-syncmal/jpilot-syncmal-0.80.ebuild,v 1.2 2008/02/10 14:56:24 philantrop Exp $

WANT_AUTOMAKE="1.9"

inherit multilib autotools

DESCRIPTION="Syncmal plugin for jpilot"
SRC_URI="http://jasonday.home.att.net/code/syncmal/${P}.tar.gz"
HOMEPAGE="http://jasonday.home.att.net/code/syncmal/syncmal.html"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~ppc ~x86"
IUSE=""

RDEPEND=">=app-pda/jpilot-0.99.9"
DEPEND="${RDEPEND}
		>=app-pda/pilot-link-0.12.2
		>=x11-libs/gtk+-2.6.10-r1
		>=dev-libs/libmal-0.44"

src_unpack() {
	unpack ${A}
	sed -i -e "s:/lib/jpilot/plugins:/$(get_libdir)/jpilot/plugins:" \
		"${S}/Makefile.am" || die "sed'ing Makefile.am failed"

	cd "${S}"
	eautomake
	econf --libdir="/usr/$(get_libdir)" || die "configure failed"
}

src_compile() {
	emake -j1 || die "make failed"
}

src_install() {
	emake install DESTDIR="${D}" || die "installation failed"
}