Update .local/share/chezmoi/home/dot_local/bin/executable_install-program
This commit is contained in:
parent
f8a8c694d1
commit
5d2d8366de
1 changed files with 21 additions and 6 deletions
|
@ -867,12 +867,27 @@ async function ensurePackageManager(packageManager) {
|
||||||
} else if (packageManager === "pkg") {
|
} else if (packageManager === "pkg") {
|
||||||
await ensureInstalled("pkg", false);
|
await ensureInstalled("pkg", false);
|
||||||
} else if (packageManager === "port") {
|
} else if (packageManager === "port") {
|
||||||
|
const port = which.sync('port', { nothrow: true })
|
||||||
|
if (!port) {
|
||||||
|
log('info', logStage, `Installing ${packageManager}`)
|
||||||
await ensureInstalled(
|
await ensureInstalled(
|
||||||
"port",
|
"port",
|
||||||
$`
|
$`
|
||||||
echo -n "TODO - script that installs port on macOS here"
|
sudo mkdir -p /opt/mports
|
||||||
|
cd /opt/mports
|
||||||
|
sudo git clone https://github.com/macports/macports-base.git
|
||||||
|
cd macports-base
|
||||||
|
sudo git checkout v2.8.0
|
||||||
|
./configure --enable-readline
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
make distclean
|
||||||
`
|
`
|
||||||
);
|
);
|
||||||
|
log('info', logStage, `${packageManager} is now installed`)
|
||||||
|
} else {
|
||||||
|
log("info", logStage, `\`port\` is available`);
|
||||||
|
}
|
||||||
} else if (packageManager === "scoop") {
|
} else if (packageManager === "scoop") {
|
||||||
await ensureInstalled(
|
await ensureInstalled(
|
||||||
"scoop",
|
"scoop",
|
||||||
|
|
Loading…
Reference in a new issue