summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-10-12 17:21:19 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-10-12 18:15:20 +0200
commitb50cd8e2f5c04e20f0bb070bc2b072e8e375d3f6 (patch)
tree9a3e187b6a1a3bce9378b0cc6b0ece6f69b3154a /app-text/cb2bib
parentkde-apps/kdesdk-meta: Drop IUSE="webkit" (diff)
downloadgentoo-b50cd8e2f5c04e20f0bb070bc2b072e8e375d3f6.tar.gz
gentoo-b50cd8e2f5c04e20f0bb070bc2b072e8e375d3f6.tar.bz2
gentoo-b50cd8e2f5c04e20f0bb070bc2b072e8e375d3f6.zip
app-text/cb2bib: Drop useless REQUIRED_USE, drop IUSE="webengine"
- Non-deprecated QtWebEngine is default now - IUSE=webkit alone checks preference Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/cb2bib')
-rw-r--r--app-text/cb2bib/cb2bib-2.0.0.ebuild16
-rw-r--r--app-text/cb2bib/metadata.xml2
2 files changed, 10 insertions, 8 deletions
diff --git a/app-text/cb2bib/cb2bib-2.0.0.ebuild b/app-text/cb2bib/cb2bib-2.0.0.ebuild
index 3eb3286f5902..da1a1c1f2786 100644
--- a/app-text/cb2bib/cb2bib-2.0.0.ebuild
+++ b/app-text/cb2bib/cb2bib-2.0.0.ebuild
@@ -12,9 +12,7 @@ SRC_URI="https://www.molspaces.com/dl/progs/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE="+lzo webengine +webkit"
-
-REQUIRED_USE="?? ( webkit webengine )"
+IUSE="+lzo webkit"
DEPEND="
dev-qt/qtcore:5
@@ -22,7 +20,7 @@ DEPEND="
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
lzo? ( dev-libs/lzo:2 )
- webengine? ( dev-qt/qtwebengine:5[widgets] )
+ !webkit? ( dev-qt/qtwebengine:5[widgets] )
webkit? ( dev-qt/qtwebkit:5 )
"
RDEPEND="${DEPEND}"
@@ -32,10 +30,14 @@ DOCS=( AUTHORS CHANGELOG COPYRIGHT )
src_prepare() {
default
- sed -i -e "s|../AUTHORS ../COPYRIGHT ../LICENSE ../CHANGELOG||" src/src.pro || die
+ sed -e "s|../AUTHORS ../COPYRIGHT ../LICENSE ../CHANGELOG||" \
+ -i src/src.pro || die
- use webengine || sed -i -e "s/qtHaveModule(webenginewidgets)/false/g" src/src.pro || die
- use webkit || sed -i -e "s/qtHaveModule(webkitwidgets)/false/g" src/src.pro || die
+ if use webkit; then
+ sed -i -e "s/qtHaveModule(webenginewidgets)/false/g" src/src.pro || die
+ else
+ sed -i -e "s/qtHaveModule(webkitwidgets)/false/g" src/src.pro || die
+ fi
}
src_configure() {
diff --git a/app-text/cb2bib/metadata.xml b/app-text/cb2bib/metadata.xml
index dca6445c8920..bb01d3fe4e6b 100644
--- a/app-text/cb2bib/metadata.xml
+++ b/app-text/cb2bib/metadata.xml
@@ -6,7 +6,7 @@
<name>Gentoo Qt Project</name>
</maintainer>
<use>
- <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> instead of <pkg>dev-qt/qtwebkit</pkg></flag>
+ <flag name="webkit">Use <pkg>dev-qt/qtwebkit</pkg> instead of <pkg>dev-qt/qtwebengine</pkg></flag>
</use>
<upstream>
<bugs-to>mailto:webmaster@molspaces.com</bugs-to>