From 661cae5ff107fb5d58f21bb0e0dcd5dcec83c190 Mon Sep 17 00:00:00 2001 From: Eugene Bright Date: Tue, 17 Sep 2019 20:51:36 +0300 Subject: [PATCH] sys-apps/flashrom: Get rid of underscore in IUSE Closes: https://bugs.gentoo.org/694664 Signed-off-by: Eugene Bright Closes: https://github.com/gentoo/gentoo/pull/13204 Signed-off-by: Joonas Niilola --- profiles/arch/amd64/package.use.mask | 2 +- profiles/arch/arm64/package.use.mask | 2 +- profiles/arch/base/package.use.mask | 2 +- profiles/arch/powerpc/package.use.mask | 2 +- profiles/arch/powerpc/ppc64/package.use.mask | 2 +- profiles/arch/sparc/package.use.mask | 2 +- profiles/arch/x86/package.use.mask | 2 +- sys-apps/flashrom/flashrom-0.9.8.ebuild | 74 ++++++++++++++------ sys-apps/flashrom/flashrom-1.0.ebuild | 69 ++++++++++++------ sys-apps/flashrom/flashrom-1.1.ebuild | 64 ++++++++--------- sys-apps/flashrom/flashrom-9999.ebuild | 64 ++++++++--------- sys-apps/flashrom/metadata.xml | 36 +++++----- 12 files changed, 187 insertions(+), 134 deletions(-) diff --git a/profiles/arch/amd64/package.use.mask b/profiles/arch/amd64/package.use.mask index e12fa999409c..0e8f34e6b6b8 100644 --- a/profiles/arch/amd64/package.use.mask +++ b/profiles/arch/amd64/package.use.mask @@ -199,7 +199,7 @@ net-im/telepathy-connection-managers -steam # Mike Frysinger (2014-08-04) # Unmask flashrom drivers that only work on x86 due to in/out asm insns #454024 -sys-apps/flashrom -atahpt -nic3com -nicnatsemi -nicrealtek -rayer_spi -satamv +sys-apps/flashrom -atahpt -nic3com -nicnatsemi -nicrealtek -rayer-spi -satamv # Jorge Manuel B. S. Vicetto (2014-04-24) # It's only supported on amd64 diff --git a/profiles/arch/arm64/package.use.mask b/profiles/arch/arm64/package.use.mask index 2fb0da2d39e0..901d17e9c137 100644 --- a/profiles/arch/arm64/package.use.mask +++ b/profiles/arch/arm64/package.use.mask @@ -11,7 +11,7 @@ sys-firmware/seabios -debug # Eugene Bright (2019-09-09) # Missing keyword on dev-embedded/libjaylink -sys-apps/flashrom jlink_spi +sys-apps/flashrom jlink-spi # Aaron Bauman (2019-08-05) # dep not keyworded here diff --git a/profiles/arch/base/package.use.mask b/profiles/arch/base/package.use.mask index 9c39320b7e50..6056662f4002 100644 --- a/profiles/arch/base/package.use.mask +++ b/profiles/arch/base/package.use.mask @@ -179,7 +179,7 @@ games-board/stockfish armv7 # Mike Frysinger (2014-08-04) # Mask flashrom drivers that only work on x86 due to in/out asm insns #454024 -sys-apps/flashrom atahpt nic3com nicnatsemi nicrealtek rayer_spi satamv +sys-apps/flashrom atahpt nic3com nicnatsemi nicrealtek rayer-spi satamv # Jorge Manuel B. S. Vicetto (2014-04-24) # It's only supported on amd64 diff --git a/profiles/arch/powerpc/package.use.mask b/profiles/arch/powerpc/package.use.mask index cd4ab4b92278..d2273928c6f0 100644 --- a/profiles/arch/powerpc/package.use.mask +++ b/profiles/arch/powerpc/package.use.mask @@ -7,7 +7,7 @@ sys-firmware/seabios -debug # Eugene Bright (2019-09-09) # Missing keyword on dev-embedded/libjaylink -sys-apps/flashrom jlink_spi +sys-apps/flashrom jlink-spi # Conrad Kostecki (2019-08-17) # app-misc/graphlcd-base won't work on PowerPC/PowerPC64 diff --git a/profiles/arch/powerpc/ppc64/package.use.mask b/profiles/arch/powerpc/ppc64/package.use.mask index 42c973dbd42a..cbfe8822ba6c 100644 --- a/profiles/arch/powerpc/ppc64/package.use.mask +++ b/profiles/arch/powerpc/ppc64/package.use.mask @@ -3,7 +3,7 @@ # Eugene Bright (2019-09-09) # Missing keyword on dev-embedded/libjaylink -sys-apps/flashrom jlink_spi +sys-apps/flashrom jlink-spi # Matthew Thode (2019-08-22) # context works with newer versions of boost diff --git a/profiles/arch/sparc/package.use.mask b/profiles/arch/sparc/package.use.mask index 0e5a58065908..f639f53b04ca 100644 --- a/profiles/arch/sparc/package.use.mask +++ b/profiles/arch/sparc/package.use.mask @@ -3,7 +3,7 @@ # Eugene Bright (2019-09-09) # Missing keyword on dev-embedded/libjaylink -sys-apps/flashrom jlink_spi +sys-apps/flashrom jlink-spi # Mart Raudsepp (2019-08-18) # media-video/pipewire is not keyworded yet diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask index c3f6d1739afe..f307f7630537 100644 --- a/profiles/arch/x86/package.use.mask +++ b/profiles/arch/x86/package.use.mask @@ -197,7 +197,7 @@ net-im/telepathy-connection-managers -steam # Mike Frysinger (2014-08-04) # Unmask flashrom drivers that only work on x86 due to in/out asm insns #454024 -sys-apps/flashrom -atahpt -nic3com -nicnatsemi -nicrealtek -rayer_spi -satamv +sys-apps/flashrom -atahpt -nic3com -nicnatsemi -nicrealtek -rayer-spi -satamv # Yixun Lan (2014-05-21) # sys-fs/zfs not keyworded on x86 diff --git a/sys-apps/flashrom/flashrom-0.9.8.ebuild b/sys-apps/flashrom/flashrom-0.9.8.ebuild index 82ae6d8592c2..91f745052628 100644 --- a/sys-apps/flashrom/flashrom-0.9.8.ebuild +++ b/sys-apps/flashrom/flashrom-0.9.8.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="5" +EAPI=7 -inherit eutils toolchain-funcs +inherit toolchain-funcs if [[ ${PV} == "9999" ]] ; then - ESVN_REPO_URI="https://code.coreboot.org/svn/flashrom/trunk" - inherit subversion + EGIT_REPO_URI="https://review.coreboot.org/flashrom.git" + inherit git-r3 else SRC_URI="https://download.flashrom.org/releases/${P}.tar.bz2" KEYWORDS="amd64 arm ~arm64 ~ppc ~ppc64 ~sparc x86" @@ -20,40 +20,66 @@ SLOT="0" # The defaults match the upstream Makefile. # Note: Do not list bitbang_spi as it is not a programmer; it's a backend used # by some other spi programmers. -IUSE_PROGRAMMERS="atahpt +atavia +buspirate_spi dediprog +drkaiser +dummy -+ft2232_spi +gfxnvidia +internal +it8212 +linux_spi mstarddc_spi +nic3com -+nicintel +nicintel_eeprom +nicintel_spi nicnatsemi +nicrealtek +ogp_spi -+pickit2_spi +pony_spi +rayer_spi +satamv +satasii +serprog +usbblaster_spi" -IUSE="${IUSE_PROGRAMMERS} +internal_dmi static tools +wiki" +IUSE_PROGRAMMERS=" + atahpt + +atavia + +buspirate-spi + dediprog + +drkaiser + +dummy + +ft2232-spi + +gfxnvidia + +internal + +it8212 + +linux-spi + mstarddc-spi + +nic3com + +nicintel + +nicintel-eeprom + +nicintel-spi + nicnatsemi + +nicrealtek + +ogp-spi + +pickit2-spi + +pony-spi + +rayer-spi + +satamv + +satasii + +serprog + +usbblaster-spi +" +IUSE="${IUSE_PROGRAMMERS} +internal-dmi static tools +wiki" -LIB_DEPEND="atahpt? ( sys-apps/pciutils[static-libs(+)] ) +LIB_DEPEND=" + atahpt? ( sys-apps/pciutils[static-libs(+)] ) atavia? ( sys-apps/pciutils[static-libs(+)] ) dediprog? ( virtual/libusb:0[static-libs(+)] ) drkaiser? ( sys-apps/pciutils[static-libs(+)] ) - ft2232_spi? ( dev-embedded/libftdi:0[static-libs(+)] ) + ft2232-spi? ( dev-embedded/libftdi:0[static-libs(+)] ) gfxnvidia? ( sys-apps/pciutils[static-libs(+)] ) - it8212? ( sys-apps/pciutils[static-libs(+)] ) internal? ( sys-apps/pciutils[static-libs(+)] ) + it8212? ( sys-apps/pciutils[static-libs(+)] ) nic3com? ( 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(+)] ) - nicintel_eeprom? ( sys-apps/pciutils[static-libs(+)] ) - nicintel_spi? ( 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:0[static-libs(+)] )" + usbblaster-spi? ( dev-embedded/libftdi:0[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() { @@ -65,6 +91,8 @@ src_prepare() { sed -i \ -e 's:pkg-config:$(PKG_CONFIG):' \ Makefile || die + + default } src_compile() { @@ -73,8 +101,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}" diff --git a/sys-apps/flashrom/flashrom-1.0.ebuild b/sys-apps/flashrom/flashrom-1.0.ebuild index 0c908ab17779..cd57ee3d0f68 100644 --- a/sys-apps/flashrom/flashrom-1.0.ebuild +++ b/sys-apps/flashrom/flashrom-1.0.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit toolchain-funcs if [[ ${PV} == "9999" ]] ; then @@ -21,42 +21,69 @@ SLOT="0" # Note: Do not list bitbang_spi as it is not a programmer; it's a backend used # by some other spi programmers. IUSE_PROGRAMMERS=" -atahpt +atapromise +atavia +buspirate_spi +ch341a_spi +dediprog +drkaiser +dummy -+ft2232_spi +gfxnvidia +internal +it8212 +linux_spi mstarddc_spi +nic3com -+nicintel +nicintel_eeprom +nicintel_spi nicnatsemi +nicrealtek +ogp_spi -+pickit2_spi +pony_spi +rayer_spi +satamv +satasii +serprog +usbblaster_spi" -IUSE="${IUSE_PROGRAMMERS} +internal_dmi static tools +wiki" + atahpt + +atapromise + +atavia + +buspirate-spi + +ch341a-spi + +dediprog + +drkaiser + +dummy + +ft2232-spi + +gfxnvidia + +internal + +it8212 + +linux-spi + mstarddc-spi + +nic3com + +nicintel + +nicintel-eeprom + +nicintel-spi + nicnatsemi + +nicrealtek + +ogp-spi + +pickit2-spi + +pony-spi + +rayer-spi + +satamv + +satasii + +serprog + +usbblaster-spi +" +IUSE="${IUSE_PROGRAMMERS} +internal-dmi static tools +wiki" -LIB_DEPEND="atahpt? ( sys-apps/pciutils[static-libs(+)] ) +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(+)] ) 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(+)] ) - it8212? ( sys-apps/pciutils[static-libs(+)] ) internal? ( sys-apps/pciutils[static-libs(+)] ) + it8212? ( sys-apps/pciutils[static-libs(+)] ) nic3com? ( 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(+)] ) - nicintel_eeprom? ( sys-apps/pciutils[static-libs(+)] ) - nicintel_spi? ( 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() { @@ -70,8 +97,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}" diff --git a/sys-apps/flashrom/flashrom-1.1.ebuild b/sys-apps/flashrom/flashrom-1.1.ebuild index 30b34fa616aa..873ed5612b84 100644 --- a/sys-apps/flashrom/flashrom-1.1.ebuild +++ b/sys-apps/flashrom/flashrom-1.1.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}" 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}" diff --git a/sys-apps/flashrom/metadata.xml b/sys-apps/flashrom/metadata.xml index 7f752c64c571..11a2a4bdc995 100644 --- a/sys-apps/flashrom/metadata.xml +++ b/sys-apps/flashrom/metadata.xml @@ -13,39 +13,37 @@ Highpoint (HPT) ATA/RAID controller support Support for Promise PDC2026x (FastTrak/Ultra) Support for VIA VT6421A SATA controllers - Bitbanging SPI infrastructure - Enable Bus Pirate SPI programmer - Enable WCH CH341A SPI programmer + Enable Bus Pirate SPI programmer + Enable WCH CH341A SPI programmer Dediprog SF100 support - Enable Devloperbox SPI recovery support - Enable support for Digilent iCEblink40 development board + Enable Devloperbox SPI recovery support + Enable support for Digilent iCEblink40 development board Enable Dr. Kaiser programmer Enable dummy tracing - Enable ftdi programmer, flashing through FTDI/SPI USB interface + Enable ftdi programmer, flashing through FTDI/SPI USB interface Enable NVIDIA programmer Enable internal/onboard support - Enable internal DMI decoding rather than use sys-apps/dmidecode + Enable internal DMI decoding rather than use sys-apps/dmidecode Support for ITE IT8212F ATA/RAID controllers - Support for SEGGER J-Link and compatible devices - Enable support for Linux mtd SPI flash devices - Enable support for Linux userspace spidev interface - Support for SPI flash ROMs accessible through DDC in MSTAR-equipped displays + Support for SEGGER J-Link and compatible devices + Enable support for Linux mtd SPI flash devices + Enable support for Linux userspace spidev interface + Support for SPI flash ROMs accessible through DDC in MSTAR-equipped displays Enable 3Com NIC programmer Support for Intel NICs - Support for EEPROMs on Intel Gigabit network cards - Support for SPI on Intel NICs + Support for EEPROMs on Intel Gigabit network cards + Support for SPI on Intel NICs Support for National Semiconductor NICs Support for Realtek NICs - Enable support for OGP (Open Graphics Project) SPI flashing - SUpport for SPI flash ROMs accessible via Microchip PICkit2 - Enable support for SI-Prog like hardware by Lancos - RayeR SPIPGM hardware support + Enable support for OGP (Open Graphics Project) SPI flashing + SUpport for SPI flash ROMs accessible via Microchip PICkit2 + Enable support for SI-Prog like hardware by Lancos + RayeR SPIPGM hardware support Enable programmer for SiI SATA controllers Enable programmer for Marvell SATA controllers Enable Serial Flasher programmer Install additional tools - Enable support for Altera USB-Blaster dongles - Enable support for Altera USB-Blaster dongles + Enable support for Altera USB-Blaster dongles Enable wiki informations, like supported devices etc. -- 2.26.2