summaryrefslogtreecommitdiff
blob: 83ad86955a8154abdf2a5e42a0791ee523ff6910 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit debian eutils

GIZMO_VER="1.0.0.18-1_debian"
SIPPHONE_VER2="0.78.20060211"
SIPPHONE_VER="${SIPPHONE_VER2}-1"

DESCRIPTION="Gizmo is a P2P-VoiceIP client"
HOMEPAGE="http://www.gizmoproject.com/"
SRC_URI="http://www.gizmoproject.com/GizmoDownload/gizmo-project_${GIZMO_VER}_i386.deb
	http://www.gizmoproject.com/GizmoDownload/libsipphoneapi_alsa_${SIPPHONE_VER}_i386.deb"
LICENSE="gizmoproject-eula"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="mirror strip"
QA_TEXTREL_x86="opt/gizmo/libsipphoneapi.so.0.78.20060211"

RDEPEND="dev-libs/atk
	dev-libs/expat
	dev-libs/glib
	dev-libs/libxml2
	dev-libs/openssl
	gnome-base/gconf
	gnome-base/libglade
	gnome-base/orbit
	media-libs/alsa-lib
	media-libs/fontconfig
	media-libs/freetype
	media-libs/tiff
	net-misc/mDNSResponder
	>x11-libs/gtk+-2
	|| (
		( x11-libs/libX11
		x11-libs/libXext
		x11-libs/libXft
		x11-libs/libXrender )
		virtual/x11 )
	x11-libs/pango
	media-libs/jpeg
	media-libs/libpng
	net-misc/curl
	sys-libs/zlib"

S=${WORKDIR}

src_install() {
	exeinto /opt/gizmo
	doexe usr/bin/gizmo usr/lib/libsipphone{sslops,}api.so.${SIPPHONE_VER2}

	dosym libsipphonesslopsapi.so.${SIPPHONE_VER2} /opt/gizmo/libsipphonesslopsapi.so
	dosym libsipphoneapi.so.${SIPPHONE_VER2} /opt/gizmo/libsipphoneapi.so

	# compat symlinks
	dosym /usr/$(get_libdir)/libexpat.so /opt/gizmo/libexpat.so.1
	dosym /usr/$(get_libdir)/libtiff.so /opt/gizmo/libtiff.so.4

	dodoc usr/share/doc/gizmo-project/*
	docinto libsipphoneapi
	dodoc usr/share/doc/libsipphoneapi/*

	insinto /opt/gizmo
	doins -r usr/share/libsipphoneapi
	insinto /opt/gizmo/data
	doins -r usr/share/gizmo/*

	# make gizmo use /opt
	dodir /usr/share
	dosym /opt/gizmo/data /usr/share/gizmo
	dosym /opt/gizmo/libsipphoneapi /usr/share/libsipphoneapi

	make_wrapper ${PN} ./${PN} /opt/${PN} . || die "make_wrapper failed"

	domenu usr/share/applications/gizmo.png
	doicon usr/share/pixmaps/gizmo.png
}