| 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/udns/udns-0.1.ebuild,v 1.6 2012/02/14 21:44:47 ranger Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
inherit eutils multilib |
| 7 |
|
| 8 |
DESCRIPTION="Async-capable DNS stub resolver library" |
| 9 |
HOMEPAGE="http://www.corpit.ru/mjt/udns.html" |
| 10 |
SRC_URI="http://www.corpit.ru/mjt/udns/${P}.tar.gz" |
| 11 |
|
| 12 |
LICENSE="LGPL-2.1" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86 ~x86-fbsd" |
| 15 |
IUSE="ipv6 static" |
| 16 |
|
| 17 |
# Yes, this doesn't depend on any other library beside "system" set |
| 18 |
DEPEND="" |
| 19 |
RDEPEND="" |
| 20 |
|
| 21 |
src_prepare() { |
| 22 |
epatch "${FILESDIR}/${PN}-0.1-respect-LDFLAGS.patch" |
| 23 |
} |
| 24 |
|
| 25 |
src_configure() { |
| 26 |
# Uses non-standard configure script, econf doesn't work |
| 27 |
./configure $(use_enable ipv6) || die "Configure failed" |
| 28 |
} |
| 29 |
|
| 30 |
src_compile() { |
| 31 |
emake sharedlib |
| 32 |
} |
| 33 |
|
| 34 |
src_install() { |
| 35 |
dolib.so libudns.so.0 || die "dolib.so failed" |
| 36 |
dosym libudns.so.0 "/usr/$(get_libdir)/libudns.so" || die "dosym failed" |
| 37 |
|
| 38 |
insinto /usr/include |
| 39 |
doins udns.h |
| 40 |
|
| 41 |
doman udns.3 |
| 42 |
dodoc TODO NOTES |
| 43 |
} |