Bi-monthly release with minor bug fixes and improvements
mkdir -p /usr/local/lib/libexec
$ >brew remove qt5
$ >brew uninstall `brew list -1 | grep '^kf5-'`
$ >rm -rf ~/Library/Caches/Homebrew/kf5-*
$ >brew untap haraldf/kf5
$ >ls /usr/local/Homebrew/Library/Taps
homebrew/ jamiesmith/
brew tap haraldf/kf5
# Note that I changed the sed separator so I only have to escape the quotes
sed -i '' "s@*args@\"-DCMAKE_PREFIX_PATH=/Users/jamie/Qt5.7.0/5.7/clang_64/\", *args@g" *.rb
# Sample line from one of the files
Mine: system "cmake", ".", "-DCMAKE_PREFIX_PATH=/Users/jamie/Qt5.7.0/5.7/clang_64/", *args
Stephane's system "cmake", ".", "-DCMAKE_PREFIX_PATH=/Users/stephanelucas/Qt5.7.0/5.7/clang_64/", *args
sed -i '' '/depends_on "qt5"/,/^/d' *.rb
brew install haraldf/kf5/kf5-kcoreaddons
brew install haraldf/kf5/kf5-kauth
$ >cd /usr/local/lib/libexec
$ >pwd
/usr/local/lib/libexec
$ >/bin/pwd
/usr/local/lib/libexec
Ok.
$ >ls -lF
total 0
drwxr-xr-x 3 jamie admin 102 Nov 21 18:34 kauth/
$ >ls -lF ../../
total 20
-rw-r--r-- 1 jamie admin 476 Nov 21 18:34 INSTALL_RECEIPT.json
-rw-r--r-- 1 jamie admin 1423 Aug 7 09:34 README.md
drwxr-xr-x 3 jamie admin 102 Nov 21 18:34 etc/
drwxr-xr-x 3 jamie admin 102 Nov 21 18:34 include/
-rw-r--r-- 1 jamie admin 10010 Nov 21 18:34 install_manifest.txt
drwxr-xr-x 8 jamie admin 272 Nov 21 18:34 lib/
drwxr-xr-x 3 jamie admin 102 Nov 21 18:34 mkspecs/
drwxr-xr-x 4 jamie admin 136 Nov 21 18:34 share/
OK, why isn't there a Cellar there?
$ >cd ../../
$ >pwd
/usr/local
$ >/bin/pwd
/usr/local
SO- if I do an ls here what will be there? Should be what is in the ls ../.. Right? So no Cellar?
$ >ls -l
total 0
drwxrwxr-x 64 jamie admin 2176 Nov 21 18:34 Cellar/
drwxrwxr-x 3 jamie admin 102 Nov 20 17:21 Frameworks/
drwxrwxr-x 16 jamie admin 544 Nov 20 17:16 Homebrew/
drwxrwxr-x 844 jamie admin 28696 Nov 21 18:34 bin/
drwxrwxr-x 12 jamie admin 408 Nov 21 15:34 etc/
drwxrwxr-x 78 jamie admin 2652 Nov 21 18:34 include/
drwxrwxr-x 320 jamie admin 10880 Nov 21 18:34 lib/
drwxrwxr-x 64 jamie admin 2176 Nov 21 18:34 opt/
drwxrwxr-x 2 jamie admin 68 Nov 20 17:16 sbin/
drwxrwxr-x 38 jamie admin 1292 Nov 21 18:34 share/
drwxrwxr-x 6 jamie admin 204 Nov 21 10:02 var/
Not even close to the same. Bash is so weird.
mkdir -p /usr/local/lib/libexec
function installPatchedKf5Stuff
{
if [ -d ~/Qt/5.7/clang_64 ]
then
export SUBSTITUTE=~/Qt/5.7/clang_64
elif [ -d ~/Qt5.7.0/5.7/clang_64 ]
then
export SUBSTITUTE=~/Qt5.7.0/5.7/clang_64
else
echo "Cannot figure out where QT is."
exit 9
fi
brew tap haraldf/kf5
cd $(brew --repo haraldf/homebrew-kf5)
echo $SUBSTITUTE
count=$(cat *.rb | grep -c CMAKE_PREFIX_PATH)
if [ $count -le 1 ]
then
echo "Hacking kf5 Files"
sed -i '' "s@*args@\"-DCMAKE_PREFIX_PATH=${SUBSTITUTE}\", *args@g" *.rb
sed -i '' '/depends_on "qt5"/,/^/d' *.rb
else
echo "kf5 Files already hacked, er, patched, skipping"
fi
brew link --force gettext
mkdir -p /usr/local/lib/libexec
brewInstallIfNeeded haraldf/kf5/kf5-kcoreaddons
brewInstallIfNeeded haraldf/kf5/kf5-kauth
brewInstallIfNeeded haraldf/kf5/kf5-kcrash
brewInstallIfNeeded haraldf/kf5/kf5-knotifications
brewInstallIfNeeded haraldf/kf5/kf5-kplotting
brewInstallIfNeeded haraldf/kf5/kf5-kxmlgui
brewInstallIfNeeded haraldf/kf5/kf5-kdoctools
brewInstallIfNeeded haraldf/kf5/kf5-knewstuff
cd - > /dev/null
}