James-E-A / squeegily

[DEAD] Gentoo ebuilds with aspirations of superlative quality
0 stars 0 forks source link

Pale Moon: tidy src_configure #8

Closed James-E-A closed 7 years ago

James-E-A commented 7 years ago

Need to make src_configure a bit more succinct and stuff.

Mainly turning stuff like this:

    if use alsa; then
     ac_opt "--enable-alsa"
    fi

into e.g.,

    use_enable alsa
James-E-A commented 7 years ago

Done! 032f274a821cb382483cdd3ac8fbccc57ce7d91d

I highly recommend you check out the above commit; I think the new moz_use function has a lot of potential to simplify this situation as arguments are added and such.

I mean, just check this out:

    moz_use devtools    enable
    moz_use "!" ffmpeg  disable
    moz_use jemalloc    enable
    moz_use jemalloc    enable  jemalloc-lib
    moz_use dbus        enable  startup-notification
    moz_use "!" dbus    disable
    moz_use "!" cups    disable printing
    moz_use alsa        enable
    moz_use "!" pulseaudio  disable
    moz_use gold        enable
    moz_use threads     with    pthreads
    moz_use system-nspr with
    moz_use system-libevent with
    moz_use system-nss  with
    moz_use system-jpeg with
    moz_use system-zlib with
    moz_use system-bz2  with
    moz_use system-webp with
    moz_use system-png  with
    moz_use system-spell    enable  system-hunspell
    moz_use system-ffi  enable
    moz_use system-vpx  with    system-libvpx
    moz_use system-sqlite   enable
    moz_use system-cairo    enable
    moz_use system-pixman   enable
    moz_use system-icu  enable

beautiful, clean…probably the best interface we're going to get to this in a good while.