OLD | NEW |
(Empty) | |
| 1 # Copyright 1999-2011 Gentoo Foundation |
| 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/zinnia/zinnia-0.06-r1.ebuild,v 1.2 2
011/04/07 23:02:45 flameeyes Exp $ |
| 4 |
| 5 EAPI="3" |
| 6 |
| 7 inherit perl-module flag-o-matic toolchain-funcs autotools |
| 8 |
| 9 DESCRIPTION="Online hand recognition system with machine learning" |
| 10 HOMEPAGE="http://zinnia.sourceforge.net/" |
| 11 SRC_URI="mirror://sourceforge/zinnia/${P}.tar.gz" |
| 12 |
| 13 LICENSE="BSD" |
| 14 SLOT="0" |
| 15 KEYWORDS="~amd64 ~x86" |
| 16 #IUSE="perl python ruby" |
| 17 IUSE="perl" |
| 18 |
| 19 src_prepare() { |
| 20 epatch "${FILESDIR}/${P}-ricedown.patch" |
| 21 epatch "${FILESDIR}/${P}-perl.patch" |
| 22 eautoreconf |
| 23 |
| 24 if use perl ; then |
| 25 ( |
| 26 cd "${S}/perl" |
| 27 perl-module_src_prepare |
| 28 ) |
| 29 fi |
| 30 } |
| 31 |
| 32 src_configure() { |
| 33 econf |
| 34 } |
| 35 |
| 36 src_compile() { |
| 37 base_src_compile |
| 38 |
| 39 if use perl ; then |
| 40 ( |
| 41 cd "${S}/perl" |
| 42 |
| 43 # We need to run this here as otherwise it won't pick up
the |
| 44 # just-built -lzinnia and cause the extension to have |
| 45 # undefined symbols. |
| 46 perl-module_src_configure |
| 47 |
| 48 append-cppflags "-I${S}" |
| 49 append-ldflags "-L${S}/.libs" |
| 50 |
| 51 emake \ |
| 52 LDDLFLAGS="-shared" \ |
| 53 OTHERLDFLAGS="${LDFLAGS}" \ |
| 54 CC="$(tc-getCXX)" LD="$(tc-getCXX)" \ |
| 55 OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}" \ |
| 56 || die |
| 57 ) |
| 58 fi |
| 59 } |
| 60 |
| 61 # no tests present |
| 62 src_test() { :; } |
| 63 |
| 64 src_install() { |
| 65 emake DESTDIR="${D}" install || die |
| 66 find "${D}" -name '*.la' -delete |
| 67 |
| 68 if use perl ; then |
| 69 ( |
| 70 cd "${S}/perl" |
| 71 perl-module_src_install |
| 72 ) |
| 73 fi |
| 74 |
| 75 dodoc AUTHORS ChangeLog NEWS README || die |
| 76 dohtml doc/*.html doc/*.css || die |
| 77 } |
OLD | NEW |