--- hocr-0.8.2.orig/config.guess +++ hocr-0.8.2/config.guess @@ -1,9 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, +# Inc. -timestamp='2006-02-23' +timestamp='2007-07-22' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -160,6 +161,7 @@ arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -210,7 +212,7 @@ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) - echo powerppc-unknown-mirbsd${UNAME_RELEASE} + echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} @@ -328,7 +330,7 @@ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; - i86pc:SunOS:5.*:*) + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) @@ -770,6 +772,8 @@ case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac @@ -777,10 +781,7 @@ i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - i*:MSYS_NT-*:*:*) + *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) @@ -790,12 +791,15 @@ i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; - x86:Interix*:[345]*) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - EM64T:Interix*:[345]*) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; + *:Interix*:[3456]*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + EM64T | authenticamd) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; @@ -831,6 +835,9 @@ arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; @@ -947,6 +954,9 @@ x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; + xtensa:Linux:*:*) + echo xtensa-unknown-linux-gnu + exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent @@ -989,7 +999,7 @@ LIBC=gnulibc1 # endif #else - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun) + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout @@ -1205,6 +1215,15 @@ SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; --- hocr-0.8.2.orig/config.sub +++ hocr-0.8.2/config.sub @@ -1,9 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, +# Inc. -timestamp='2006-02-23' +timestamp='2007-06-28' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -240,15 +241,16 @@ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ + | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -274,21 +276,19 @@ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | score \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b \ - | strongarm \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; - m32c) - basic_machine=$basic_machine-unknown - ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown @@ -318,18 +318,18 @@ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ + | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | m32r-* | m32rle-* \ + | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ @@ -358,23 +358,21 @@ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; - m32c-*) - ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) @@ -477,8 +475,8 @@ basic_machine=craynv-cray os=-unicosmp ;; - cr16c) - basic_machine=cr16c-unknown + cr16) + basic_machine=cr16-unknown os=-elf ;; crds | unos) @@ -685,6 +683,10 @@ basic_machine=i386-pc os=-mingw32 ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; miniframe) basic_machine=m68000-convergent ;; @@ -912,6 +914,10 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux @@ -923,6 +929,9 @@ basic_machine=sh-hitachi os=-hms ;; + sh5el) + basic_machine=sh5le-unknown + ;; sh64) basic_machine=sh64-unknown ;; @@ -1128,7 +1137,7 @@ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sparc | sparcv8 | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) @@ -1217,7 +1226,7 @@ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos*) + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1369,6 +1378,12 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; *-acorn) os=-riscix1.2 ;; @@ -1378,9 +1393,9 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; + c4x-* | tic4x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 @@ -1406,6 +1421,9 @@ m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; --- hocr-0.8.2.orig/src/hocr_textbuffer.h +++ hocr-0.8.2/src/hocr_textbuffer.h @@ -110,7 +110,7 @@ @param text_buffer pointer to hocr_text_buffer struct. @return new hocr_text_buffer */ - hocr_text_buffer *hocr_text_buffer_copy (const hocr_text_buffer const + hocr_text_buffer *hocr_text_buffer_copy (const hocr_text_buffer *text_buffer); #ifdef WITH_HSPELL @@ -124,7 +124,7 @@ @return new hocr_text_buffer */ hocr_text_buffer *hocr_text_buffer_copy_convert (const hocr_text_buffer - const *text_buffer, + *text_buffer, const gchar * to_codeset, const gchar * @@ -137,7 +137,7 @@ @param filename the file name to save to or NULL for stdout @return 0 */ - int hocr_text_buffer_save (const hocr_text_buffer * const text_buffer, + int hocr_text_buffer_save (const hocr_text_buffer * text_buffer, const char *const filename); /** @@ -147,7 +147,7 @@ @return new hocr_text_buffer */ hocr_text_buffer *hocr_text_buffer_copy_hspell (const hocr_text_buffer - const *text_buffer); + *text_buffer); #endif /* WITH_HSPELL */ @@ -156,3 +156,4 @@ #endif #endif + --- hocr-0.8.2.orig/src/hocr_textbuffer.c +++ hocr-0.8.2/src/hocr_textbuffer.c @@ -206,7 +206,7 @@ } hocr_text_buffer * -hocr_text_buffer_copy (const hocr_text_buffer const *text_buffer) +hocr_text_buffer_copy (const hocr_text_buffer *text_buffer) { hocr_text_buffer *new_text = NULL; @@ -220,7 +220,7 @@ #ifdef WITH_HSPELL hocr_text_buffer * -hocr_text_buffer_copy_convert (const hocr_text_buffer const *text_buffer, +hocr_text_buffer_copy_convert (const hocr_text_buffer *text_buffer, const gchar * to_codeset, const gchar * from_codeset) { @@ -261,7 +261,7 @@ } int -hocr_text_buffer_save (const hocr_text_buffer * const text_buffer, +hocr_text_buffer_save (const hocr_text_buffer * text_buffer, const char *const filename) { FILE *file; @@ -297,7 +297,7 @@ } hocr_text_buffer * -hocr_text_buffer_copy_hspell (const hocr_text_buffer const *text_buffer) +hocr_text_buffer_copy_hspell (const hocr_text_buffer *text_buffer) { hocr_text_buffer *new_text = NULL; char ch = '\0'; @@ -391,3 +391,4 @@ } #endif + --- hocr-0.8.2.orig/pixmaps/hocr-gtk.xpm +++ hocr-0.8.2/pixmaps/hocr-gtk.xpm @@ -0,0 +1,250 @@ +/* XPM */ +static char * hocr_gtk_xpm[] = { +"24 24 223 2", +" c None", +". c #000000", +"+ c #1C1C1C", +"@ c #2C2C2C", +"# c #353535", +"$ c #3E3E3E", +"% c #464646", +"& c #4C4C4C", +"* c #515151", +"= c #505050", +"- c #646464", +"; c #979797", +"> c #B8B8B8", +", c #666666", +"' c #082C64", +") c #043580", +"! c #053580", +"~ c #264F91", +"{ c #9DAEC9", +"] c #D9DFE8", +"^ c #F1F3F6", +"/ c #FCFCFC", +"( c #777777", +"_ c #083987", +": c #084BB3", +"< c #1C4B94", +"[ c #1D4A8F", +"} c #2C5AA1", +"| c #2862BC", +"1 c #9BB3D9", +"2 c #D6DEEB", +"3 c #C2C4C7", +"4 c #BFBFBF", +"5 c #D1D1D1", +"6 c #F9F9F9", +"7 c #030303", +"8 c #848484", +"9 c #113C7F", +"0 c #134DA9", +"a c #124CA6", +"b c #124AA3", +"c c #1A345E", +"d c #182740", +"e c #243756", +"f c #3062B0", +"g c #94A9CB", +"h c #C3CAD5", +"i c #6C6D6F", +"j c #7C7C7C", +"k c #D6D6D6", +"l c #E4E4E4", +"m c #DEDEDE", +"n c #E6E6E6", +"o c #0E0E0E", +"p c #8A8A8A", +"q c #1D498F", +"r c #1F57B1", +"s c #1E52A7", +"t c #1D51A4", +"u c #1E417A", +"v c #1A293F", +"w c #233148", +"x c #3863A9", +"y c #96AAC9", +"z c #BAC1CA", +"A c #67686A", +"B c #4E4E4E", +"C c #797979", +"D c #DADADA", +"E c #E0E0E0", +"F c #D8D8D8", +"G c #DCDCDC", +"H c #1A1A1A", +"I c #8E8E8E", +"J c #254C88", +"K c #235095", +"L c #2658A4", +"M c #2657A3", +"N c #274E8B", +"O c #1E2B40", +"P c #243041", +"Q c #3A5C91", +"R c #8C9DB9", +"S c #5F6061", +"T c #787878", +"U c #CFCFCF", +"V c #CECECE", +"W c #C8C8C8", +"X c #262626", +"Y c #949494", +"Z c #355E9D", +"` c #3B72C8", +" . c #3A72C7", +".. c #386CBC", +"+. c #222F44", +"@. c #283446", +"#. c #39547E", +"$. c #9DB0CC", +"%. c #C0C6D0", +"&. c #666768", +"*. c #D7D7D7", +"=. c #DDDDDD", +"-. c #303030", +";. c #989898", +">. c #4166A3", +",. c #487BCD", +"'. c #406EB7", +"). c #406EB8", +"!. c #3E6AB1", +"~. c #2C3D59", +"{. c #2A3546", +"]. c #354662", +"^. c #9BACC7", +"/. c #B7BCC4", +"(. c #636465", +"_. c #E1E1E1", +":. c #2E2E2E", +"<. c #9C9C9C", +"[. c #4A6EA6", +"}. c #507CC5", +"|. c #4E79C0", +"1. c #4972B4", +"2. c #4871B3", +"3. c #385077", +"4. c #2C3645", +"5. c #303B4D", +"6. c #91A0B7", +"7. c #B9BEC5", +"8. c #626364", +"9. c #717171", +"0. c #CBCBCB", +"a. c #CCCCCC", +"b. c #D4D4D4", +"c. c #282828", +"d. c #A0A0A0", +"e. c #5274A8", +"f. c #5F8BD0", +"g. c #5983C4", +"h. c #537AB7", +"i. c #5279B6", +"j. c #46638F", +"k. c #2E3746", +"l. c #303948", +"m. c #8C97AA", +"n. c #BDC2C8", +"o. c #828282", +"p. c #CACACA", +"q. c #C9C9C9", +"r. c #202020", +"s. c #A4A4A4", +"t. c #506D98", +"u. c #648AC6", +"v. c #6389C4", +"w. c #6288C3", +"x. c #6288C2", +"y. c #6082B8", +"z. c #343E4C", +"A. c #323B49", +"B. c #7E8590", +"C. c #737679", +"D. c #4B4C4C", +"E. c #A8A8A8", +"F. c #111111", +"G. c #A5A5A5", +"H. c #5E7CAA", +"I. c #779FDF", +"J. c #81A6E1", +"K. c #87A7DA", +"L. c #7790BA", +"M. c #3B4455", +"N. c #384150", +"O. c #45494F", +"P. c #4D4E50", +"Q. c #4F4F50", +"R. c #8D8D8D", +"S. c #D5D5D5", +"T. c #010101", +"U. c #5C79A8", +"V. c #597197", +"W. c #354052", +"X. c #343E50", +"Y. c #364050", +"Z. c #343E4F", +"`. c #41454D", +" + c #5F6165", +".+ c #A5A6A8", +"++ c #546E98", +"@+ c #6C90C9", +"#+ c #455A7B", +"$+ c #283547", +"%+ c #2F3E57", +"&+ c #475975", +"*+ c #5A7196", +"=+ c #A0ACBF", +"-+ c #CCD1D8", +";+ c #D8DADC", +">+ c #404040", +",+ c #474747", +"'+ c #555555", +")+ c #656565", +"!+ c #676767", +"~+ c #959595", +"{+ c #B9B9B9", +"]+ c #D3D3D3", +"^+ c #222222", +"/+ c #454545", +"(+ c #AEAEAE", +"_+ c #C3C3C3", +":+ c #BCBCBC", +"<+ c #C4C4C4", +"[+ c #C6C6C6", +"}+ c #868686", +"|+ c #6F6F6F", +"1+ c #626262", +"2+ c #5D5D5D", +"3+ c #616161", +"4+ c #939393", +"5+ c #A6A6A6", +"6+ c #4A4A4A", +"7+ c #2D2D2D", +"8+ c #727272", +"9+ c #2F2F2F", +"0+ c #121212", +" ", +" . + @ # $ % & & * = - ; > ", +" . , ' ) ) ) ) ! ~ ~ { ] ^ / / / / / / ", +" . ( _ : : : < [ } | 1 2 3 4 5 6 6 6 6 ", +" 7 8 9 0 a b c d e f g h i = j k l m n ", +" o p q r s t u v w x y z A B C D E F G ", +" H I J K L M N O P Q R z S & T U V W 5 ", +" X Y Z ` ` ...+.@.#.$.%.&.= C m *.G =. ", +" -.;.>.,.'.).!.~.{.].^./.(.& j *.k V _. ", +" :.<.[.}.|.1.2.3.4.5.6.7.8.& 9.U 0.a.b. ", +" c.d.e.f.g.h.i.j.k.l.m.n.= & o.5 p.q.U ", +" r.s.t.u.v.w.x.y.z.A.B.C.D.= E.V k 5 k ", +" F.G.H.I.I.J.K.L.M.N.O.P.Q.R.l F V p.S. ", +" T.d.U.I.I.V.W.X.Y.Z.`. +.+_._._._._._. ", +" . I ++@+@+#+$+%+&+*+=+-+;+m m m m m m ", +" . >+,+'+)+!+( o.I ~+{+0.]+k k k k k k ", +" . . . . T.^+/+(+_+a.V V V V V V ", +" * (+:+<+[+[+[+[+[+[+ ", +" >+, }+|+1+2+3+ ", +" /+4+5+~+6+ ", +" . 7+)+C 8+9+0+ ", +" . . . . . . . ", +" ", +" "}; --- hocr-0.8.2.orig/debian/libhocr0.files +++ hocr-0.8.2/debian/libhocr0.files @@ -0,0 +1,3 @@ +usr/lib/lib*.so.* +usr/share/man/man1/hocr.1 +usr/bin/hocr --- hocr-0.8.2.orig/debian/rules +++ hocr-0.8.2/debian/rules @@ -0,0 +1,107 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-perl --enable-python --with-perl-sitelib-dir=/usr/lib/perl5 + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples +# dh_install + dh_movefiles + dh_installmenu + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_perl + dh_pycentral + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- hocr-0.8.2.orig/debian/hocr-gtk.files +++ hocr-0.8.2/debian/hocr-gtk.files @@ -0,0 +1,5 @@ +usr/bin/hocr-gtk +usr/share/applications/* +usr/share/menu/* +usr/share/pixmaps/* +usr/share/locale/* --- hocr-0.8.2.orig/debian/copyright +++ hocr-0.8.2/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Lior Kaplan on +Fri, 2 Dec 2005 15:30:45 +0200. + +It was downloaded from http://hocr.berlios.de/ + +Copyright Holder: Yaacov Zamir + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- hocr-0.8.2.orig/debian/libhocr-dev.files +++ hocr-0.8.2/debian/libhocr-dev.files @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/lib/*.la +usr/share/pkgconfig/* --- hocr-0.8.2.orig/debian/libhocr-perl.files +++ hocr-0.8.2/debian/libhocr-perl.files @@ -0,0 +1 @@ +/usr/lib/perl5/* --- hocr-0.8.2.orig/debian/control +++ hocr-0.8.2/debian/control @@ -0,0 +1,63 @@ +Source: hocr +Priority: optional +Maintainer: Debian Hebrew Packaging Team +Uploaders: Baruch Even , Lior Kaplan , Shachar Shemesh +Build-Depends: debhelper (>= 5.0.37.2), autotools-dev, libgtkspell-dev, libgtk2.0-dev, gettext, pkg-config, swig, python-all-dev (>= 2.3.5-11), python-central (>= 0.5) +Standards-Version: 3.7.3 +Section: libs +XS-Python-Version: all +Vcs-Svn: svn://svn.debian.org/svn/debian-hebrew/pkg/hocr +Vcs-Browser: http://svn.debian.org/wsvn/debian-hebrew/pkg/hocr +Homepage: http://hocr.berlios.de/ + +Package: libhocr-dev +Section: libdevel +Architecture: any +Depends: libhocr0 (= ${binary:Version}) +Description: Developemnt files for hocr library + Libhocr is an Hebrew OCR (Optical character recognition) library written in + C/C++. + . + This package contains headers and support files required to build new + applications with libhocr. + +Package: libhocr0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: netpbm +Description: Hebrew OCR library + Libhocr is an Hebrew OCR (Optical character recognition) library written in + C/C++. + . + This package contains the libhocr library and the hocr command line utility, + which can process PBM file formats + +Package: hocr-gtk +Section: graphics +Architecture: any +Depends: ${shlibs:Depends}, aspell-he, ${misc:Depends} +Description: GTK+ frontend for Hebrew OCR + Hocr-gtk is a GTK+ based graphical interface to the libhocr library. It + can open multiple image formats and uses aspell for internal spell checking. + +Package: libhocr-python +Section: python +Architecture: any +Depends: libhocr0 (= ${binary:Version}), ${python:Depends} +XB-Python-Version: ${python:Versions} +Description: Hebrew OCR library Python bindings + Libhocr is an Hebrew OCR (Optical character recognition) library written in + C/C++. + . + This package contains Python bindings to libhocr. + +Package: libhocr-perl +Section: perl +Architecture: any +Depends: libhocr0 (= ${binary:Version}), ${perl:Depends} +Description: Hebrew OCR library Perl bindings + Libhocr is an Hebrew OCR (Optical character recognition) library written in + C/C++. + . + This package contains Perl bindings to libhocr. --- hocr-0.8.2.orig/debian/libhocr0.examples +++ hocr-0.8.2/debian/libhocr0.examples @@ -0,0 +1 @@ +debian/tmp/usr/share/hocr/tests/test1.pnm --- hocr-0.8.2.orig/debian/changelog +++ hocr-0.8.2/debian/changelog @@ -0,0 +1,72 @@ +hocr (0.8.2-6) unstable; urgency=low + + * Move Homepage from description to control field + * Add Vcs-* fields + * Do not ignore errors of make distclean + * Update Standards-Version to 3.7.3, no changes needed + + -- Baruch Even Sat, 29 Dec 2007 17:52:56 +0200 + +hocr (0.8.2-5) unstable; urgency=low + + * Change menu according to the new menu policy, s/Apps/Applications/ + + -- Baruch Even Thu, 05 Jul 2007 08:59:31 +0300 + +hocr (0.8.2-4) unstable; urgency=low + + * Update debian/control so packages are binNMU safe. + See http://wiki.debian.org/binNMU for more info. + + -- Lior Kaplan Fri, 22 Jun 2007 11:28:17 +0100 + +hocr (0.8.2-3) unstable; urgency=low + + [ Lior Kaplan ] + * Fix typo in libhocr-perl description (Closes: #405646) + + [ Baruch Even ] + * Upgrade dependency on python-central to >= 0.5 (Closes: #427281) + + -- Baruch Even Sun, 03 Jun 2007 02:28:13 +0300 + +hocr (0.8.2-2) unstable; urgency=low + + * Comply with the new Python policy. + + -- Lior Kaplan Wed, 5 Jul 2006 20:51:32 +0300 + +hocr (0.8.2-1) unstable; urgency=low + + * New upstream release + - Adds Swedish translation to hocr-gtk (Closes: #349735) + * debian/control: upgrade to standards version to 3.7.2.0 (no changes needed) + * debian/menu: add menu icon to hocr-gtk + + -- Lior Kaplan Sun, 21 May 2006 01:02:51 -0500 + +hocr (0.8-1) unstable; urgency=low + + * New upstream release + + -- Baruch Even Sun, 15 Jan 2006 21:19:01 +0000 + +hocr (0.7.1-2) unstable; urgency=low + + * Add bindings for Python & Perl. + * Add hocr-gtk to the Debian menu. + + -- Lior Kaplan Sat, 7 Jan 2006 11:53:40 +0200 + +hocr (0.7.1-1) unstable; urgency=low + + * New upstream release + + -- Lior Kaplan Tue, 3 Jan 2006 21:11:03 +0200 + +hocr (0.4.6-1) unstable; urgency=low + + * Initial release. Closes: #325342 + + -- Lior Kaplan Fri, 2 Dec 2005 15:30:45 +0200 + --- hocr-0.8.2.orig/debian/libhocr-dev.dirs +++ hocr-0.8.2/debian/libhocr-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- hocr-0.8.2.orig/debian/libhocr0.docs +++ hocr-0.8.2/debian/libhocr0.docs @@ -0,0 +1,2 @@ +BUGS +HACKING --- hocr-0.8.2.orig/debian/libhocr-perl.dirs +++ hocr-0.8.2/debian/libhocr-perl.dirs @@ -0,0 +1 @@ +/usr/lib/perl5 --- hocr-0.8.2.orig/debian/hocr-gtk.dirs +++ hocr-0.8.2/debian/hocr-gtk.dirs @@ -0,0 +1,4 @@ +usr/bin +usr/share/applications +usr/share/pixmaps +usr/share/locale --- hocr-0.8.2.orig/debian/hocr-gtk.examples +++ hocr-0.8.2/debian/hocr-gtk.examples @@ -0,0 +1,2 @@ +debian/tmp/usr/share/hocr/tests/test6.jpg +debian/tmp/usr/share/hocr/tests/test7.jpg --- hocr-0.8.2.orig/debian/hocr-gtk.menu +++ hocr-0.8.2/debian/hocr-gtk.menu @@ -0,0 +1,3 @@ +?package(hocr-gtk):needs="X11" section="Applications/Text"\ + title="hocr-gtk" command="/usr/bin/hocr-gtk" \ + icon="/usr/share/pixmaps/hocr-gtk.xpm" --- hocr-0.8.2.orig/debian/compat +++ hocr-0.8.2/debian/compat @@ -0,0 +1 @@ +4 --- hocr-0.8.2.orig/debian/watch +++ hocr-0.8.2/debian/watch @@ -0,0 +1,13 @@ +version=3 + +# The option downloadurlmangle can be used to mangle the URL of the file +# to download. This can only be used with http:// URLs. This may be +# necessary if the link given on the webpage needs to be transformed in +# some way into one which will work automatically, for example: +# opts=downloadurlmangle=s/prdownload/download/ \ +# http://developer.berlios.de/project/showfiles.php?group_id=2051 \ +# http://prdownload.berlios.de/softdevice/vdr-softdevice-(.*).tgz + +opts=downloadurlmangle=s/prdownload/download/ \ +http://developer.berlios.de/project/showfiles.php?group_id=4478 \ +http://prdownload.berlios.de/hocr/hocr-([\d\.]*).tar.gz --- hocr-0.8.2.orig/debian/libhocr0.dirs +++ hocr-0.8.2/debian/libhocr0.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/bin --- hocr-0.8.2.orig/debian/pycompat +++ hocr-0.8.2/debian/pycompat @@ -0,0 +1 @@ +2 --- hocr-0.8.2.orig/debian/libhocr-python.files +++ hocr-0.8.2/debian/libhocr-python.files @@ -0,0 +1 @@ +/usr/lib/python*/*