blob: 3a81dbe3eae427dab2da6180ca587c1225ac9857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit distutils eutils
MY_P=${P/pysyck/PySyck}
DESCRIPTION="PySyck is aimed to update the current Python bindings for Syck. The new bindings provide a wrapper for the Syck emitter and give access to YAML representation graphs."
HOMEPAGE="http://pyyaml.org"
SRC_URI="http://pyyaml.org/download/${PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-libs/syck-0.55"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
pkg_setup() {
if has_version ">=dev-libs/syck-0.55-r1" && built_with_use dev-libs/syck python ; then
eerror "dev-libs/syck was already compiled with python bindings."
die "Recompile dev-libs/syck with USE=\"-python\" to prevent collisions!"
fi
}
src_test() {
cd "${S}/tests"
python test_syck.py
einfo "Some tests may have failed due to pending bugs in dev-libs/syck"
}
|