Ticket #52742: variants-mpbb-fully-outdated.diff
File variants-mpbb-fully-outdated.diff, 2.6 KB (added by mojca (Mojca Miklavec), 8 years ago) |
---|
-
mpbb
8 8 option_default_archive_site=https://packages.macports.org 9 9 option_default_help=0 10 10 option_default_port= 11 option_default_variants= 11 12 option_default_prefix=/opt/local 12 13 option_default_staging_dir=${PWD:-/tmp/mp-buildbot}/archive-staging 13 14 option_default_svn=$(which svn) … … 18 19 option_archive_site=$option_default_archive_site 19 20 option_help=$option_default_help 20 21 option_port=$option_default_port 22 option_variants=$option_default_variants 21 23 option_prefix=$option_default_prefix 22 24 option_staging_dir=$option_default_staging_dir 23 25 option_svn=$option_default_svn … … 135 137 option_port=$2 136 138 shift 137 139 ;; 140 --variants) 141 option_variants=$2 142 shift 143 ;; 138 144 --prefix) 139 145 option_prefix=$2 140 146 shift -
mpbb-install-dependencies
26 26 > "$log_status_dependencies" 27 27 28 28 # calculate list of dependencies in-order 29 dependencies=$("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/dependencies.tcl" "${option_port}" )29 dependencies=$("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/dependencies.tcl" "${option_port}" ${option_variants}) 30 30 if [ $? -ne 0 ]; then 31 31 echo "Calculating dependencies for '${option_port}' failed, aborting." >&2 32 32 echo "[FAIL dependencies]" >> "$log_subports_progress" … … 60 60 text="Installing dependency ($dependencies_counter of $dependencies_count) '${depname}' with variants '${depvariants}'" 61 61 echo "----> ${text}" 62 62 echo -n "${text} ... " >> "$log_status_dependencies" 63 if ! "${option_prefix}/bin/port" -d install --unrequested "$depname" $depvariants ; then63 if ! "${option_prefix}/bin/port" -d install --unrequested "$depname" $depvariants ${option_variants}; then 64 64 echo "Build of dependency '${depname}' failed, aborting." >&2 65 65 echo "[FAIL]" >> "$log_status_dependencies" 66 66 echo "[FAIL dependency '${depname}']" >> "$log_subports_progress" -
mpbb-install-port
29 29 echo -n "- Installing ${option_port} ... " >> "$log_subports_progress" 30 30 31 31 local time_start=$(date +%s) 32 if ! "${option_prefix}/bin/port" -dk install "${option_port}" ; then32 if ! "${option_prefix}/bin/port" -dk install "${option_port}" ${option_variants}; then 33 33 echo "Build of '${option_port}' failed." 34 34 echo "[FAIL]" >> "$log_subports_progress" 35 35 return 1