From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/zinnia/
Date: Mon, 11 Sep 2017 18:39:34 +0000 (UTC) [thread overview]
Message-ID: <1505155157.828da35a1d13377a7160a22a880bf257df73c6a3.floppym@gentoo> (raw)
commit: 828da35a1d13377a7160a22a880bf257df73c6a3
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Mon Sep 11 17:38:12 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Sep 11 18:39:17 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=828da35a
app-i18n/zinnia: Port to EAPI="6". Minor cleanup.
app-i18n/zinnia/zinnia-0.06-r3.ebuild | 67 ++++++++++++++++++++++-------------
1 file changed, 42 insertions(+), 25 deletions(-)
diff --git a/app-i18n/zinnia/zinnia-0.06-r3.ebuild b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
index a012fde380d..ce1ffaefc08 100644
--- a/app-i18n/zinnia/zinnia-0.06-r3.ebuild
+++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
@@ -1,41 +1,50 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-PERL_EXPORT_PHASE_FUNCTIONS=no
-inherit perl-module eutils flag-o-matic toolchain-funcs autotools-utils
+EAPI="6"
-DESCRIPTION="Online hand recognition system with machine learning"
-HOMEPAGE="http://zinnia.sourceforge.net/"
+inherit autotools flag-o-matic perl-module toolchain-funcs
+
+DESCRIPTION="Zinnia - Online hand recognition system with machine learning"
+HOMEPAGE="https://taku910.github.io/zinnia/ https://github.com/taku910/zinnia https://sourceforge.net/projects/zinnia/"
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}-flags.patch"
"${FILESDIR}/${P}-perl_build.patch"
"${FILESDIR}/${P}-c++-2011.patch"
)
-AUTOTOOLS_AUTORECONF=yes
+
+DOCS=(AUTHORS)
src_prepare() {
- autotools-utils_src_prepare
- if use perl ; then
- pushd "${S}/perl" >/dev/null
+ default
+ mv configure.in configure.ac || die
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+ eautoreconf
+
+ if use perl; then
+ pushd perl > /dev/null
PATCHES=()
perl-module_src_prepare
- popd >/dev/null
+ popd > /dev/null
fi
}
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
src_compile() {
- autotools-utils_src_compile
- if use perl ; then
- pushd "${S}"/perl >/dev/null
+ default
+
+ if use perl; then
+ pushd 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
@@ -46,23 +55,31 @@ src_compile() {
append-ldflags "-L${S}/.libs"
emake \
+ CC="$(tc-getCXX)" \
+ LD="$(tc-getCXX)" \
+ OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}" \
LDDLFLAGS="-shared" \
- OTHERLDFLAGS="${LDFLAGS}" \
- CC="$(tc-getCXX)" LD="$(tc-getCXX)" \
- OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}"
- popd >/dev/null
+ OTHERLDFLAGS="${LDFLAGS}"
+ popd > /dev/null
fi
}
+src_test() {
+ default
+}
+
src_install() {
- autotools-utils_src_install
+ default
+ find "${D}" -name "*.la" -delete || die
- if use perl ; then
- pushd "${S}/perl" >/dev/null
+ if use perl; then
+ pushd perl > /dev/null
perl-module_src_install
- popd >/dev/null
+ popd > /dev/null
fi
- # Curiously ChangeLog & NEWS are left uncompressed
- dohtml doc/*.html doc/*.css
+ (
+ docinto html
+ dodoc doc/*.css doc/*.html
+ )
}
next reply other threads:[~2017-09-11 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 18:39 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-11 18:39 [gentoo-commits] repo/gentoo:master commit in: app-i18n/zinnia/ Mike Gilbert
2018-03-15 19:23 Sergei Trofimovich
2020-07-04 13:53 Mike Gilbert
2021-11-03 12:47 Akinori Hattori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1505155157.828da35a1d13377a7160a22a880bf257df73c6a3.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox