You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
10 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
10 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit autotools eutils multilib versionator
|
||
|
|
||
|
MY_PV="$(replace_version_separator 3 -)"
|
||
|
MY_PF="${PN}-${MY_PV}"
|
||
|
S=${WORKDIR}/${MY_PF}
|
||
|
|
||
|
DESCRIPTION="Use most socks-friendly applications with Tor"
|
||
9 years ago
|
HOMEPAGE="https://github.com/dgoulet/torsocks"
|
||
10 years ago
|
SRC_URI="https://github.com/dgoulet/torsocks/archive/v${MY_PV}.tar.gz -> ${MY_PF}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
|
IUSE="static-libs"
|
||
|
|
||
|
# We do not depend on tor which might be running on a different box
|
||
|
DEPEND=""
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -i -e "/dist_doc_DATA/s/^/#/" Makefile.am doc/Makefile.am || die
|
||
10 years ago
|
|
||
|
# Disable tests requiring network access.
|
||
|
sed -i -e '/^\.\/test_dns$/d' tests/test_list || \
|
||
|
die "failed to disable network tests"
|
||
|
|
||
10 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf $(use_enable static-libs static)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
dodoc ChangeLog README.md TODO doc/notes/DEBUG doc/socks/{SOCKS5,socks-extensions.txt}
|
||
|
|
||
|
#Remove libtool .la files
|
||
9 years ago
|
cd "${D}"/usr/$(get_libdir)/torsocks || die
|
||
10 years ago
|
rm -f *.la
|
||
|
}
|