| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/socat/socat-1.7.2.1.ebuild,v 1.9 2012/07/26 03:26:39 ottxor Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/socat/socat-1.7.2.1.ebuild,v 1.10 2012/10/26 02:41:32 vapier Exp $ |
| 4 | |
4 | |
| 5 | EAPI="4" |
5 | EAPI="4" |
| 6 | |
6 | |
| 7 | inherit eutils flag-o-matic autotools |
7 | inherit eutils flag-o-matic |
| 8 | |
8 | |
| 9 | DESCRIPTION="Multipurpose relay (SOcket CAT)" |
9 | DESCRIPTION="Multipurpose relay (SOcket CAT)" |
| 10 | HOMEPAGE="http://www.dest-unreach.org/socat/" |
10 | HOMEPAGE="http://www.dest-unreach.org/socat/" |
| 11 | MY_P=${P/_beta/-b} |
11 | MY_P=${P/_beta/-b} |
| 12 | S="${WORKDIR}/${MY_P}" |
12 | S="${WORKDIR}/${MY_P}" |
| … | |
… | |
| 23 | tcpd? ( sys-apps/tcp-wrappers ) |
23 | tcpd? ( sys-apps/tcp-wrappers ) |
| 24 | " |
24 | " |
| 25 | RDEPEND="${DEPEND}" |
25 | RDEPEND="${DEPEND}" |
| 26 | |
26 | |
| 27 | src_prepare() { |
27 | src_prepare() { |
| 28 | epatch "${FILESDIR}"/${PN}-1.7.2.0-cross-compile.patch |
28 | epatch "${FILESDIR}"/${PN}-1.7.2.1-long-long.patch #436164 |
| 29 | eautoreconf |
29 | eautoreconf |
| 30 | } |
30 | } |
| 31 | |
31 | |
| 32 | src_configure() { |
32 | src_configure() { |
| 33 | filter-flags -Wno-error* |
33 | filter-flags '-Wno-error*' #293324 |
| 34 | econf \ |
34 | econf \ |
| 35 | $(use_enable ssl openssl) \ |
35 | $(use_enable ssl openssl) \ |
| 36 | $(use_enable readline) \ |
36 | $(use_enable readline) \ |
| 37 | $(use_enable ipv6 ip6) \ |
37 | $(use_enable ipv6 ip6) \ |
| 38 | $(use_enable tcpd libwrap) |
38 | $(use_enable tcpd libwrap) |
| … | |
… | |
| 41 | src_test() { |
41 | src_test() { |
| 42 | TMPDIR="${T}" emake test |
42 | TMPDIR="${T}" emake test |
| 43 | } |
43 | } |
| 44 | |
44 | |
| 45 | src_install() { |
45 | src_install() { |
| 46 | emake install DESTDIR="${D}" |
46 | default |
| 47 | |
47 | |
| 48 | dodoc BUGREPORTS CHANGES DEVELOPMENT \ |
48 | dodoc BUGREPORTS CHANGES DEVELOPMENT \ |
| 49 | FAQ FILES PORTING README SECURITY VERSION |
49 | FAQ FILES PORTING README SECURITY VERSION |
| 50 | docinto examples |
50 | docinto examples |
| 51 | dodoc EXAMPLES *.sh |
51 | dodoc EXAMPLES *.sh |