Commits
Zero King authored dfc930d2ad8
1 1 | |
2 + | set -e |
2 3 | curl -fsSLO "https://raw.githubusercontent.com/Homebrew/install/master/uninstall" |
3 4 | chmod 0755 uninstall && ./uninstall -fq && rm -f uninstall |
4 5 | /usr/bin/sudo /usr/bin/find /usr/local -mindepth 2 -delete && hash -r |
5 6 | export OS_MAJOR=$(uname -r | cut -f 1 -d .) |
6 7 | export MP_VER=v2.4.1a |
7 8 | curl -fsSLO "https://dl.bintray.com/macports-ci-bot/macports-base/MacPorts-${MP_VER}-${OS_MAJOR}.tar.bz2" |
8 9 | sudo tar -xpf "MacPorts-${MP_VER}-${OS_MAJOR}.tar.bz2" -C / |
9 10 | rm -f "MacPorts-${MP_VER}-${OS_MAJOR}.tar.bz2" |
10 11 | unset CC && source /opt/local/share/macports/setupenv.bash |
11 12 | sudo sed -i "" "s|rsync://rsync.macports.org/macports/release/tarballs/ports.tar|file://${PWD}|; /^file:/s/default/nosync,default/" /opt/local/etc/macports/sources.conf |
12 13 | echo "ui_interactive no" | sudo tee -a /opt/local/etc/macports/macports.conf |
13 14 | rsync -zvl "rsync://rsync.macports.org/macports/release/ports/PortIndex_darwin_${OS_MAJOR}_i386/PortIndex*" . |
14 15 | git remote add macports https://github.com/macports/macports-ports.git |
15 16 | git fetch macports master |
16 17 | git checkout -qf macports/master |
17 18 | git checkout -qf - |
19 + | sudo patch /opt/local/bin/portindex _ci/patch-portindex.diff |
18 20 | portindex |
19 21 | sudo /opt/local/postflight && sudo rm -f /opt/local/postflight |
20 22 | git clone --depth 1 https://github.com/macports/mpbb.git ../mpbb |
21 23 | export PATH="${PWD}/../mpbb:$PATH" |
22 24 | curl -fsSLO "https://dl.bintray.com/macports-ci-bot/getopt/getopt-v1.1.6.tar.bz2" |
23 25 | sudo tar -xpf "getopt-v1.1.6.tar.bz2" -C / |
24 26 | export PATH="/opt/mports/bin:$PATH" && hash -r |
25 27 | curl -fsSLO "https://github.com/macports/mpbot-github/releases/download/v0.0.1/runner" |
26 28 | chmod 0755 runner |