summaryrefslogtreecommitdiff
path: root/app-i18n/zinnia
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-i18n/zinnia
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-i18n/zinnia')
-rw-r--r--app-i18n/zinnia/Manifest1
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-perl.patch13
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-ricedown.patch20
-rw-r--r--app-i18n/zinnia/metadata.xml8
-rw-r--r--app-i18n/zinnia/zinnia-0.06-r3.ebuild68
5 files changed, 110 insertions, 0 deletions
diff --git a/app-i18n/zinnia/Manifest b/app-i18n/zinnia/Manifest
new file mode 100644
index 00000000000..9a0e78ebae5
--- /dev/null
+++ b/app-i18n/zinnia/Manifest
@@ -0,0 +1 @@
+DIST zinnia-0.06.tar.gz 457415 SHA256 ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b SHA512 b9a44dc3664302269c4d8481225964a3188c1921f5af7f136fdccdc452917f6ff934884e266436a0f1e0a32af19d3bea5f5e4416e694a653983039a513277b53 WHIRLPOOL 3d0822a5dfaa46ad5dab144888e10f2a0d473e12dcb0f3754e8d55d93cfed19b5ded44c9ca2f2b16451450e05c8b6e5819bf5789d546eb0955f91b37179fe413
diff --git a/app-i18n/zinnia/files/zinnia-0.06-perl.patch b/app-i18n/zinnia/files/zinnia-0.06-perl.patch
new file mode 100644
index 00000000000..3688a91ad9c
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-perl.patch
@@ -0,0 +1,13 @@
+Index: zinnia-0.06/perl/Makefile.PL
+===================================================================
+--- zinnia-0.06.orig/perl/Makefile.PL
++++ zinnia-0.06/perl/Makefile.PL
+@@ -4,7 +4,7 @@ WriteMakefile(
+ 'CC' => 'c++',
+ 'LD' => 'c++',
+ 'INC' => '',
+- 'LIBS' => '-lzinnia',
++ 'LIBS' => '-L../.libs -lzinnia',
+ # 'VERSION' => '0.1',
+ 'OBJECT' => 'zinnia_wrap.o'
+ );
diff --git a/app-i18n/zinnia/files/zinnia-0.06-ricedown.patch b/app-i18n/zinnia/files/zinnia-0.06-ricedown.patch
new file mode 100644
index 00000000000..397d0b0688a
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-ricedown.patch
@@ -0,0 +1,20 @@
+Index: zinnia-0.06/configure.in
+===================================================================
+--- zinnia-0.06.orig/configure.in
++++ zinnia-0.06/configure.in
+@@ -59,15 +59,6 @@ AC_ARG_WITH(pkgconfigdir,
+ AC_SUBST([pkgconfigdir])
+ AC_MSG_NOTICE([pkgconfig directory is ${pkgconfigdir}])
+
+-dnl
+-dnl check gcc
+-dnl
+-if test -n "$GCC"; then
+- CFLAGS="-O3 -Wall"
+- CXXFLAGS="-O3 -Wall"
+- AC_MSG_RESULT($ac_cv_x86_sse)
+-fi
+-
+ AC_DEFUN(ADD_CC_FLAG, [
+ AC_MSG_CHECKING(whether ${CC-cc} accepts $1)
+ AC_LANG_SAVE
diff --git a/app-i18n/zinnia/metadata.xml b/app-i18n/zinnia/metadata.xml
new file mode 100644
index 00000000000..500ba13f450
--- /dev/null
+++ b/app-i18n/zinnia/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">zinnia</remote-id>
+ </upstream>
+</pkgmetadata>
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 00000000000..4517a348ce4
--- /dev/null
+++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}