diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/zinnia |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/zinnia')
-rw-r--r-- | app-i18n/zinnia/Manifest | 8 | ||||
-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, 145 insertions, 0 deletions
diff --git a/app-i18n/zinnia/Manifest b/app-i18n/zinnia/Manifest new file mode 100644 index 000000000000..a7b7a4fe74a0 --- /dev/null +++ b/app-i18n/zinnia/Manifest @@ -0,0 +1,8 @@ +AUX zinnia-0.06-c++-2011.patch 235 SHA256 51138bc1aeefd1d991d8878b16e5bd6fad21e650c9abfd61b7f306eca47edde6 SHA512 23d856c2d14b28d4a2863767f1888701eba2693f5b7dda20bdb7959311d7ce875bb2df2776c576979d7f5dfb8106086a472af7a5e37b3972f8e16e2cc4ed1d6f WHIRLPOOL bcf7f19d3190bb449923aa3798688e34b45cd0154f1fbea8555eb2fcbfd94335393f3770dbb0dd7438b8f1da8b4d2e6f774bac6c017ed9b3bf8b405117988f40 +AUX zinnia-0.06-flags.patch 367 SHA256 d94847adc2163f4e56e78ed202c2a505a6c527a02309aca5ec6f2e88702881d2 SHA512 f43f238cc037293a7914a00bf364068f977f5e4451e6a23959b7a6346f20d1cf5ae20d61c9e031dae0897f582ae62e3a8fb8cd77de72fe474b010ebbcc2d10b4 WHIRLPOOL 1a50e971f6881e127bf8035a0dba4c0198e831d37e2ba309b580b7058078c8725f9c37ea85d04096faf5c07a42a46ee9aa54ae220db592218e55ef2da5815646 +AUX zinnia-0.06-perl_build.patch 336 SHA256 9c71d237ce73b534b145a204ab90334b08d45e18f6fdb98f4f94cf603c531f26 SHA512 f3eeea5a6d23c07e50dc99d66b5799c5a03ff42d16afa43b97c8ff1ee9f63efe45864ba4eddb3c1bf69c38a632a4469a5f823ce13d1f57299ae027a1f698c9d0 WHIRLPOOL f46fd55e0585eb2ef2b53b09d2f623f67628f23f2f37a19a7d1b0bf7ab5ac1862266096b6a4805518e4c81e9351ef105ce447ee05ec00fcd41188acd5804c25f +DIST zinnia-0.06.tar.gz 457415 SHA256 ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b SHA512 b9a44dc3664302269c4d8481225964a3188c1921f5af7f136fdccdc452917f6ff934884e266436a0f1e0a32af19d3bea5f5e4416e694a653983039a513277b53 WHIRLPOOL 3d0822a5dfaa46ad5dab144888e10f2a0d473e12dcb0f3754e8d55d93cfed19b5ded44c9ca2f2b16451450e05c8b6e5819bf5789d546eb0955f91b37179fe413 +EBUILD zinnia-0.06-r3.ebuild 1681 SHA256 6ef883af1fb01ebd80b35f98979f7bd5d5362fb733a684713ebc17622ed81ffe SHA512 058586d3a05094aa563efb64396782e945b4194ac6511c8c1fe91032466cfdbdba08d18997db60cedb98f064b80a1aa21642adf1d7ce03b0c1ef82c2ff2c09af WHIRLPOOL 06ff5f527310b84f87c70e1eaa1a1035ca3b3bf4fe61fa4d33dab92bf7fb941d740d59af3e2f27791dd452c8dc3507c699049e548617eab4add14bbf1cdd5958 +MISC ChangeLog 2496 SHA256 35698f1da54e5846ac5c4d238c73bcc5879bb624a73059236b8476d068c61ad6 SHA512 7a3e9591be68de448eb2621760ed0ce35ab7300402a9e7b670fbd3d50e8122a05dc1bff987afcb9896f46a49ec6fccf5fcfd437047427d00bf20b981506c064c WHIRLPOOL 80bd177f591efeed861f5c9e44b6cfbe1c6c07f18b02c8683e14ca5ed51bf47d76777823827920bc515ca43bfbedb88e0d50f24fa10dbfeae197fd857ee0c644 +MISC ChangeLog-2015 2162 SHA256 b875b3543e917df63779cdca4167194ab610a3620cdf93a49937a6cb3b5bb727 SHA512 1c4dfc9761aa016ee0c50e8d6e6e40697f169f00468eaf9b8d7feaac5c012f3acaa0905d12a50742c42758d8f0689514a9a60350efdc88df9dc6833fbe29ffaa WHIRLPOOL a0e6675ff07695b2e8ce77e0ee8fd2005387cfe29c8f568bb6d2e867ae25fd54d951025465f982053e21fe1ef09460b3a8ff1a2b407366a6ac2b122c40922f52 +MISC metadata.xml 364 SHA256 6d84a9958c1637fd5b6a45727daeb70d44ac681ffcea459e7e38c15acccc27ab SHA512 5e5c6833463859dbfd6561adce41426f607b435301a01a6e7f2bd8cb598a89632e607706c52fef903d96f2e0094d9c33fdfb69c2384455e451d634ecbee62842 WHIRLPOOL 93cf83d55efe72bff37f7b928ba46297daab02465d98d768d57c1c697feab8067325d2a3557b47c8e77c1d17f2f52f3aaa8278c4567ff8e7e4b2196f2f1e04d6 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..ce1ffaefc08f --- /dev/null +++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 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 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 + ) +} |