Skip to content

Commit

Permalink
app-editors/bluefish: Drop IUSE=gtk3
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/769020
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Feb 7, 2021
1 parent 3aac8b1 commit 7202f43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
25 changes: 7 additions & 18 deletions app-editors/bluefish/bluefish-2.2.12.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ EAPI=7

PYTHON_COMPAT=( python3_{7..9} )

inherit autotools python-single-r1 xdg

MY_P=${P/_/-}
inherit autotools python-single-r1 xdg

DESCRIPTION="A GTK HTML editor for the experienced web designer or programmer"
HOMEPAGE="http://bluefish.openoffice.nl/"
Expand All @@ -16,16 +15,13 @@ SRC_URI="https://www.bennewitz.com/bluefish/stable/source/${MY_P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86"
SLOT="0"
IUSE="+gtk3 gucharmap nls python spell"
IUSE="gucharmap nls python spell"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"

RDEPEND="
sys-libs/zlib
!gtk3? ( x11-libs/gtk+:2 )
gtk3? (
x11-libs/gtk+:3
gucharmap? ( gnome-extra/gucharmap:2.90 )
)
x11-libs/gtk+:3
gucharmap? ( gnome-extra/gucharmap:2.90 )
python? ( ${PYTHON_DEPS} )
spell? ( >=app-text/enchant-1.4:0 )"
DEPEND="${RDEPEND}
Expand All @@ -44,17 +40,10 @@ S="${WORKDIR}/${MY_P}"
RESTRICT="test"

pkg_setup() {
if ! use gtk3 && use gucharmap ; then
ewarn "gucharmap USE flag requires the gtk3 USE flag being enabled."
ewarn "Disabling charmap plugin."
fi

use python && python-single-r1_pkg_setup
}

PATCHES=(
"${FILESDIR}/${PN}-2.2.9-charmap_configure.patch"
)
PATCHES=( "${FILESDIR}/${PN}-2.2.9-charmap_configure.patch" )

# eautoreconf seems to no longer kill translation files.
src_prepare() {
Expand All @@ -68,8 +57,8 @@ src_configure() {
--disable-update-databases \
--disable-xml-catalog-update \
--with-freedesktop_org-appdata="${EPREFIX}"/usr/share/metainfo \
$(use_with !gtk3 gtk2) \
$(usex gtk3 "$(use_with gucharmap charmap)" '--without-charmap') \
--without-gtk2 \
$(use_with gucharmap charmap) \
$(use_enable nls) \
$(use_enable spell spell-check) \
$(use_enable python)
Expand Down
9 changes: 4 additions & 5 deletions app-editors/bluefish/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<!-- maintainer-needed -->
<use>
<flag name="gtk3">Enable GTK3 interface (default)</flag>
<flag name="gucharmap">Enable gucharmap dictionary plugin</flag>
<flag name="spell">Enable spell checking capabilities via enchant library</flag>
</use>
<flag name="gucharmap">Enable gucharmap dictionary plugin</flag>
<flag name="spell">Enable spell checking capabilities via enchant library</flag>
</use>
</pkgmetadata>

0 comments on commit 7202f43

Please sign in to comment.