diff options
author | Eugene Bright <eugene@bright.gdn> | 2019-09-17 20:51:36 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2019-10-12 19:00:44 +0300 |
commit | 661cae5ff107fb5d58f21bb0e0dcd5dcec83c190 (patch) | |
tree | 65cd3a38449a0d7a6b80eb3b34fc0cb13a0c4e0a /sys-apps/flashrom/flashrom-9999.ebuild | |
parent | sys-apps/flashrom: remove old (diff) | |
download | gentoo-661cae5ff107fb5d58f21bb0e0dcd5dcec83c190.tar.gz gentoo-661cae5ff107fb5d58f21bb0e0dcd5dcec83c190.tar.bz2 gentoo-661cae5ff107fb5d58f21bb0e0dcd5dcec83c190.zip |
sys-apps/flashrom: Get rid of underscore in IUSE
Closes: https://bugs.gentoo.org/694664
Signed-off-by: Eugene Bright <eugene@bright.gdn>
Closes: https://github.com/gentoo/gentoo/pull/13204
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-apps/flashrom/flashrom-9999.ebuild')
-rw-r--r-- | sys-apps/flashrom/flashrom-9999.ebuild | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/sys-apps/flashrom/flashrom-9999.ebuild b/sys-apps/flashrom/flashrom-9999.ebuild index 30b34fa616aa..873ed5612b84 100644 --- a/sys-apps/flashrom/flashrom-9999.ebuild +++ b/sys-apps/flashrom/flashrom-9999.ebuild @@ -26,74 +26,74 @@ IUSE_PROGRAMMERS=" atahpt +atapromise +atavia - +buspirate_spi - +ch341a_spi + +buspirate-spi + +ch341a-spi +dediprog - +developerbox_spi - +digilent_spi + +developerbox-spi + +digilent-spi +drkaiser +dummy - +ft2232_spi + +ft2232-spi +gfxnvidia +internal +it8212 - jlink_spi - +linux_mtd - +linux_spi - mstarddc_spi + jlink-spi + +linux-mtd + +linux-spi + mstarddc-spi +nic3com +nicintel - +nicintel_eeprom - +nicintel_spi + +nicintel-eeprom + +nicintel-spi nicnatsemi +nicrealtek - +ogp_spi - +pickit2_spi - +pony_spi - +rayer_spi + +ogp-spi + +pickit2-spi + +pony-spi + +rayer-spi +satamv +satasii +serprog - +usbblaster_spi + +usbblaster-spi " -IUSE="${IUSE_PROGRAMMERS} +internal_dmi static tools +wiki" +IUSE="${IUSE_PROGRAMMERS} +internal-dmi static tools +wiki" LIB_DEPEND=" atahpt? ( sys-apps/pciutils[static-libs(+)] ) atapromise? ( sys-apps/pciutils[static-libs(+)] ) atavia? ( sys-apps/pciutils[static-libs(+)] ) - ch341a_spi? ( virtual/libusb:1[static-libs(+)] ) + ch341a-spi? ( virtual/libusb:1[static-libs(+)] ) dediprog? ( virtual/libusb:1[static-libs(+)] ) - developerbox_spi? ( virtual/libusb:1[static-libs(+)] ) - digilent_spi? ( virtual/libusb:1[static-libs(+)] ) + developerbox-spi? ( virtual/libusb:1[static-libs(+)] ) + digilent-spi? ( virtual/libusb:1[static-libs(+)] ) drkaiser? ( sys-apps/pciutils[static-libs(+)] ) - ft2232_spi? ( dev-embedded/libftdi:=[static-libs(+)] ) + ft2232-spi? ( dev-embedded/libftdi:=[static-libs(+)] ) gfxnvidia? ( sys-apps/pciutils[static-libs(+)] ) internal? ( sys-apps/pciutils[static-libs(+)] ) it8212? ( sys-apps/pciutils[static-libs(+)] ) - jlink_spi? ( dev-embedded/libjaylink[static-libs(+)] ) + jlink-spi? ( dev-embedded/libjaylink[static-libs(+)] ) nic3com? ( sys-apps/pciutils[static-libs(+)] ) - nicintel_eeprom? ( sys-apps/pciutils[static-libs(+)] ) - nicintel_spi? ( sys-apps/pciutils[static-libs(+)] ) + nicintel-eeprom? ( sys-apps/pciutils[static-libs(+)] ) + nicintel-spi? ( sys-apps/pciutils[static-libs(+)] ) nicintel? ( sys-apps/pciutils[static-libs(+)] ) nicnatsemi? ( sys-apps/pciutils[static-libs(+)] ) nicrealtek? ( sys-apps/pciutils[static-libs(+)] ) - ogp_spi? ( sys-apps/pciutils[static-libs(+)] ) - pickit2_spi? ( virtual/libusb:0[static-libs(+)] ) - rayer_spi? ( sys-apps/pciutils[static-libs(+)] ) + ogp-spi? ( sys-apps/pciutils[static-libs(+)] ) + pickit2-spi? ( virtual/libusb:0[static-libs(+)] ) + rayer-spi? ( sys-apps/pciutils[static-libs(+)] ) satamv? ( sys-apps/pciutils[static-libs(+)] ) satasii? ( sys-apps/pciutils[static-libs(+)] ) - usbblaster_spi? ( dev-embedded/libftdi:=[static-libs(+)] ) + usbblaster-spi? ( dev-embedded/libftdi:=[static-libs(+)] ) " RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" DEPEND="${RDEPEND} static? ( ${LIB_DEPEND} ) sys-apps/diffutils" -RDEPEND+=" !internal_dmi? ( sys-apps/dmidecode )" +RDEPEND+=" !internal-dmi? ( sys-apps/dmidecode )" _flashrom_enable() { - local c="CONFIG_${2:-$(echo "$1" | tr [:lower:] [:upper:])}" + local c="CONFIG_${2:-$(echo "$1" | tr '[:lower:]-' '[:upper:]_')}" args+=( "${c}=$(usex $1 yes no)" ) } flashrom_enable() { @@ -107,8 +107,8 @@ src_compile() { grep -o 'CONFIG_[A-Z0-9_]*' flashrom.c | \ sort -u | \ sed 's:^CONFIG_::' | \ - tr '[:upper:]' '[:lower:]')) - local eprogs=$(echo ${IUSE_PROGRAMMERS//[+-]}) + tr '[:upper:]_' '[:lower:]-')) + local eprogs=$(echo ${IUSE_PROGRAMMERS} | sed -E 's/\B[-+]\b//g') if [[ ${sprogs} != "${eprogs}" ]] ; then eerror "The ebuild needs to be kept in sync." eerror "IUSE set to: ${eprogs}" |