Skip to content

Commit ad77f62

Browse files
author
gabriel pettier
committed
add patch flags for recipes, set pyasn1 dependency
1 parent 6cf6f0c commit ad77f62

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

recipes/gnutls/recipe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
VERSION_gnutls=3.3.16
4-
DEPS_gnutls=(nettle)
4+
DEPS_gnutls=(nettle pyasn1)
55
URL_gnutls=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-${VERSION_gnutls}.tar.xz
66
BUILD_gnutls=$BUILD_PATH/gnutls/$(get_directory $URL_gnutls)
77
RECIPE_gnutls=$RECIPES_PATH/gnutls

recipes/nettle/recipe.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ _src=$BUILD_nettle
1010

1111
function prebuild_nettle() {
1212
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
1519
}
1620

1721
function shouldbuild_nettle() {

recipes/task/recipe.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ _pyroot=$(dirname `dirname $HOSTPYTHON`)
1414
function prebuild_task() {
1515
# take the patch from the recipe
1616
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
1924

2025
cp $RECIPE_task/glob.* $BUILD_task/src
2126

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy