summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2014-01-05 14:01:35 +0000
committerNaohiro Aota <naota@gentoo.org>2014-01-05 14:01:35 +0000
commita7a484278775604c19c94d1454b57fa2aafd26b9 (patch)
treef1a45459c27a2bae309b921013f625e78a54c204 /app-i18n
parentversion bump (diff)
downloadgentoo-2-a7a484278775604c19c94d1454b57fa2aafd26b9.tar.gz
gentoo-2-a7a484278775604c19c94d1454b57fa2aafd26b9.tar.bz2
gentoo-2-a7a484278775604c19c94d1454b57fa2aafd26b9.zip
Drop *.a files; Rewrite using autotools-utils.eclass #483248
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/zinnia/ChangeLog9
-rw-r--r--app-i18n/zinnia/zinnia-0.06-r3.ebuild67
2 files changed, 74 insertions, 2 deletions
diff --git a/app-i18n/zinnia/ChangeLog b/app-i18n/zinnia/ChangeLog
index 3708c9444c04..1906c0d00ada 100644
--- a/app-i18n/zinnia/ChangeLog
+++ b/app-i18n/zinnia/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-i18n/zinnia
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/zinnia/ChangeLog,v 1.8 2013/09/10 08:31:38 idella4 Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/zinnia/ChangeLog,v 1.9 2014/01/05 14:01:35 naota Exp $
+
+*zinnia-0.06-r3 (05 Jan 2014)
+
+ 05 Jan 2014; Naohiro Aota <naota@gentoo.org> +zinnia-0.06-r3.ebuild:
+ Drop *.a files; Rewrite using autotools-utils.eclass #483248
*zinnia-0.06-r2 (10 Sep 2013)
diff --git a/app-i18n/zinnia/zinnia-0.06-r3.ebuild b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
new file mode 100644
index 000000000000..164bf5e179b3
--- /dev/null
+++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/zinnia/zinnia-0.06-r3.ebuild,v 1.1 2014/01/05 14:01:35 naota Exp $
+
+EAPI=5
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit perl-module eutils flag-o-matic toolchain-funcs autotools-utils
+
+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"
+# Package warrants IUSE doc
+IUSE="perl static-libs"
+DOCS=( AUTHORS ChangeLog NEWS README )
+PATCHES=(
+ "${FILESDIR}/${P}-ricedown.patch"
+ "${FILESDIR}/${P}-perl.patch"
+)
+AUTOTOOLS_AUTORECONF=yes
+
+src_prepare() {
+ autotools-utils_src_prepare
+ if use perl ; then
+ pushd "${S}/perl" >/dev/null
+ PATCHES=( ) perl-module_src_prepare
+ popd >/dev/null
+ fi
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ if use perl ; then
+ pushd "${S}"/perl >/dev/null
+
+ # 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}"
+ popd >/dev/null
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use perl ; then
+ pushd "${S}/perl" >/dev/null
+ perl-module_src_install
+ popd >/dev/null
+ fi
+
+ # Curiously ChangeLog & NEWS are left uncompressed
+ dohtml doc/*.html doc/*.css
+}