diff options
author | 2012-03-18 20:23:30 -0400 | |
---|---|---|
committer | 2012-03-18 20:23:30 -0400 | |
commit | c6a52db66774c61faba3181555b7e6d4fea021b4 (patch) | |
tree | 8a05f6294d81af6fd900eb977e4c0b82fdf669fa /media-libs | |
parent | sci-electronics/gazebo: Environment variable should be GAZEBO_RESOURCE_PATH. (diff) | |
download | ezod-c6a52db66774c61faba3181555b7e6d4fea021b4.tar.gz ezod-c6a52db66774c61faba3181555b7e6d4fea021b4.tar.bz2 ezod-c6a52db66774c61faba3181555b7e6d4fea021b4.zip |
Initial import of media-libs/simplecv, app-text/tesseract, and app-text/python-tesseract ebuilds.
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/simplecv/Manifest | 3 | ||||
-rw-r--r-- | media-libs/simplecv/metadata.xml | 11 | ||||
-rw-r--r-- | media-libs/simplecv/simplecv-1.2.ebuild | 80 |
3 files changed, 94 insertions, 0 deletions
diff --git a/media-libs/simplecv/Manifest b/media-libs/simplecv/Manifest new file mode 100644 index 0000000..3023b89 --- /dev/null +++ b/media-libs/simplecv/Manifest @@ -0,0 +1,3 @@ +DIST SimpleCV-1.2.tar.gz 106841 RMD160 352b8d48335ad1ad35e11cf3152cd554a420383d SHA1 0a5c8b138a282d06be26e588449dfbc0853a35b1 SHA256 b280e8e63c563d383113b7c2222da978fc7746c6caae4599de3ff9e289b6fb78 +EBUILD simplecv-1.2.ebuild 1642 RMD160 147c01a8e7749cf2872093fdfdaf1607e5e848f7 SHA1 a4107b620df3882e678df95addcbdc35ec4121dc SHA256 a4e5fa752d9797da8d1cf05d2feaca1c5a7474693448af666f056bd85bd9e39b +MISC metadata.xml 311 RMD160 c08103361353ec43a9712d63bfb9eb8141126728 SHA1 7059e9a149775845d869f3aa1a61a9d379dad3dc SHA256 128c7e4c8d44860223a2f060bd602a165eed7824cfcf5ceab120963f971b97d5 diff --git a/media-libs/simplecv/metadata.xml b/media-libs/simplecv/metadata.xml new file mode 100644 index 0000000..1a92607 --- /dev/null +++ b/media-libs/simplecv/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>mavrinac@gmail.com</email> + <name>Aaron Mavrinac</name> +</maintainer> +<use> + <flag name="ocr">Enable OCR functionality through tesseract</flag> +</use> +</pkgmetadata> diff --git a/media-libs/simplecv/simplecv-1.2.ebuild b/media-libs/simplecv/simplecv-1.2.ebuild new file mode 100644 index 0000000..3dba01a --- /dev/null +++ b/media-libs/simplecv/simplecv-1.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 2008-2012 Funtoo Technologies +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +PYTHON_DEPEND="2:2.6" + +inherit distutils + +MY_P=SimpleCV-${PV} + +DESCRIPTION="Python interface to several powerful open source computer vision libraries." +HOMEPAGE="http://simplecv.org/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" + +LICENSE="Ingenuitas" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ocr test" + +DEPEND=" + test? ( net-misc/wget dev-python/nose ) +" +RDEPEND=" + >=media-libs/opencv-2.2 + dev-python/numpy + sci-libs/scipy + dev-python/imaging + dev-python/pygame + dev-python/ipython + ocr? ( app-text/tesseract app-text/python-tesseract ) +" + +S=${WORKDIR}/${MY_P} + +src_test() { + mkdir "${S}/SimpleCV/sampleimages" + cd "${S}/SimpleCV/sampleimages" + for im in \ + 9dots4lines.png \ + CalibImage0.png \ + CalibImage1.png \ + CalibImage2.png \ + CalibImage3.png \ + CalibImage4.png \ + CalibImage5.png \ + CalibImage6.png \ + CalibImage7.png \ + CalibImage8.png \ + CalibImage9.png \ + aerospace.jpg \ + barcode.png \ + black.png \ + blockhead.png \ + cam.jpg \ + chull.png \ + greenscreen.png \ + greyscale.jpg \ + hardblob.png \ + icecave.png \ + justapixel.png \ + logo-trans.png \ + logo.png \ + logo_inverted.png \ + mtest.png \ + ocr-test.png \ + orson_welles.jpg \ + pills.png \ + simplecv.png \ + statue_liberty.jpg \ + template.png \ + templatetest.png \ + test.png \ + troll_face.png \ + white.png; do + wget "https://github.com/ingenuitas/SimpleCV/raw/9e34e9552d287b3f308360cc152fea3398e93604/SimpleCV/sampleimages/$im" + done + cd "${S}/SimpleCV/tests" + nosetests tests.py || die "tests failed" +} |