1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils multilib versionator
9 MY_PV="$(replace_version_separator 3 -)"
10 MY_PF="${PN}-${MY_PV}"
13 DESCRIPTION="Use most socks-friendly applications with Tor"
14 HOMEPAGE="http://github.com/dgoulet/torsocks"
15 SRC_URI="https://github.com/dgoulet/torsocks/archive/v${MY_PV}.tar.gz -> ${MY_PF}.tar.gz"
19 KEYWORDS="~amd64 ~arm ~x86"
22 # We do not depend on tor which might be running on a different box
27 sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die
29 # Disable tests requiring network access.
30 sed -i -e '/^\.\/test_dns$/d' tests/test_list || \
31 die "failed to disable network tests"
37 econf $(use_enable static-libs static)
43 dodoc ChangeLog README.md TODO doc/notes/DEBUG doc/socks/{SOCKS5,socks-extensions.txt}
45 #Remove libtool .la files
46 cd "${D}"/usr/$(get_libdir)/torsocks