Print this page
Remove Python 2.6
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/mercurial/build.sh
+++ new/build/mercurial/build.sh
1 1 #!/usr/bin/bash
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License, Version 1.0 only
7 7 # (the "License"). You may not use this file except in compliance
8 8 # with the License.
9 9 #
10 10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 # or http://www.opensolaris.org/os/licensing.
12 12 # See the License for the specific language governing permissions
13 13 # and limitations under the License.
14 14 #
15 15 # When distributing Covered Code, include this CDDL HEADER in each
16 16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 17 # If applicable, add the following below this CDDL HEADER, with the
18 18 # fields enclosed by brackets "[]" replaced with your own identifying
19 19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 20 #
21 21 # CDDL HEADER END
22 22 #
23 23 #
24 24 # Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Use is subject to license terms.
|
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
26 26 #
27 27 # Load support functions
28 28 . ../../lib/functions.sh
29 29
30 30 PROG=mercurial
31 31 VER=3.9.2
32 32 PKG=developer/versioning/mercurial
33 33 SUMMARY="$PROG - a free and open source, distributed version control system"
34 34 DESC="$SUMMARY"
35 35
36 -DEPENDS_IPS="runtime/python-26 \
36 +DEPENDS_IPS="runtime/python-27 \
37 37 web/curl \
38 38 library/security/openssl@1.0.2
39 39 library/zlib"
40 40
41 41 # For inet_ntop which isn't detected properly in the configure script
42 42 CONFIGURE_OPTS=""
43 43
44 44 PYTHONPATH=/usr
45 -PYTHON=$PYTHONPATH/bin/python2.6
45 +PYTHON=$PYTHONPATH/bin/python2.7
46 46 PYTHONLIB=$PYTHONPATH/lib
47 47
48 48 python_build() {
49 49 logmsg "Building using python setup.py"
50 50 pushd $TMPDIR/$BUILDDIR > /dev/null
51 51 ISALIST=i386
52 52 export ISALIST
53 53 logmsg "--- setup.py (32) build"
54 54 logcmd $PYTHON ./setup.py build ||
55 55 logerr "--- build failed"
56 56 logmsg "--- setup.py (32) install"
57 57 logcmd $PYTHON \
58 58 ./setup.py install --root=$DESTDIR ||
59 59 logerr "--- install failed"
60 60
61 61 ISALIST="amd64 i386"
|
↓ open down ↓ |
6 lines elided |
↑ open up ↑ |
62 62 export ISALIST
63 63 logmsg "--- setup.py (64) build"
64 64 logcmd $PYTHON ./setup.py build ||
65 65 logerr "--- build failed"
66 66 logmsg "--- setup.py (64) install"
67 67 logcmd $PYTHON \
68 68 ./setup.py install --root=$DESTDIR ||
69 69 logerr "--- install failed"
70 70 popd > /dev/null
71 71
72 - mv $DESTDIR/usr/lib/python2.6/site-packages $DESTDIR/usr/lib/python2.6/vendor-packages ||
72 + mv $DESTDIR/usr/lib/python2.7/site-packages $DESTDIR/usr/lib/python2.7/vendor-packages ||
73 73 logerr "Cannot move from site-packages to vendor-packages"
74 74 }
75 75
76 76 init
77 77 download_source $PROG $PROG $VER
78 78 patch_source
79 79 prep_build
80 80 python_build
81 81 make_package
82 82 clean_up
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX