/[gentoo-x86]/dev-libs/libdnet/libdnet-1.12.ebuild
Gentoo

Contents of /dev-libs/libdnet/libdnet-1.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 10 18:17:08 2012 UTC (21 months ago) by jer
Branch: MAIN
Changes since 1.2: +5 -4 lines
With RESTRICT=test it is useful to know about the dependency, but it need not be set. Remove useless trunk/ subdir.

(Portage version: 2.2.0_alpha136/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libdnet/libdnet-1.12.ebuild,v 1.2 2012/10/10 16:50:05 jer Exp $
4
5 EAPI=4
6
7 AT_M4DIR="config"
8 AUTOTOOLS_AUTORECONF=1
9 AUTOTOOLS_IN_SOURCE_BUILD=1
10 PYTHON_DEPEND="python? 2"
11
12 inherit autotools-utils eutils python
13
14 DESCRIPTION="simplified, portable interface to several low-level networking routines"
15 HOMEPAGE="http://code.google.com/p/libdnet/"
16 SRC_URI="http://libdnet.googlecode.com/files/${P}.tgz
17 ipv6? ( http://fragroute-ipv6.googlecode.com/files/${P}.ipv6-1.patch.gz )"
18
19 LICENSE="LGPL-2"
20 SLOT="0"
21 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
22 IUSE="ipv6 python static-libs test"
23
24 #DEPEND="test? ( dev-libs/check )"
25 RESTRICT="test"
26
27 DOCS=( README THANKS TODO )
28
29 pkg_setup() {
30 if use python; then
31 python_set_active_version 2
32 python_pkg_setup
33 fi
34 }
35
36 src_prepare() {
37 # Useless copy
38 rm -r trunk/ || die
39
40 sed -i -e 's/libcheck.a/libcheck.so/g' configure.in || die "sed failed"
41 use ipv6 && epatch "${WORKDIR}/${P}.ipv6-1.patch"
42 autotools-utils_src_prepare
43 }
44
45 src_configure() {
46 econf \
47 $(use_with python) \
48 $(use_enable static-libs static)
49 }

  ViewVC Help
Powered by ViewVC 1.1.20