diff options
Diffstat (limited to 'app-i18n/zinnia')
-rw-r--r-- | app-i18n/zinnia/Manifest | 6 | ||||
-rw-r--r-- | app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch | 11 | ||||
-rw-r--r-- | app-i18n/zinnia/files/zinnia-0.06-flags.patch | 18 | ||||
-rw-r--r-- | app-i18n/zinnia/files/zinnia-0.06-perl_build.patch | 11 | ||||
-rw-r--r-- | app-i18n/zinnia/metadata.xml | 12 | ||||
-rw-r--r-- | app-i18n/zinnia/zinnia-0.06-r3.ebuild | 85 |
6 files changed, 143 insertions, 0 deletions
diff --git a/app-i18n/zinnia/Manifest b/app-i18n/zinnia/Manifest new file mode 100644 index 000000000000..653bc788d69b --- /dev/null +++ b/app-i18n/zinnia/Manifest @@ -0,0 +1,6 @@ +AUX zinnia-0.06-c++-2011.patch 235 BLAKE2B 5a2dfa58d70b76198c8101e7a2f7b925e26dd8b5b29242990e84bc239dd5d7d7e62c554eba7b7f47c96273b5126d59bb8908518dacafe8b991528d43f9732e94 SHA512 23d856c2d14b28d4a2863767f1888701eba2693f5b7dda20bdb7959311d7ce875bb2df2776c576979d7f5dfb8106086a472af7a5e37b3972f8e16e2cc4ed1d6f +AUX zinnia-0.06-flags.patch 367 BLAKE2B 8f43fefa0822909054eaae843d98f51e0c0b007f95b546b768b2024bcce348139d0b8f738d8e3f64640267e8c2a5de600e034fd0f480bdd87f2c8855550b0d42 SHA512 f43f238cc037293a7914a00bf364068f977f5e4451e6a23959b7a6346f20d1cf5ae20d61c9e031dae0897f582ae62e3a8fb8cd77de72fe474b010ebbcc2d10b4 +AUX zinnia-0.06-perl_build.patch 336 BLAKE2B f8eb4d1ac570bad3a0cbb9fe2c09ac5e826f895741a7bf4b1e82ac439e03153936a915f4e24980d066905d9621c00a4892a65bd394e02423dee2995e319213aa SHA512 f3eeea5a6d23c07e50dc99d66b5799c5a03ff42d16afa43b97c8ff1ee9f63efe45864ba4eddb3c1bf69c38a632a4469a5f823ce13d1f57299ae027a1f698c9d0 +DIST zinnia-0.06.tar.gz 457415 BLAKE2B 3c401735fec424030dd9f8d6d14f90a83cd6ad5eb8e0ec1b0d2d15285cecf14c793043fb9ad0982d6614e48bdbe913360d2f3933bb2e1a623c7920536cb3bd14 SHA512 b9a44dc3664302269c4d8481225964a3188c1921f5af7f136fdccdc452917f6ff934884e266436a0f1e0a32af19d3bea5f5e4416e694a653983039a513277b53 +EBUILD zinnia-0.06-r3.ebuild 1688 BLAKE2B e88e53b8dad245801176ee03631aaeb3c50df4572a0660cf7bbc879bcf1b34f1ea485584078449661b644684e01af634f97e5cfbfb9da030571eaa194a74cb73 SHA512 d47e14f0f2908eea885b58928ec54fc6c948733a7fcbef477b232100fcfad556620e65529041c8f36d0b8c4ab9bab88c065464f9714675069d1327d9032cc316 +MISC metadata.xml 364 BLAKE2B b36ea1c73d260d631f7861eca392d8b1797e35cb5ce0ed7afaa2e327eebb9fc77d5beafe910121f154d4f542757b37f955dc4fd730b0d021e1db733322a87704 SHA512 5e5c6833463859dbfd6561adce41426f607b435301a01a6e7f2bd8cb598a89632e607706c52fef903d96f2e0094d9c33fdfb69c2384455e451d634ecbee62842 diff --git a/app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch b/app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch new file mode 100644 index 000000000000..0ef6ae40e434 --- /dev/null +++ b/app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch @@ -0,0 +1,11 @@ +--- /trainer.cpp ++++ /trainer.cpp +@@ -103,7 +103,7 @@ + if (!fn) { + return false; + } +- x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn)); ++ x_.push_back(std::make_pair(y, fn)); + return true; + } + diff --git a/app-i18n/zinnia/files/zinnia-0.06-flags.patch b/app-i18n/zinnia/files/zinnia-0.06-flags.patch new file mode 100644 index 000000000000..80442ee4880f --- /dev/null +++ b/app-i18n/zinnia/files/zinnia-0.06-flags.patch @@ -0,0 +1,18 @@ +--- /configure.in ++++ /configure.in +@@ -59,15 +59,6 @@ + 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/files/zinnia-0.06-perl_build.patch b/app-i18n/zinnia/files/zinnia-0.06-perl_build.patch new file mode 100644 index 000000000000..4da9e1eeb900 --- /dev/null +++ b/app-i18n/zinnia/files/zinnia-0.06-perl_build.patch @@ -0,0 +1,11 @@ +--- /perl/Makefile.PL ++++ /perl/Makefile.PL +@@ -4,7 +4,7 @@ + 'CC' => 'c++', + 'LD' => 'c++', + 'INC' => '', +- 'LIBS' => '-lzinnia', ++ 'LIBS' => '-L../.libs -lzinnia', + # 'VERSION' => '0.1', + 'OBJECT' => 'zinnia_wrap.o' + ); diff --git a/app-i18n/zinnia/metadata.xml b/app-i18n/zinnia/metadata.xml new file mode 100644 index 000000000000..0601843f122a --- /dev/null +++ b/app-i18n/zinnia/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <upstream> + <remote-id type="github">taku910/zinnia</remote-id> + <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 000000000000..7133d88b29bd --- /dev/null +++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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 ~ppc64 x86" +IUSE="perl static-libs" + +PATCHES=( + "${FILESDIR}/${P}-flags.patch" + "${FILESDIR}/${P}-perl_build.patch" + "${FILESDIR}/${P}-c++-2011.patch" +) + +DOCS=(AUTHORS) + +src_prepare() { + 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 + fi +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_compile() { + 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 + # undefined symbols. + perl-module_src_configure + + append-cppflags "-I${S}" + append-ldflags "-L${S}/.libs" + + emake \ + CC="$(tc-getCXX)" \ + LD="$(tc-getCXX)" \ + OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}" \ + LDDLFLAGS="-shared" \ + OTHERLDFLAGS="${LDFLAGS}" + popd > /dev/null + fi +} + +src_test() { + default +} + +src_install() { + default + find "${D}" -name "*.la" -delete || die + + if use perl; then + pushd perl > /dev/null + perl-module_src_install + popd > /dev/null + fi + + ( + docinto html + dodoc doc/*.css doc/*.html + ) +} |