| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/torsocks/torsocks-1.2-r1.ebuild,v 1.2 2011/12/27 01:53:51 blueness Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit autotools eutils multilib
|
| 8 |
|
| 9 |
DESCRIPTION="Use most socks-friendly applications with Tor."
|
| 10 |
HOMEPAGE="http://code.google.com/p/torsocks"
|
| 11 |
SRC_URI="http://${PN}.googlecode.com/files/${PN}-1.2.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="static-libs"
|
| 17 |
|
| 18 |
# We do not depend on tor which might be running on a different box
|
| 19 |
DEPEND=""
|
| 20 |
RDEPEND="${DEPEND}"
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
epatch "${FILESDIR}"/fix-docdir.patch
|
| 24 |
eautoreconf
|
| 25 |
}
|
| 26 |
|
| 27 |
src_configure() {
|
| 28 |
econf --docdir=/usr/share/doc/${PF} \
|
| 29 |
$(use_enable static-libs static)
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
emake DESTDIR="${D}" install
|
| 34 |
|
| 35 |
dodoc README TODO INSTALL ChangeLog
|
| 36 |
|
| 37 |
#Remove libtool .la files
|
| 38 |
cd "${D}"/usr/$(get_libdir)/torsocks
|
| 39 |
rm -f *.la
|
| 40 |
}
|