File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,21 @@ before_install:
27
27
28
28
- if [[ $OSX ]]; then brew update; fi
29
29
30
+ - export LEPT_VER=1.72
31
+
30
32
install :
31
33
- if [[ $OSX ]]; then brew install icu4c pango; brew link --force gettext; fi
32
34
- if [[ $OSX ]]; then export ICU_ROOT=/usr/local/opt/icu4c ; fi
33
35
- wget --no-check-certificate https://www.cmake.org/files/v3.3/cmake-3.3.1-Linux-x86_64.sh
34
36
- sudo sh cmake-3.3.1-Linux-x86_64.sh --skip-license --prefix=/usr
35
- - wget -O leptonica.zip https://github.com/egorpugin /leptonica/archive/master .zip
37
+ - wget -O leptonica.zip https://github.com/DanBloomberg /leptonica/archive/v$LEPT_VER .zip
36
38
- unzip leptonica.zip -d .
37
- - cmake -Hleptonica-master -Bleptonica-master /build
38
- - make -C leptonica-master /build
39
+ - cmake -Hleptonica-$LEPT_VER -Bleptonica-$LEPT_VER /build
40
+ - make -C leptonica-$LEPT_VER /build
39
41
- if [[ $LINUX && "$CXX" = "g++" ]]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
40
42
41
43
script :
42
44
- mkdir build
43
45
- cd build
44
- - cmake .. -DLeptonica_BUILD_DIR=leptonica-master /build
46
+ - cmake .. -DLeptonica_BUILD_DIR=leptonica-$LEPT_VER /build
45
47
- make
Original file line number Diff line number Diff line change @@ -12,13 +12,16 @@ before_build:
12
12
- if %platform%==Win64 set generator=Visual Studio 14 Win64
13
13
- if %platform%==Win32 set vcplatform=Win32
14
14
- if %platform%==Win64 set vcplatform=x64
15
- - ps : Start-FileDownload 'https://github.com/egorpugin/leptonica/archive/master.zip' -FileName leptonica.zip
15
+
16
+ - set LEPT_VER=1.72
17
+
18
+ - ps : Start-FileDownload 'https://github.com/DanBloomberg/leptonica/archive/v%LEPT_VER%.zip' -FileName leptonica.zip
16
19
- 7z x leptonica.zip
17
- - cmake -Hleptonica-master -Bleptonica-master /build -G "%generator%"
18
- - msbuild leptonica-master /build/leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
20
+ - cmake -Hleptonica-%LEPT_VER% -Bleptonica-%LEPT_VER% /build -G "%generator%"
21
+ - msbuild leptonica-%LEPT_VER% /build/leptonica.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
19
22
20
23
build_script :
21
24
- mkdir build
22
25
- cd build
23
- - cmake .. -G "%generator%" -DLeptonica_BUILD_DIR=leptonica-master /build -DSTATIC=1
26
+ - cmake .. -G "%generator%" -DLeptonica_BUILD_DIR=leptonica-%LEPT_VER% /build -DSTATIC=1
24
27
- msbuild tesseract.sln /p:Platform=%vcplatform% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
You can’t perform that action at this time.
0 commit comments