| 1 |
# Copyright 1999-2010 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/adns/adns-1.4.ebuild,v 1.11 2009/07/01 14:32:44 armin76 Exp $
|
| 4 |
|
| 5 |
inherit eutils multilib toolchain-funcs
|
| 6 |
|
| 7 |
DESCRIPTION="Advanced, easy to use, asynchronous-capable DNS client library and utilities"
|
| 8 |
HOMEPAGE="http://www.chiark.greenend.org.uk/~ian/adns/"
|
| 9 |
SRC_URI="ftp://ftp.chiark.greenend.org.uk/users/ian/adns/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="LGPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
DEPEND=""
|
| 17 |
RDEPEND=""
|
| 18 |
|
| 19 |
src_compile() {
|
| 20 |
CC=$(tc-getCC) econf || die "econf failed"
|
| 21 |
emake AR=$(tc-getAR) RANLIB=$(tc-getRANLIB) || die "emake failed"
|
| 22 |
}
|
| 23 |
|
| 24 |
src_install () {
|
| 25 |
dodir /usr/{include,bin,$(get_libdir)}
|
| 26 |
emake prefix="${D}"/usr libdir="${D}"/usr/$(get_libdir) install || die "emake install failed"
|
| 27 |
dodoc README TODO changelog "${FILESDIR}"/README.security
|
| 28 |
dohtml *.html
|
| 29 |
}
|
| 30 |
|
| 31 |
pkg_postinst() {
|
| 32 |
ewarn "$(<${FILESDIR}/README.security)"
|
| 33 |
}
|