blob: 4df2c7d5eddd20b69fb79f3945b9b506fdad4684 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/tkvoice/tkvoice-1.5.ebuild,v 1.3 2007/05/06 08:16:05 genone Exp $
DESCRIPTION="TkVoice - Voice mail and Fax frontend program"
HOMEPAGE="http://tkvoice.netfirms.com"
SRC_URI="http://tkvoice.netfirms.com/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="dev-lang/tk
media-libs/netpbm
media-sound/sox
net-dialup/mgetty"
src_unpack() {
unpack ${A}
sed -i -e "s:/usr/local/etc:/etc:g; s:/usr/local/bin:/usr/bin:g; s:/usr/local/tkvoice:/usr/lib/${P}:g" \
"${S}/tkvoice" "${S}/TCL/tkvfaq.tcl" "${S}/TCL/tkvsetupvoice.tcl"
sed -i -e "s:set STARTDIR .*:set STARTDIR /usr/lib/${P}:" \
"${S}/tkvoice"
}
src_install()
{
exeinto /usr/lib/${P}
doexe ${PN}
dodir /usr/bin
dosym /usr/lib/${P}/${PN} /usr/bin/${PN}
insinto /usr/lib/${P}/TCL
doins TCL/*
insinto /usr/lib/${P}/image
doins image/*
insinto /usr/share/applications
doins "${FILESDIR}/${PN}.desktop"
insinto /usr/share/pixmaps
doins ${PN}.xpm
dodoc BUGS FAQ README TODO
}
pkg_postinst()
{
elog "${P} has been installed. Run /usr/bin/${PN}."
elog "For more information, see the home page, ${HOMEPAGE}"
elog "or consult the documentation for this program as well as"
elog "for mgetty/vgetty."
}
|