mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-16 03:53:51 +02:00
tesseract-ocr: oops, remove testing trails
When testing the new release I disabled some parts of the template and forgot to clean up and re-enable them before pushing. Sorry for the waste of bandwidth and space.
This commit is contained in:
parent
16a23fa962
commit
37ca7282a9
1 changed files with 21 additions and 35 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'tesseract-ocr'
|
# Template file for 'tesseract-ocr'
|
||||||
pkgname=tesseract-ocr
|
pkgname=tesseract-ocr
|
||||||
version=3.05.00
|
version=3.05.00
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc=tesseract-${version}
|
wrksrc=tesseract-${version}
|
||||||
_tessdata_ver=8bf2e7ad08db9ca174ae2b0b3a7498c9f1f71d40
|
_tessdata_ver=8bf2e7ad08db9ca174ae2b0b3a7498c9f1f71d40
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
@ -34,14 +34,6 @@ post_extract() {
|
||||||
rmdir ${XBPS_BUILDDIR}/tessdata-${_tessdata_ver}
|
rmdir ${XBPS_BUILDDIR}/tessdata-${_tessdata_ver}
|
||||||
}
|
}
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
cd ${wrksrc}
|
|
||||||
# Some include paths are not set in training/Makefile.am
|
|
||||||
# sed -i training/Makefile.am \
|
|
||||||
# -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/glib-2.0 \\\\" \
|
|
||||||
# -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/lib/glib-2.0/include \\\\" \
|
|
||||||
# -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/pango-1.0 \\\\" \
|
|
||||||
# -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/cairo \\\\" \
|
|
||||||
# -e "/AM_CPPFLAGS += \\\\/a -I${XBPS_CROSS_BASE}/usr/include/freetype2 \\\\"
|
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
}
|
}
|
||||||
post_build() {
|
post_build() {
|
||||||
|
@ -63,32 +55,26 @@ tesseract-ocr-tools_package() {
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
local f
|
local f
|
||||||
make DESTDIR=${PKGDESTDIR} training-install
|
make DESTDIR=${PKGDESTDIR} training-install
|
||||||
# vmkdir usr/share/tesseract
|
vmkdir usr/share/tesseract
|
||||||
# vmkdir usr/share/man/man1
|
vmkdir usr/share/man/man1
|
||||||
# vmkdir usr/share/man/man5
|
vmkdir usr/share/man/man5
|
||||||
# # Copy shell scripts
|
# Copy shell scripts
|
||||||
# for f in language-specific.sh tesstrain.sh tesstrain_utils.sh; do
|
for f in language-specific.sh tesstrain.sh tesstrain_utils.sh; do
|
||||||
# if [ -e ${wrksrc}/training/${f} ]; then
|
if [ -e ${wrksrc}/training/${f} ]; then
|
||||||
# cp -a ${wrksrc}/training/${f} \
|
cp -a ${wrksrc}/training/${f} \
|
||||||
# ${PKGDESTDIR}/usr/share/tesseract
|
${PKGDESTDIR}/usr/share/tesseract
|
||||||
# fi
|
fi
|
||||||
# done
|
done
|
||||||
# # Move binaries and manual pages
|
# Move tool manual pages
|
||||||
# for f in ambiguous_words classifier_tester cntraining combine_tessdata \
|
for f in ambiguous_words cntraining combine_tessdata \
|
||||||
# dawg2wordlist mftraining set_unicharset_properties \
|
dawg2wordlist mftraining shapeclustering unicharambigs \
|
||||||
# shapeclustering text2image unicharambigs unicharset \
|
unicharset unicharset_extractor wordlist2dawg; do
|
||||||
# unicharset_extractor wordlist2dawg; do
|
for n in 1 5; do
|
||||||
# if [ -e ${DESTDIR}/usr/bin/${f} ]; then
|
if [ -e ${DESTDIR}/usr/share/man/man${n}/${f}.${n} ]; then
|
||||||
# mv ${DESTDIR}/usr/bin/${f} \
|
vmove usr/share/man/man${n}/${f}.${n}
|
||||||
# ${PKGDESTDIR}/usr/share/tesseract
|
fi
|
||||||
# fi
|
done
|
||||||
# for n in 1 5; do
|
done
|
||||||
# if [ -e ${DESTDIR}/usr/share/man/man${n}/${f}.${n} ]; then
|
|
||||||
# mv ${DESTDIR}/usr/share/man/man${n}/${f}.${n} \
|
|
||||||
# ${PKGDESTDIR}/usr/share/man/man${n}
|
|
||||||
# fi
|
|
||||||
# done
|
|
||||||
# done
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tesseract-ocr-devel_package() {
|
tesseract-ocr-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue