/[gentoo-x86]/net-libs/libasyncns/libasyncns-0.8-r2.ebuild
Gentoo

Contents of /net-libs/libasyncns/libasyncns-0.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Jun 17 17:30:51 2012 UTC (3 years, 1 month ago) by flameeyes
Branch: MAIN
Changes since 1.9: +2 -2 lines
Remove old; fix append-cflags warning (thanks to David J Cozatt in bug #420491).

(Portage version: 2.2.0_alpha110/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/net-libs/libasyncns/libasyncns-0.8-r2.ebuild,v 1.9 2012/04/23 07:35:45 heroxbd Exp $
4
5 EAPI=3
6 inherit eutils libtool flag-o-matic
7
8 DESCRIPTION="C library for executing name service queries asynchronously."
9 HOMEPAGE="http://0pointer.de/lennart/projects/libasyncns/"
10 SRC_URI="http://0pointer.de/lennart/projects/libasyncns/${P}.tar.gz"
11
12 SLOT="0"
13
14 LICENSE="LGPL-2.1"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~amd64-linux ~x86-linux"
16
17 IUSE="doc debug"
18
19 RDEPEND=""
20 DEPEND="doc? ( app-doc/doxygen )"
21
22 src_prepare() {
23 # fix libdir in pkgconfig file
24 epatch "${FILESDIR}/${P}-libdir.patch"
25 elibtoolize
26 }
27
28 src_configure() {
29 # libasyncns uses assert()
30 use debug || append-cppflags -DNDEBUG
31
32 econf \
33 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
34 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
35 --disable-dependency-tracking \
36 --disable-lynx \
37 --disable-static
38 }
39
40 src_compile() {
41 emake || die "emake failed"
42
43 if use doc; then
44 doxygen doxygen/doxygen.conf || die "doxygen failed"
45 fi
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install || die "emake install failed"
50 find "${D}" -name '*.la' -delete
51
52 if use doc; then
53 docinto apidocs
54 dohtml html/*
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20