summaryrefslogtreecommitdiff
blob: 4b3af5068f675b8fc5243266bfffb542bb540582 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/fujiplay/fujiplay-1.33.ebuild,v 1.13 2007/01/28 05:12:30 genone Exp $

inherit eutils

DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)"
HOMEPAGE="http://topo.math.u-psud.fr/~bousch/fujiplay.html"
SRC_URI="http://topo.math.u-psud.fr/~bousch/fujiplay.tgz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="virtual/libc"
RDEPEND=""

S=${WORKDIR}

src_unpack() {
	unpack ${PN}.tgz
	cd ${S}
	epatch ${FILESDIR}/${P}-unterminated-strings.patch
}

src_install() {
	dobin fujiplay yycc2ppm || die
	dodoc README fujiplay.lsm mx700-commands.html
	emake all clean
}

pkg_postinst() {
	ln -s /dev/ttyS0 /dev/fujifilm
	elog "A symbolic link /dev/ttyS0 -> /dev/fujifilm was created."
	elog "You may want to create a serial group to allow non-root"
	elog "members R/W access to the serial device."
	echo
}

pkg_postrm() {
	rm -f /dev/fujifilm
	echo
	elog "The symbolic link /dev/fujifilm was removed."
	echo
}