parent
451ec8b7eb
commit
37e0dd8721
@ -0,0 +1,27 @@
|
||||
diff -Naur tesseract.orig/java/Makefile.am tesseract/java/Makefile.am
|
||||
--- tesseract.orig/java/Makefile.am 2017-01-30 17:20:23.135458366 +0100
|
||||
+++ tesseract/java/Makefile.am 2017-01-30 17:21:29.834462557 +0100
|
||||
@@ -36,10 +36,9 @@
|
||||
com/google/scrollview/ScrollView.class
|
||||
|
||||
SCROLLVIEW_LIBS = \
|
||||
- piccolo2d-core-3.0.jar \
|
||||
- piccolo2d-extras-3.0.jar
|
||||
+ /usr/share/piccolo2d/lib/piccolo2d.jar
|
||||
|
||||
-CLASSPATH = piccolo2d-core-3.0.jar:piccolo2d-extras-3.0.jar
|
||||
+CLASSPATH = /usr/share/piccolo2d/lib/piccolo2d.jar
|
||||
|
||||
ScrollView.jar : $(SCROLLVIEW_CLASSES)
|
||||
$(JAR) cfm $@ $(srcdir)/Manifest.txt com/google/scrollview/*.class \
|
||||
diff -Naur tesseract.orig/viewer/Makefile.am tesseract/viewer/Makefile.am
|
||||
--- tesseract.orig/viewer/Makefile.am 2017-01-30 17:20:23.176458368 +0100
|
||||
+++ tesseract/viewer/Makefile.am 2017-01-30 17:22:39.281467163 +0100
|
||||
@@ -17,3 +17,7 @@
|
||||
|
||||
libtesseract_viewer_la_SOURCES = \
|
||||
scrollview.cpp svmnode.cpp svutil.cpp svpaint.cpp
|
||||
+
|
||||
+if !GRAPHICS_DISABLED
|
||||
+AM_CPPFLAGS += -DSCROLLVIEW_PATH=/usr/share/tessdata/
|
||||
+endif
|
@ -0,0 +1,142 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PN="tesseract-ocr"
|
||||
LANGPACKV="4.00"
|
||||
URI_PREFIX="https://github.com/${MY_PN}/tessdata/raw/${LANGPACKV}/"
|
||||
JAVA_PKG_OPT_USE="scrollview"
|
||||
|
||||
inherit autotools git-r3 java-pkg-opt-2 toolchain-funcs
|
||||
|
||||
DESCRIPTION="An OCR Engine, orginally developed at HP, now open source."
|
||||
HOMEPAGE="https://github.com/tesseract-ocr"
|
||||
SRC_URI="${URI_PREFIX}eng.traineddata -> eng.traineddata-${LANGPACKV}
|
||||
math? ( ${URI_PREFIX}equ.traineddata -> equ.traineddata-${LANGPACKV} )
|
||||
osd? ( ${URI_PREFIX}osd.traineddata -> osd.traineddata-${LANGPACKV} )"
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${PN}.git"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="doc examples jpeg math opencl openmp osd png scrollview static-libs tiff training webp"
|
||||
|
||||
# List of supported Gentoo linguas and their upstream mapping
|
||||
# https://github.com/tesseract-ocr/tesseract/wiki/Data-Files
|
||||
# "old" variants were regrouped in the matching modern locale
|
||||
LANGUAGES="af:afr am:amh ar:ara as:asm az:aze,aze_cyrl be:bel bn:ben bo:bod bs:bos bg:bul ca:cat cs:ces zh:chi_sim,chi_tra cy:cym da:dan de:deu,frk dz:dzo el:ell,grc en:enm eo:epo et:est eu:eus fa:fas fi:fin fr:fra,frm ga:gle gl:glg gu:guj he:heb hi:hin hr:hrv hu:hun id:ind is:isl it:ita,ita_old ja:jpn kn:kan ka:kat,kat_old kk:kaz km:khm ky:kir ko:kor ku:kur lo:lao la:lat lv:lav lt:lit ml:mal mr:mar mk:mkd ms:msa my:mya ne:nep nl:nld no:nor or:ori pa:pan pl:pol pt:por ro:ron ru:rus sa:san si:sin sk:slk sl:slv es:spa,spa_old sq:sqi sr:srp,srp_latn sw:swa sv:swe syc:syr ta:tam te:tel tg:tgk tl:tgl th:tha tr:tur ug:uig uk:ukr uz:uzb,uzb_cyrl vi:vie"
|
||||
# Missing matches:
|
||||
# ceb Cebuano
|
||||
# chr Cherokee
|
||||
# hat Haitian; Haitian Creole
|
||||
# iku Inuktitut
|
||||
# jav Javanese
|
||||
# mlt Maltese
|
||||
# pus Pushto; Pashto
|
||||
# tir Tigrinya
|
||||
# urd Urdu
|
||||
# yid Yiddish
|
||||
# l10n_en provides the additional data:
|
||||
# enm English, Middle (1100-1500)
|
||||
|
||||
for lang in ${LANGUAGES}; do
|
||||
gentoo_lang=${lang%:*}
|
||||
tess_langs=${lang#*:}
|
||||
for tess_lang in ${tess_langs//,/ }; do
|
||||
SRC_URI+=" l10n_${gentoo_lang}? ( ${URI_PREFIX}${tess_lang}.traineddata -> ${tess_lang}.traineddata-${LANGPACKV} )"
|
||||
done
|
||||
IUSE+=" l10n_${gentoo_lang}"
|
||||
done
|
||||
|
||||
# With opencl USE=tiff is necessary in leptonica
|
||||
CDEPEND=">=media-libs/leptonica-1.74:=[zlib,tiff?,jpeg?,png?,webp?]
|
||||
opencl? (
|
||||
virtual/opencl
|
||||
media-libs/tiff:0=
|
||||
media-libs/leptonica:=[tiff]
|
||||
)
|
||||
scrollview? (
|
||||
>=dev-java/piccolo2d-3.0:0
|
||||
)
|
||||
training? (
|
||||
dev-libs/icu:=
|
||||
x11-libs/pango:=
|
||||
x11-libs/cairo:=
|
||||
)"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
scrollview? ( >=virtual/jdk-1.7 )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
scrollview? ( >=virtual/jre-1.7 )"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README.md )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-4.00.00-use-system-piccolo2d.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
for file in ${A}; do
|
||||
if [[ "${file}" == *traineddata* ]]; then
|
||||
cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
|
||||
java-pkg-opt-2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-shared
|
||||
$(use_enable opencl)
|
||||
$(use_enable openmp)
|
||||
$(use_enable scrollview graphics)
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
use doc && emake doc
|
||||
use scrollview && emake ScrollView.jar JAVAC="javac $(java-pkg_javac-args)"
|
||||
use training && emake training
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && HTML_DOCS=( doc/html/. )
|
||||
default
|
||||
prune_libtool_files
|
||||
|
||||
if use training; then
|
||||
emake DESTDIR="${D}" training-install
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins testing/eurotext.tif testing/phototest.tif
|
||||
fi
|
||||
|
||||
insinto /usr/share/tessdata
|
||||
doins tessdata/*traineddata* # language files
|
||||
use scrollview && doins java/ScrollView.jar # scrollview
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST meson-0.33.0.tar.gz 482221 SHA256 2417fd27cbb1e9b1006fe9e5a1f3896285d4c925ffffdf9478638b5fe3ea7fc5 SHA512 de4bdc40574dfbbc5a29861c32984dc1c97d28992e849c32f1ec0e314d3c69861768583c29eea2b9708ec6b734759d7eac60a53015fd321e29f1e9b1dbbffc22 WHIRLPOOL f12522765dcdf035f873625c3f8dca3d5800e7f12907ac80e65b76d6f7dd54469cd91060d5b89e16b1ca088c94808901706aa98a1d53ff65429bf1b733246dcf
|
||||
DIST meson-0.35.0.tar.gz 510855 SHA256 8316f1b24f2b4375673b0b7fcd88f0402567bf1ac77e5caad88cb352ac8a9b70 SHA512 285e3370307ee1e7b26af4ad0e50765dd19491fdcd85e3abb97c5892b02b57b3fa9537258d941711cb4a1012a326ae16c144f535079c8a4e427f9f0cf79cc45f WHIRLPOOL e4b6947aec49faa17c39b0c04f7bab6dc8ba64a77654f73afa283ca93e0645ba8893c76b913e6a3823e325ccd977047b3c8b83bfb3b94980a5694b254e727366
|
||||
DIST meson-0.36.0.tar.gz 459007 SHA256 17e3fb4ac697c2bd2ba7f555e5830ac13257b2250f4922e6bec504303b2830d5 SHA512 162c27fe0bf1e61422cefe3ff4397a9a426d9cabbadfe358c3c440ba746784d64c4d689c2dc22b0456e6c6631b2e92874a85ee597d58614ee45e932b9285c9f8 WHIRLPOOL 05bb5cafc919e73c02f0d6a484d439d79f94f2ff5367d33a277e0b07af668daa8871c6c140c6fcfd64b5a099a2f13597eb31946b044b64acf726f1fa4a8cd596
|
||||
DIST meson-0.37.1.tar.gz 487233 SHA256 32515e2bdbd9c5774941f74f7c87513bcdc08a6b1e5307eac1e2ae5aa6966b91 SHA512 6d112736bb485e6a0206143f38b83afae1e3e709e3a8f42415621b956cf313cc52a7a21dc52d099ccf746ebcc097f0ba3addc0141f0e90ee4df399f8745c95bf WHIRLPOOL 87a2e7902aa0f5dc12266095275cd7f3d86da774a1a918050f43975e4ef40a8b88608ede2d0e525e8f2c865f5ca1c78e7d5a0e7f7474b6dad537563c52a0666a
|
||||
DIST meson-0.38.0.tar.gz 514051 SHA256 462ee047c48102a83ed9c3a48e3b9b29ec5da4c4a92b517cac2bffb87caf4455 SHA512 c9907ac018c0ec7c047a6deabedb376b39cac494773a17387f8465616a9b52d977bf4f5271db3f9fba412e6dcf015cdab677ab9fb8d874ef431c79d83adcd1e1 WHIRLPOOL c01d01403a327e96f321e3d180a4f65e03017e3a52238b8b1f31d3ae42cc52171d2b677641d2d56f56cd4f7984bcb296d39293726451c956c05aa4ef56c372f6
|
||||
|
@ -1,96 +0,0 @@
|
||||
From b42c0555ca35ebf6e97438ef414a3de62eaa2ced Mon Sep 17 00:00:00 2001
|
||||
From: Jussi Pakkanen <jpakkane@gmail.com>
|
||||
Date: Tue, 2 Aug 2016 21:45:45 +0300
|
||||
Subject: [PATCH] Handle both DT_RPATH as well as DT_RUNPATH when fixing rpath
|
||||
settings.
|
||||
|
||||
---
|
||||
mesonbuild/scripts/depfixer.py | 30 +++++++++++++++++++++++-------
|
||||
1 file changed, 23 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py
|
||||
index 8ff0dd1..cb136f4 100644
|
||||
--- a/mesonbuild/scripts/depfixer.py
|
||||
+++ b/mesonbuild/scripts/depfixer.py
|
||||
@@ -20,6 +20,7 @@
|
||||
SHT_STRTAB = 3
|
||||
DT_NEEDED = 1
|
||||
DT_RPATH = 15
|
||||
+DT_RUNPATH = 29
|
||||
DT_STRTAB = 5
|
||||
DT_SONAME = 14
|
||||
|
||||
@@ -211,21 +212,29 @@ def print_soname(self):
|
||||
self.bf.seek(strtab.val + soname.val)
|
||||
print(self.read_str())
|
||||
|
||||
- def get_rpath_offset(self):
|
||||
+ def get_entry_offset(self, entrynum):
|
||||
sec = self.find_section(b'.dynstr')
|
||||
for i in self.dynamic:
|
||||
- if i.d_tag == DT_RPATH:
|
||||
+ if i.d_tag == entrynum:
|
||||
return sec.sh_offset + i.val
|
||||
return None
|
||||
|
||||
def print_rpath(self):
|
||||
- offset = self.get_rpath_offset()
|
||||
+ offset = self.get_entry_offset(DT_RPATH)
|
||||
if offset is None:
|
||||
print("This file does not have an rpath.")
|
||||
else:
|
||||
self.bf.seek(offset)
|
||||
print(self.read_str())
|
||||
|
||||
+ def print_runpath(self):
|
||||
+ offset = self.get_entry_offset(DT_RUNPATH)
|
||||
+ if offset is None:
|
||||
+ print("This file does not have a runpath.")
|
||||
+ else:
|
||||
+ self.bf.seek(offset)
|
||||
+ print(self.read_str())
|
||||
+
|
||||
def print_deps(self):
|
||||
sec = self.find_section(b'.dynstr')
|
||||
deps = []
|
||||
@@ -257,9 +266,15 @@ def fix_deps(self, prefix):
|
||||
self.bf.write(newname)
|
||||
|
||||
def fix_rpath(self, new_rpath):
|
||||
+ # The path to search for can be either rpath or runpath.
|
||||
+ # Fix both of them to be sure.
|
||||
+ self.fix_rpathtype_entry(new_rpath, DT_RPATH)
|
||||
+ self.fix_rpathtype_entry(new_rpath, DT_RUNPATH)
|
||||
+
|
||||
+ def fix_rpathtype_entry(self, new_rpath, entrynum):
|
||||
if isinstance(new_rpath, str):
|
||||
new_rpath = new_rpath.encode('utf8')
|
||||
- rp_off = self.get_rpath_offset()
|
||||
+ rp_off = self.get_entry_offset(entrynum)
|
||||
if rp_off is None:
|
||||
if self.verbose:
|
||||
print('File does not have rpath. It should be a fully static executable.')
|
||||
@@ -272,12 +287,12 @@ def fix_rpath(self, new_rpath):
|
||||
self.bf.write(new_rpath)
|
||||
self.bf.write(b'\0'*(len(old_rpath) - len(new_rpath) + 1))
|
||||
if len(new_rpath) == 0:
|
||||
- self.remove_rpath_entry()
|
||||
+ self.remove_rpath_entry(entrynum)
|
||||
|
||||
- def remove_rpath_entry(self):
|
||||
+ def remove_rpath_entry(self, entrynum):
|
||||
sec = self.find_section(b'.dynamic')
|
||||
for (i, entry) in enumerate(self.dynamic):
|
||||
- if entry.d_tag == DT_RPATH:
|
||||
+ if entry.d_tag == entrynum:
|
||||
rpentry = self.dynamic[i]
|
||||
rpentry.d_tag = 0
|
||||
self.dynamic = self.dynamic[:i] + self.dynamic[i+1:] + [rpentry]
|
||||
@@ -296,6 +311,7 @@ def run(args):
|
||||
e = Elf(args[0])
|
||||
if len(args) == 1:
|
||||
e.print_rpath()
|
||||
+ e.print_runpath()
|
||||
else:
|
||||
new_rpath = args[1]
|
||||
e.fix_rpath(new_rpath)
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python3_{4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Open source build system"
|
||||
HOMEPAGE="http://mesonbuild.com/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
>=dev-util/ninja-1.6.0
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( authors.txt contributing.txt )
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/mesonbuild/meson/pull/663
|
||||
"${FILESDIR}"/${P}-runpath.patch
|
||||
)
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
for i in mesonconf mesonintrospect meson wraptool; do
|
||||
dosym "${i}.py" "/usr/bin/${i}"
|
||||
done
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST frei0r-plugins-1.3.tar.gz 1092809 SHA256 b25da901115aa7f960cf5e541057266fddf132a7521d628e6cb344c9f16c0236 SHA512 3fcbdb61b656db42b841df6485ca06e2fe2bb8ca16dc054f9154408f843c4170454f8b9fc619b49989f6da9990b67eb7ac6b548dd0fbfb560fdb0f2789346f90 WHIRLPOOL d79a14eae912bd9739b498c7e4d2949529f3e212835a337023bd9760bc9a1dbf239fb4e8cb7f038060d945932df725559fbf283c6362e2777d171126859eff05
|
||||
DIST frei0r-plugins-1.4.tar.gz 1164909 SHA256 8470fcabde9f341b729be3be16385ffc8383d6f3328213907a43851b6e83be57 SHA512 48e5da48a8886242bc5f38911f943d28d507d802076f5fcd2b5c9adc29ed40cb37f30316d4f4c253d279f17eb00c6acad47a7be3aeeec0def7a4aca1130b34fa WHIRLPOOL 6245799e4c56e80ca75db0a75836912412b7b91d55719a5d1d76c27f11a1df0f3ca8d3106903b6535a250cd5579be981bf8b01373c2bca7db1cf2857e449eb5e
|
||||
DIST frei0r-plugins-1.5.0.tar.gz 1519006 SHA256 781cf84a6c2a9a3252f54d2967b57f6de75a31fc1684371e112638c981f72b60 SHA512 9be0384421ff5ac9000dcda9acefb5cb2b6dc05ea72d9771fae990cb5fad4424dcef8dd15c1e5031a89169f914af8c7a30e47934ad007a3bc0150f3c005bc6bf WHIRLPOOL c582118da0d832edd10bf3e4473edb5ff352d67d723d84381befda0cee7deaaeb5f200b5db49603055d620921669d9e0346a7654db2f12e8d922419e7456eaf3
|
||||
|
@ -1,64 +0,0 @@
|
||||
diff -ur a/frei0r-plugins-1.4/src/filter/facedetect/facedetect.c b/frei0r-plugins-1.4/src/filter/facedetect/facedetect.c
|
||||
--- a/frei0r-plugins-1.4/src/filter/facedetect/facedetect.c 2013-02-24 15:43:22.000000000 +0200
|
||||
+++ b/frei0r-plugins-1.4/src/filter/facedetect/facedetect.c 2015-12-19 12:27:05.984180725 +0200
|
||||
@@ -211,8 +211,13 @@
|
||||
|
||||
double scale = 1.3;
|
||||
IplImage* gray = cvCreateImage( cvSize(img->width,img->height), 8, 1 );
|
||||
+#if (CV_VERSION_EPOCH != 2)
|
||||
+ IplImage* small_img = cvCreateImage( cvSize( cvRound ((double)img->width/scale),
|
||||
+ cvRound ((double)img->height/scale)),
|
||||
+#else
|
||||
IplImage* small_img = cvCreateImage( cvSize( cvRound (img->width/scale),
|
||||
cvRound (img->height/scale)),
|
||||
+#endif
|
||||
8, 1 );
|
||||
int i;
|
||||
|
||||
diff -ur a/frei0r-plugins-1.4/src/filter/facedetect/facedetect.cpp b/frei0r-plugins-1.4/src/filter/facedetect/facedetect.cpp
|
||||
--- a/frei0r-plugins-1.4/src/filter/facedetect/facedetect.cpp 2013-02-24 15:43:22.000000000 +0200
|
||||
+++ b/frei0r-plugins-1.4/src/filter/facedetect/facedetect.cpp 2015-12-19 12:24:00.023349871 +0200
|
||||
@@ -259,11 +259,19 @@
|
||||
{
|
||||
double scale = this->scale == 0? 1.0 : this->scale;
|
||||
CvScalar colors[5] = {
|
||||
+#if (CV_VERSION_EPOCH != 2)
|
||||
+ CvScalar(cvRound(color[0].r * 255), cvRound(color[0].g * 255), cvRound(color[0].b * 255), cvRound(alpha * 255)),
|
||||
+ CvScalar(cvRound(color[1].r * 255), cvRound(color[1].g * 255), cvRound(color[1].b * 255), cvRound(alpha * 255)),
|
||||
+ CvScalar(cvRound(color[2].r * 255), cvRound(color[2].g * 255), cvRound(color[2].b * 255), cvRound(alpha * 255)),
|
||||
+ CvScalar(cvRound(color[3].r * 255), cvRound(color[3].g * 255), cvRound(color[3].b * 255), cvRound(alpha * 255)),
|
||||
+ CvScalar(cvRound(color[4].r * 255), cvRound(color[4].g * 255), cvRound(color[4].b * 255), cvRound(alpha * 255)),
|
||||
+#else
|
||||
{{cvRound(color[0].r * 255), cvRound(color[0].g * 255), cvRound(color[0].b * 255), cvRound(alpha * 255)}},
|
||||
{{cvRound(color[1].r * 255), cvRound(color[1].g * 255), cvRound(color[1].b * 255), cvRound(alpha * 255)}},
|
||||
{{cvRound(color[2].r * 255), cvRound(color[2].g * 255), cvRound(color[2].b * 255), cvRound(alpha * 255)}},
|
||||
{{cvRound(color[3].r * 255), cvRound(color[3].g * 255), cvRound(color[3].b * 255), cvRound(alpha * 255)}},
|
||||
{{cvRound(color[4].r * 255), cvRound(color[4].g * 255), cvRound(color[4].b * 255), cvRound(alpha * 255)}},
|
||||
+#endif
|
||||
};
|
||||
|
||||
for (int i = 0; i < (objects ? objects->total : 0); i++)
|
||||
@@ -287,14 +295,23 @@
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
+#if (CV_VERSION_EPOCH != 2)
|
||||
+ CvBox2D box = CvBox2D(CvPoint2D32f(center.x, center.y), CvSize2D32f(r->width / scale, (r->height / scale) * 1.2), 90);
|
||||
+#else
|
||||
CvBox2D box = {{center.x, center.y}, {r->width / scale, (r->height / scale) * 1.2}, 90};
|
||||
+#endif
|
||||
cvEllipseBox(image, box, colors[i % 5], thickness, linetype);
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
+#if (CV_VERSION_EPOCH != 2)
|
||||
+ CvPoint pt1 = CvPoint(r->x / scale, r->y / scale);
|
||||
+ CvPoint pt2 = CvPoint((r->x + r->width) / scale, (r->y + r->height) / scale);
|
||||
+#else
|
||||
CvPoint pt1 = {r->x / scale, r->y / scale};
|
||||
CvPoint pt2 = {(r->x + r->width) / scale, (r->y + r->height) / scale};
|
||||
+#endif
|
||||
cvRectangle(image, pt1, pt2, colors[i % 5], thickness, linetype);
|
||||
break;
|
||||
}
|
@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
inherit cmake-utils multilib
|
||||
|
||||
DESCRIPTION="A minimalistic plugin API for video effects"
|
||||
HOMEPAGE="http://www.dyne.org/software/frei0r/"
|
||||
SRC_URI="http://files.dyne.org/frei0r/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="doc +facedetect +scale0tilt"
|
||||
|
||||
RDEPEND="x11-libs/cairo
|
||||
facedetect? ( >=media-libs/opencv-2.3.0 )
|
||||
scale0tilt? ( >=media-libs/gavl-1.2.0 )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog README TODO )
|
||||
|
||||
src_prepare() {
|
||||
local f=CMakeLists.txt
|
||||
|
||||
sed -i \
|
||||
-e '/set(CMAKE_C_FLAGS/d' \
|
||||
-e "/LIBDIR.*frei0r-1/s:lib:$(get_libdir):" \
|
||||
${f} || die
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=555782
|
||||
epatch "${FILESDIR}/${P}-opencv3.patch"
|
||||
|
||||
# https://bugs.gentoo.org/418243
|
||||
sed -i \
|
||||
-e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \
|
||||
src/filter/*/${f} || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use "!facedetect" "WITHOUT_OPENCV" )
|
||||
$(cmake-utils_use "!scale0tilt" "WITHOUT_GAVL" )
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
if use doc; then
|
||||
pushd doc
|
||||
doxygen || die
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
use doc && dohtml -r doc/html
|
||||
}
|
@ -1 +1 @@
|
||||
Mon, 30 Jan 2017 14:43:28 +0000
|
||||
Mon, 30 Jan 2017 17:43:21 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon, 30 Jan 2017 14:43:28 +0000
|
||||
Mon, 30 Jan 2017 17:43:21 +0000
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)] >=dev-util/ninja-1.6.0 python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)]
|
||||
DESCRIPTION=Open source build system
|
||||
EAPI=6
|
||||
HOMEPAGE=http://mesonbuild.com/
|
||||
IUSE=python_targets_python3_4 python_targets_python3_5
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=Apache-2.0
|
||||
RDEPEND=python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)] >=dev-util/ninja-1.6.0 python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python3_4(-),-python_single_target_python3_5(-)]
|
||||
REQUIRED_USE=|| ( python_targets_python3_4 python_targets_python3_5 )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://pypi/m/meson/meson-0.33.0.tar.gz
|
||||
_eclasses_=distutils-r1 f1707af2d2ad4cf700a9e690de6ed855 multibuild 742139c87a9fa3766f0c2b155e5522bf multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b python-r1 dcd61d7a5c283f18cfe763552b09eb88 python-utils-r1 d275302cd06aedef2ba08f81f3104206 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=c7e860eaacd7828fdb5fa53e2537f100
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install prepare test
|
||||
DEPEND=x11-libs/cairo facedetect? ( >=media-libs/opencv-2.3.0 ) scale0tilt? ( >=media-libs/gavl-1.2.0 ) virtual/pkgconfig doc? ( app-doc/doxygen ) sys-devel/make >=dev-util/cmake-3.5.2
|
||||
DESCRIPTION=A minimalistic plugin API for video effects
|
||||
EAPI=4
|
||||
HOMEPAGE=http://www.dyne.org/software/frei0r/
|
||||
IUSE=doc +facedetect +scale0tilt
|
||||
KEYWORDS=~amd64 ~hppa ~ppc ~x86 ~amd64-fbsd ~x86-fbsd
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=x11-libs/cairo facedetect? ( >=media-libs/opencv-2.3.0 ) scale0tilt? ( >=media-libs/gavl-1.2.0 )
|
||||
SLOT=0
|
||||
SRC_URI=http://files.dyne.org/frei0r/releases/frei0r-plugins-1.4.tar.gz
|
||||
_eclasses_=cmake-utils f0c2647fb321257c91c6a967f362d053 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c
|
||||
_md5_=9da78adc208253ebd128e211c91c3520
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=doc? ( app-text/asciidoc ) python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7[threads,sqlite,ssl?] ) python_single_target_python3_4? ( dev-lang/python:3.4[threads,sqlite,ssl?] ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)?,python_single_target_python3_4(+)?]
|
||||
DESCRIPTION=Powerful IMAP/Maildir synchronization and reader support
|
||||
EAPI=6
|
||||
HOMEPAGE=http://offlineimap.org
|
||||
IUSE=doc ssl python_targets_python2_7 python_targets_python3_4 python_single_target_python2_7 python_single_target_python3_4
|
||||
KEYWORDS=~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=dev-python/six[python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)?,python_single_target_python3_4(+)?] python_single_target_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7[threads,sqlite,ssl?] ) python_single_target_python3_4? ( dev-lang/python:3.4[threads,sqlite,ssl?] ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),python_single_target_python2_7(+)?,python_single_target_python3_4(+)?]
|
||||
REQUIRED_USE=^^ ( python_single_target_python2_7 python_single_target_python3_4 ) python_single_target_python2_7? ( python_targets_python2_7 ) python_single_target_python3_4? ( python_targets_python3_4 )
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/OfflineIMAP/offlineimap/archive/v7.0.13.tar.gz -> offlineimap-7.0.13.tar.gz
|
||||
_eclasses_=distutils-r1 f1707af2d2ad4cf700a9e690de6ed855 multilib 165fc17c38d1b11dac2008280dab6e80 python-single-r1 19a74c6b5c191723a997dc7e0cc6bb09 python-utils-r1 d275302cd06aedef2ba08f81f3104206 toolchain-funcs 1b1da0c45c555989dc5d832b54880783 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=59b9d6a4d659b90b33e6194ff2d5f679
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install nofetch postinst postrm preinst prepare setup test unpack
|
||||
DEPEND=>=kde-frameworks/kconfig-5.26.0:5 >=kde-frameworks/kconfigwidgets-5.26.0:5 >=kde-frameworks/kcoreaddons-5.26.0:5 >=kde-frameworks/kcrash-5.26.0:5 >=kde-frameworks/ki18n-5.26.0:5 >=kde-frameworks/kwidgetsaddons-5.26.0:5 >=kde-frameworks/kxmlgui-5.26.0:5 >=dev-qt/qtdbus-5.6.1:5 >=dev-qt/qtgui-5.6.1:5 >=dev-qt/qtwidgets-5.6.1:5 sys-devel/make >=dev-util/cmake-3.5.2 >=sys-apps/sed-4 test? ( !prefix? ( x11-base/xorg-server[xvfb] ) x11-apps/xhost ) dev-util/desktop-file-utils x11-misc/shared-mime-info >=kde-frameworks/extra-cmake-modules-5.26.0:5 handbook? ( >=kde-frameworks/kdoctools-5.26.0:5 ) test? ( >=dev-qt/qttest-5.6.1:5 ) >=dev-qt/qtcore-5.6.1:5 dev-util/desktop-file-utils app-arch/xz-utils
|
||||
DESCRIPTION=Stopwatch application
|
||||
EAPI=6
|
||||
HOMEPAGE=http://www.aelog.org/kronometer/
|
||||
IUSE=test debug +handbook test
|
||||
KEYWORDS=~amd64
|
||||
LICENSE=GPL-2+
|
||||
RDEPEND=>=kde-frameworks/kconfig-5.26.0:5 >=kde-frameworks/kconfigwidgets-5.26.0:5 >=kde-frameworks/kcoreaddons-5.26.0:5 >=kde-frameworks/kcrash-5.26.0:5 >=kde-frameworks/ki18n-5.26.0:5 >=kde-frameworks/kwidgetsaddons-5.26.0:5 >=kde-frameworks/kxmlgui-5.26.0:5 >=dev-qt/qtdbus-5.6.1:5 >=dev-qt/qtgui-5.6.1:5 >=dev-qt/qtwidgets-5.6.1:5 >=kde-frameworks/kf-env-4 >=dev-qt/qtcore-5.6.1:5
|
||||
SLOT=5
|
||||
SRC_URI=mirror://kde/stable/kronometer/2.1.3/src/kronometer-2.1.3.tar.xz
|
||||
_eclasses_=cmake-utils f0c2647fb321257c91c6a967f362d053 eutils ea170b525f6a38a006be05c9d9429f13 flag-o-matic 7366202dd55cb8f018f5d450d54e7749 gnome2-utils c6dcdf3a2c22b578b16adb945dc85c35 kde5 0f198b4acacdcdb65e60a251726f435c kde5-functions e944f934c4768113a108eb0184031467 multilib 165fc17c38d1b11dac2008280dab6e80 multiprocessing 7bb10a841be2368af0c00f27dd67560b toolchain-funcs 1b1da0c45c555989dc5d832b54880783 versionator 99ae9d758cbe7cfed19170e7d48f5a9c virtualx 86c9305a59b3e0459e7fbef3a5f30b96 xdg a5c4c5ce4f5ce9a2e777f5d9a40a8723 xdg-utils e2b2bd56125ce8cf59ce30c642b59d48
|
||||
_md5_=75853f7f13a36978c75ef38441e04617
|
@ -1 +1 @@
|
||||
Mon, 30 Jan 2017 14:43:28 +0000
|
||||
Mon, 30 Jan 2017 17:43:21 +0000
|
||||
|
@ -1 +1 @@
|
||||
Mon Jan 30 14:39:37 UTC 2017
|
||||
Mon Jan 30 17:39:29 UTC 2017
|
||||
|
@ -1 +1 @@
|
||||
Mon, 30 Jan 2017 15:00:01 +0000
|
||||
Mon, 30 Jan 2017 18:00:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
1485787201 Mon 30 Jan 2017 02:40:01 PM UTC
|
||||
1485798001 Mon 30 Jan 2017 05:40:01 PM UTC
|
||||
|
@ -1 +1 @@
|
||||
Mon, 30 Jan 2017 14:43:28 +0000
|
||||
Mon, 30 Jan 2017 17:43:21 +0000
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Normally you need only one version of this.
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
PYTHON_REQ_USE="threads,sqlite,ssl?"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Powerful IMAP/Maildir synchronization and reader support"
|
||||
HOMEPAGE="http://offlineimap.org"
|
||||
SRC_URI="https://github.com/OfflineIMAP/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="doc ssl"
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="doc? ( app-text/asciidoc )"
|
||||
|
||||
# see http://pogma.com/2009/09/09/snow-leopard-and-offlineimap/ and bug 284925
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-7.0.3-darwin10.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile
|
||||
use doc && emake -C docs man
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
dodoc offlineimap.conf offlineimap.conf.minimal
|
||||
use doc && doman docs/{offlineimap.1,offlineimapui.7}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "You will need to configure offlineimap by creating ~/.offlineimaprc"
|
||||
elog "Sample configurations are in /usr/share/doc/${PF}/"
|
||||
elog ""
|
||||
elog "If you connect via ssl/tls and don't use CA cert checking, it will"
|
||||
elog "display the server's cert fingerprint and require you to add it to the"
|
||||
elog "configuration file to be sure it connects to the same server every"
|
||||
elog "time. This serves to help fixing CVE-2010-4532 (offlineimap doesn't"
|
||||
elog "check SSL server certificate) in cases where you have no CA cert."
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST kronometer-2.1.2.tar.xz 122492 SHA256 0359c091df7d0e96b03ca1b2d2fd91a377d32d9d16d551892343edbe99a5320b SHA512 781ea11a22f1db69dec686d4f21f22fe81b4fea89bdcb111da5e7665d563d5a07355b50e5cad31dbdd649405d00ed792c6b753ae02d14f16d3694bc83df9889b WHIRLPOOL 23feb31bea70cbe3086dcfc1aa30990db822b44f19837b181f189c60cc9ce79afbb420e5ac175a6f2f6c82b6ba2c2f0a0d8252ce6b08d597ccb90c61526753a8
|
||||
DIST kronometer-2.1.3.tar.xz 124272 SHA256 91587ddbfb38df78b6c944f48e6759aa49e0b678afd2aa931a6d54a6d47e06fc SHA512 14d982e706f880785c7f69c90e1d224be215b78e6ad7655f256d9141f83f9223bf6685f6b6cde65e4efb55512bee20b35621705ab808ba9f4bcb5657e7f20627 WHIRLPOOL 3233a560a9240504fcc27b3ee24fb6b61d3ed9d202ad0846750d513141ca62f15927444db9de922c4b1f60bcdce6dac3bc46dfe4f8041b38ad0586acc6cff6cf
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="forceoptional"
|
||||
KDE_TEST="true"
|
||||
VIRTUALX_REQUIRED="test"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="Stopwatch application"
|
||||
HOMEPAGE="http://www.aelog.org/kronometer/"
|
||||
SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kconfigwidgets)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kcrash)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
$(add_frameworks_dep kxmlgui)
|
||||
$(add_qt_dep qtdbus)
|
||||
$(add_qt_dep qtgui)
|
||||
$(add_qt_dep qtwidgets)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
Loading…
Reference in new issue