blob: 0a597e98c1369867d55041efe2a86f0dc8077db0 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1 flag-o-matic
DESCRIPTION="Syck is an extension for reading and writing YAML swiftly in popular scripting languages"
HOMEPAGE="http://whytheluckystiff.net/syck/"
SRC_URI="http://rubyforge.org/frs/download.php/4492/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="php python"
DEPEND="python? ( !dev-python/pysyck )"
RDEPEND="${DEPEND}"
PDEPEND="php? ( dev-php/pecl-syck
!=dev-libs/syck-0.55-r1 )"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}/syck-0.55-64bit.patch"
}
src_configure() {
append-flags -fPIC
econf
}
src_compile() {
emake
if use python; then
pushd ext/python > /dev/null
distutils-r1_src_compile
popd > /dev/null
fi
}
src_install() {
emake DESTDIR=${D} install
if use python; then
pushd ext/python > /dev/null
distutils-r1_src_install
popd > /dev/null
fi
distutils-r1_python_install_all
}
|