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

EAPI=5

inherit autotools flag-o-matic git-r3 multilib

DESCRIPTION="Free as in freedom Skype replacement"
HOMEPAGE="http://tox.im/"
EGIT_REPO_URI="git://github.com/irungentoo/ProjectTox-Core.git
			   https://github.com/irungentoo/ProjectTox-Core.git"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="-nacl ncurses server +sodium static-libs test"
REQUIRED_USE="^^ ( nacl sodium )"

RDEPEND="virtual/ffmpeg
		 nacl?    ( virtual/nacl )
		 ncurses? ( sys-libs/ncurses )
		 sodium?  ( dev-libs/libsodium )"
DEPEND="${RDEPEND}
		test? ( dev-libs/check )"

DOCS="README.md"

src_prepare() {
	eautoreconf
}

src_configure() {
	append-ldflags -Wl,-z,noexecstack
	econf \
		$(use_enable nacl) \
		$(use_enable server dht-bootstrap-daemon) \
		$(use_enable test tests) \
		$(use_enable ncurses ntox) \
		$(use_enable static-libs static) \
		--with-nacl-headers=/usr/include/nacl \
		--with-nacl-libs=/usr/$(get_libdir)/nacl
}

src_install() {
	default
	prune_libtool_files
}

pkg_postinst() {
	elog "DHT node list is available via https://gist.github.com/Proplex/6124860"
	elog "or in #tox @ irc.freenode.org"
}