1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PERL_EXPORT_PHASE_FUNCTIONS=no
7 inherit perl-module eutils flag-o-matic toolchain-funcs autotools-utils
9 DESCRIPTION="Online hand recognition system with machine learning"
10 HOMEPAGE="http://zinnia.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/zinnia/${P}.tar.gz"
16 # Package warrants IUSE doc
17 IUSE="perl static-libs"
18 DOCS=( AUTHORS ChangeLog NEWS README )
20 "${FILESDIR}/${P}-ricedown.patch"
21 "${FILESDIR}/${P}-perl.patch"
23 AUTOTOOLS_AUTORECONF=yes
26 autotools-utils_src_prepare
28 pushd "${S}/perl" >/dev/null
30 perl-module_src_prepare
36 autotools-utils_src_compile
38 pushd "${S}"/perl >/dev/null
40 # We need to run this here as otherwise it won't pick up the
41 # just-built -lzinnia and cause the extension to have
43 perl-module_src_configure
45 append-cppflags "-I${S}"
46 append-ldflags "-L${S}/.libs"
50 OTHERLDFLAGS="${LDFLAGS}" \
51 CC="$(tc-getCXX)" LD="$(tc-getCXX)" \
52 OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}"
58 autotools-utils_src_install
61 pushd "${S}/perl" >/dev/null
62 perl-module_src_install
66 # Curiously ChangeLog & NEWS are left uncompressed
67 dohtml doc/*.html doc/*.css