diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-04-07 23:02:08 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-04-07 23:02:08 +0000 |
commit | 06e63d38d7404e0eec8e39a7c85fa521169214d7 (patch) | |
tree | f7bb0b6956942104bfa1cd8d7de7e6a4bd083146 /app-i18n/zinnia/zinnia-0.06-r1.ebuild | |
parent | QA: only try to set up active python version when python USE flag is enabled. (diff) | |
download | gentoo-2-06e63d38d7404e0eec8e39a7c85fa521169214d7.tar.gz gentoo-2-06e63d38d7404e0eec8e39a7c85fa521169214d7.tar.bz2 gentoo-2-06e63d38d7404e0eec8e39a7c85fa521169214d7.zip |
Revision bump: there are not tests (close bug #348577); fix building with USE=perl if zinnia was not installed before (bug #356039); rice the build down to respect flags and not use -O3 instead.
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
Diffstat (limited to 'app-i18n/zinnia/zinnia-0.06-r1.ebuild')
-rw-r--r-- | app-i18n/zinnia/zinnia-0.06-r1.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/app-i18n/zinnia/zinnia-0.06-r1.ebuild b/app-i18n/zinnia/zinnia-0.06-r1.ebuild new file mode 100644 index 000000000000..d4907bee2a18 --- /dev/null +++ b/app-i18n/zinnia/zinnia-0.06-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/zinnia/zinnia-0.06-r1.ebuild,v 1.1 2011/04/07 23:02:07 flameeyes Exp $ + +EAPI="3" + +inherit perl-module flag-o-matic toolchain-funcs autotools + +DESCRIPTION="Online hand recognition system with machine learning" +HOMEPAGE="http://zinnia.sourceforge.net/" +SRC_URI="mirror://sourceforge/zinnia/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="perl python ruby" +IUSE="perl" + +src_prepare() { + epatch "${FILESDIR}/${P}-ricedown.patch" + epatch "${FILESDIR}/${P}-perl.patch" + eautoreconf + + if use perl ; then + ( + cd "${S}/perl" + perl-module_src_prepare + ) + fi +} + +src_configure() { + econf +} + +src_compile() { + base_src_compile + + if use perl ; then + ( + cd "${S}/perl" + + # We need to run this here as otherwise it won't pick up the + # just-built -lzinnia and cause the extension to have + # undefined symbols. + perl-module_src_configure + + append-cppflags "-I${S}" + append-ldflags "-L${S}/.libs" + + emake \ + LDDLFLAGS="-shared" \ + OTHERLDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCXX)" LD="$(tc-getCXX)" \ + OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}" \ + || die + ) + fi +} + +# no tests present +src_test() { :; } + +src_install() { + emake DESTDIR="${D}" install || die + + if use perl ; then + ( + cd "${S}/perl" + perl-module_src_install + ) + fi + + dodoc AUTHORS ChangeLog NEWS README || die + dohtml doc/*.html doc/*.css || die +} |