| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libyaml/libyaml-0.1.4.ebuild,v 1.14 2013/01/26 16:37:51 grobian Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools-utils eutils libtool
|
| 8 |
|
| 9 |
MY_P="${P/lib}"
|
| 10 |
|
| 11 |
DESCRIPTION="YAML 1.1 parser and emitter written in C"
|
| 12 |
HOMEPAGE="http://pyyaml.org/wiki/LibYAML"
|
| 13 |
SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="MIT"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 18 |
IUSE="doc examples test static-libs"
|
| 19 |
|
| 20 |
S="${WORKDIR}/${MY_P}"
|
| 21 |
|
| 22 |
DOCS="README"
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
# conditionally remove tests
|
| 26 |
if ! use test; then
|
| 27 |
sed -i -e 's: tests::g' Makefile* || die
|
| 28 |
fi
|
| 29 |
elibtoolize # for FreeMiNT
|
| 30 |
}
|
| 31 |
|
| 32 |
src_install() {
|
| 33 |
autotools-utils_src_install
|
| 34 |
use doc && dohtml -r doc/html/.
|
| 35 |
if use examples ; then
|
| 36 |
docompress -x /usr/share/doc/${PF}/examples
|
| 37 |
insinto /usr/share/doc/${PF}/examples
|
| 38 |
doins tests/example-*.c
|
| 39 |
fi
|
| 40 |
}
|