Print this page
Remove Python 2.6
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/git/build.sh
+++ new/build/git/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 2011-2016 OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 # Copyright (c) 2014 by Delphix. All rights reserved.
27 27 #
28 28 # Load support functions
|
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
29 29 . ../../lib/functions.sh
30 30
31 31 PROG=git
32 32 VER=2.10.0
33 33 PKG=developer/versioning/git
34 34 SUMMARY="$PROG - a free and open source, distributed version control system"
35 35 DESC="$SUMMARY"
36 36
37 37 BUILD_DEPENDS_IPS="compatibility/ucb developer/build/autoconf archiver/gnu-tar"
38 38
39 -DEPENDS_IPS="runtime/python-26 \
39 +DEPENDS_IPS="runtime/python-27 \
40 40 web/curl \
41 41 library/security/openssl@1.0.2 \
42 42 library/zlib"
43 43
44 44 TAR=gtar
45 45
46 46 # For inet_ntop which isn't detected properly in the configure script
47 47 LDFLAGS="-lnsl"
48 48 CFLAGS64="$CFLAGS64 -I/usr/include/amd64"
49 +# Explicitly call out python version to make future python version bumps
50 +# smoother.
49 51 CONFIGURE_OPTS="--without-tcltk
50 - --with-python=/usr/bin/python
52 + --with-python=/usr/bin/python2.7
51 53 --with-curl=/usr
52 54 --with-openssl=/usr"
53 55
54 56 save_function configure32 configure32_orig
55 57 configure32() {
56 58 make_param configure
57 59 configure32_orig
58 60 }
59 61
60 62 save_function configure64 configure64_orig
61 63 configure64() {
62 64 make_param configure
63 65 configure64_orig
64 66 }
65 67
66 68 install_man() {
67 69 logmsg "Fetching and installing pre-built man pages"
68 70 if [[ ! -f ${TMPDIR}/${PROG}-manpages-${VER}.tar.gz ]]; then
69 71 pushd $TMPDIR > /dev/null
70 72 get_resource $PROG/${PROG}-manpages-${VER}.tar.gz || \
71 73 logerr "--- Failed to fetch tarball"
72 74 popd > /dev/null
73 75 fi
74 76 logcmd mkdir -p ${DESTDIR}${PREFIX}/share/man
75 77 pushd ${DESTDIR}${PREFIX}/share/man > /dev/null
76 78 extract_archive ${TMPDIR}/${PROG}-manpages-${VER}.tar.gz || \
77 79 logerr "--- Error extracting archive"
78 80 popd > /dev/null
79 81 }
80 82
81 83 init
82 84 download_source $PROG $PROG $VER
83 85 patch_source
84 86 prep_build
85 87 build
86 88 make_isa_stub
87 89 install_man
88 90 make_package
89 91 clean_up
|
↓ open down ↓ |
29 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX