logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git
commit: de81257d5cfd063c13c2d2e74050252e4dbb2e79
parent cec239a8909f75e0b343cdae02b2a9323aad7f6d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  6 Dec 2024 03:59:22 +0100

bashrc: use -c option of deblob

Diffstat:

Mbashrc20++++++++++++++------
Adeblob.ignore7+++++++
Dgo-deblob.reject3---
3 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/bashrc b/bashrc @@ -5,12 +5,20 @@ if [ "${EBUILD_PHASE}" == "postinst" ] || [ "${EBUILD_PHASE}" == "postrm" ]; the makewhatis -Q -T utf8 ${MANPATH//:/ } fi -if [ "${EBUILD_PHASE}" == "prepare" ]; then - if grep -q -- '-bin$' <<<"${PN}"; then +# Will be ran before configure phase, allowing ebuild to delete blobs themselves in the prepare phase +post_src_prepare() { + local blob_found=0 + if fgrep -q -- '-bin$' <<<"${PN}"; then echo ":: *-bin package, not deblobbing" - elif grep -q -- "${PN}" /etc/portage/go-deblob.reject; then - echo ":: package is in /etc/portage/go-deblob.reject, not deblobbing" + elif fgrep -q -- "${PN}" /etc/portage/deblob.ignore; then + echo ":: package is in /etc/portage/deblob.ignore, no removals" + deblob -c -n -e '*/test*/*' -e '*/t/*' -d "${WORKDIR}" || blob_found=1 else - go-deblob -e 'test*' -e '*/test*' -d "${WORKDIR}" + deblob -c -e '*/test*/*' -e '*/t/*' -d "${WORKDIR}" || blob_found=1 fi -fi + + if [ $blob_found = 1 ]; then + eqawarn "blobs have been found by deblob, see build.log" + fi +} + diff --git a/deblob.ignore b/deblob.ignore @@ -0,0 +1,7 @@ +games-arcade/crypt_of_the_necrodancer +sys-kernel/linux-firmware +games-misc/papers-please +dev-lang/erlang +media-libs/fmod +app-emulation/wine-mono +dev-lang/mono diff --git a/go-deblob.reject b/go-deblob.reject @@ -1,3 +0,0 @@ -dev-lang/crystal -app-emulation/qemu -dev-lang/ghc