File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
VERSION_gnutls=3.3.16
4
- DEPS_gnutls=(nettle)
4
+ DEPS_gnutls=(nettle pyasn1 )
5
5
URL_gnutls=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-${VERSION_gnutls} .tar.xz
6
6
BUILD_gnutls=$BUILD_PATH /gnutls/$( get_directory $URL_gnutls )
7
7
RECIPE_gnutls=$RECIPES_PATH /gnutls
Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ _src=$BUILD_nettle
10
10
11
11
function prebuild_nettle() {
12
12
cd $_src
13
- try patch -p1 < $RECIPE_nettle /configure.patch
14
- true
13
+ if [ ! -e $RECIPE_nettle /patched ]; then
14
+ do
15
+ try patch -p1 < $RECIPE_nettle /configure.patch
16
+ touch $RECIPE_nettle /patched
17
+ done
18
+ fi
15
19
}
16
20
17
21
function shouldbuild_nettle() {
Original file line number Diff line number Diff line change @@ -14,8 +14,13 @@ _pyroot=$(dirname `dirname $HOSTPYTHON`)
14
14
function prebuild_task() {
15
15
# take the patch from the recipe
16
16
cd $BUILD_task
17
- patch -p1 < $RECIPE_task /CMakeLists.txt.patch
18
- patch -p1 < $RECIPE_task /Nibbler.h.patch
17
+ if [ ! -e $RECIPE_task /patched ]; then
18
+ do
19
+ patch --forward -p1 < $RECIPE_task /CMakeLists.txt.patch
20
+ patch --forward -p1 < $RECIPE_task /Nibbler.h.patch
21
+ touch $RECIPE_task /patched
22
+ done
23
+ fi
19
24
20
25
cp $RECIPE_task /glob.* $BUILD_task /src
21
26
You can’t perform that action at this time.
0 commit comments