-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython36-base.sh
34 lines (26 loc) · 935 Bytes
/
python36-base.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
. base.sh
# doplneni promennych do mk.conf
MKCONF_PATH=$PREFIX/conf/mk.conf
props="PYTHON_DEFAULT_VERSION=\t36 PYTHON_VERSION_DEFAULT=\t36 PYPACKAGE=\t\tpython36 PKG_OPTIONS.python36=\t-x11"
for prop in $props
do
_nol=`perl -nle "print if m/$prop/" $MKCONF_PATH | wc -l`
if [ $_nol -eq 0 ]; then
$SED "s/(\.endif.*)/$prop\n\1/g" $MKCONF_PATH || exit 1
fi
done
# build a instalace
# elftoolchain
#_nol=`$PREFIX/sbin/pkg_info |$GREP elftoolchain |wc -l`
#if [ $_nol -eq 0 ]; then
# (cd ${PKGSRC_BASE}/pkgsrc/devel/elftoolchain && bmake install clean clean-depends) || exit 1
#fi
# python
_nol=`$PREFIX/sbin/pkg_info |$GREP python36 |wc -l`
if [ $_nol -eq 0 ]; then
(cd ${PKGSRC_BASE}/pkgsrc/lang/python36 && bmake install clean clean-depends) || exit 1
fi
#if [ ! -f "${PREFIX}/conf/openssl/certs/ca-certificates.crt" ]; then
# ${PREFIX}/sbin/mozilla-rootcerts install || exit 1
#fi