Last active
August 29, 2015 14:12
-
-
Save grepwood/c8cd6e01b84e32e7c5c8 to your computer and use it in GitHub Desktop.
Revisions
-
Michael Dec revised this gist
Jan 7, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,6 +26,6 @@ function stop_being_silly { } emerge --sync -q if command -v layman >/dev/null; then layman -Sq; fi fix_qt4_ebuilds stop_being_silly -
Michael Dec revised this gist
Jan 7, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,8 +4,8 @@ function fix_qt4_ebuilds { ELEMENT=(core dbus gui script svg) JOB_PID=$$ for((COUNTER=0, ARRAY_SIZE=${#ELEMENT[*]}; COUNTER < ARRAY_SIZE; ++COUNTER)) do CCURRENT_ELEMENT=${ELEMENT[COUNTER]} EBUILD=`ls qt$CURRENT_ELEMENT/qt$CURRENT_ELEMENT-4*.ebuild | tail -n1` if [ "`grep ^IUSE $EBUILD | grep c\+\+0x | wc -l`" -eq "0" ]; then cat $EBUILD | sed 's/^IUSE=\"/IUSE=\"c\+\+0x\ /' > ebuild.$JOB_PID mv ebuild.$JOB_PID $EBUILD -
Michael Dec created this gist
Jan 6, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ #!/bin/bash function fix_qt4_ebuilds { pushd /usr/portage/dev-qt ELEMENT=(core dbus gui script svg) JOB_PID=$$ for((COUNTER=0, ARRAY_SIZE=${#ELEMENT[*]}; COUNTER < ARRAY_SIZE; ++COUNTER)) do CURRENT_ELEMENT=$ELEMENT[COUNTER] EBUILD=`ls qt$ELEMENT/qt$ELEMENT-4*.ebuild | tail -n1` if [ "`grep ^IUSE $EBUILD | grep c\+\+0x | wc -l`" -eq "0" ]; then cat $EBUILD | sed 's/^IUSE=\"/IUSE=\"c\+\+0x\ /' > ebuild.$JOB_PID mv ebuild.$JOB_PID $EBUILD ebuild $EBUILD digest else echo "$EBUILD already contains c++0x" fi done popd } function stop_being_silly { pushd /usr/portage/profiles JOB_PID=$$ sed 's/^qt5$//' base/use.mask > $JOB_PID mv $JOB_PID base/use.mask popd } emerge --sync -q if command -v layman; then layman -Sq; fi fix_qt4_ebuilds stop_being_silly