| 1 |
blueness |
1.1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
ago |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/torsocks/torsocks-1.2-r2.ebuild,v 1.1 2012/03/08 18:41:25 blueness Exp $ |
| 4 |
blueness |
1.1 |
|
| 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 |
ago |
1.2 |
KEYWORDS="amd64 ~x86" |
| 16 |
blueness |
1.1 |
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}"/suppress-warning-msgs.patch |
| 24 |
|
|
epatch "${FILESDIR}"/fix-docdir.patch |
| 25 |
|
|
eautoreconf |
| 26 |
|
|
} |
| 27 |
|
|
|
| 28 |
|
|
src_configure() { |
| 29 |
|
|
econf --docdir=/usr/share/doc/${PF} \ |
| 30 |
|
|
$(use_enable static-libs static) |
| 31 |
|
|
} |
| 32 |
|
|
|
| 33 |
|
|
src_install() { |
| 34 |
|
|
emake DESTDIR="${D}" install |
| 35 |
|
|
|
| 36 |
|
|
dodoc README TODO INSTALL ChangeLog |
| 37 |
|
|
|
| 38 |
|
|
#Remove libtool .la files |
| 39 |
|
|
cd "${D}"/usr/$(get_libdir)/torsocks |
| 40 |
|
|
rm -f *.la |
| 41 |
|
|
} |