summaryrefslogtreecommitdiff
blob: 81e26720b59c4feac78eb70afdc9c88d90658342 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ponyprog/ponyprog-2.06c.ebuild,v 1.12 2008/06/20 20:24:44 calchan Exp $

S=${WORKDIR}
DESCRIPTION="EEprom e Pic Programmer"
HOMEPAGE="http://www.lancos.com/ppwin95.html"
SRC_URI="http://www.lancos.com/e2p/V2_06/${P}-rh70.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=""
RDEPEND="x11-libs/libICE
	x11-libs/libSM
	x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXt
	x11-libs/libXmu
	x11-libs/libXaw
	x11-libs/libXpm
	sys-libs/lib-compat"

src_install () {
	dodir /etc/env.d
	echo "LDPATH='/opt/ponyprog/lib'" > ${D}/etc/env.d/40ponyprog || die
	doenvd etc/env.d/40ponyprog

	einfo "Installing binaries"

	into /opt/${PN}
	dobin "${S}"/usr/local/bin/ponyprog2000
	dodir /opt/${PN}/lib
	dolib "${S}"/usr/lib/*

	dodir /opt/bin
	dosym /opt/${PN}/bin/ponyprog2000 /opt/bin/ponyprog
}

pkg_postinst() {
	elog "To use the COM port in user mode (not as root) you need"
	elog "make sure you have the rights to write /dev/ttyS? devices "
	elog "and /var/lock directory."
	elog
	elog "To use the LPT port in user mode (not as root) you need a 2.4.x kernel "
	elog "with ppdev, parport and parport_pc compiled in as modules. You need the "
	elog "rights to write /dev/parport? devices."
	elog
	elog "You can use /opt/bin/ponyprog"
}