summaryrefslogtreecommitdiff
blob: b560f9a6300ff3eaaef43414208b8da91de8dabf (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eutils

SDK_V="3.0.4.669"
MY_P="${PN}_${PV}"

DESCRIPTION="A part of the Palm Mojo SDK for communication with and rootaccess to the webOS based devices"
HOMEPAGE="http://developer.palm.com/"
SRC_URI="amd64? (
	https://cdn.downloads.palm.com/sdkdownloads/${SDK_V}/sdkBinaries/${MY_P}_amd64.deb )
	x86? (
	http://cdn.downloads.palm.com/sdkdownloads/${SDK_V}/sdkBinaries/${MY_P}_i386.deb )"

LICENSE="PalmSDK"
SLOT="0"
KEYWORDS="~amd64 ~x86 -*"
IUSE=""
# May not be necessary.
RESTRICT="mirror"

RDEPEND="virtual/libusb:0"

S=${WORKDIR}

QA_PRESTRIPPED="/opt/palm-novacom/novacom
	/opt/palm-novacom/novacomd"

src_unpack() {
	unpack ${A}
	unpack ./data.tar.gz
}

src_install() {
	exeinto opt/${PN}
	doexe opt/Palm/novacom/novacom{,d} || die

	dobin opt/Palm/novacom/novaterm || die
	newbin "${FILESDIR}/${PN}-novacom.sh" novacom || die

	newsbin "${FILESDIR}/${PN}-novacomd.sh" novacomd || die

	newinitd "${FILESDIR}/${PN}-initd" novacom || die
}

pkg_postinst() {
	einfo "To use, start the novacom daemon;"
	einfo "  /etc/init.d/novacom start"
	einfo "Then attach your Palm device with Developer Mode enabled,"
	einfo "select 'Just Charge' and run novaterm"
}