Skip to content

Commit

Permalink
app-i18n/ibus: add libnotify USE flag
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
hattya committed Aug 1, 2017
1 parent 6ba4d6b commit 6e4df79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
17 changes: 11 additions & 6 deletions app-i18n/ibus/ibus-1.5.12.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="gconf +gtk +gtk2 +introspection nls +python test vala wayland +X"
REQUIRED_USE="python? (
IUSE="gconf +gtk +gtk2 +introspection +libnotify nls +python test vala wayland +X"
REQUIRED_USE="libnotify? ( gtk )
python? (
${PYTHON_REQUIRED_USE}
gtk
introspection
Expand All @@ -28,7 +29,6 @@ CDEPEND="app-text/iso-codes
gnome-base/dconf
gnome-base/librsvg:2
sys-apps/dbus[X?]
x11-libs/libnotify
gconf? ( gnome-base/gconf:2 )
gtk? (
x11-libs/gtk+:3
Expand All @@ -37,6 +37,7 @@ CDEPEND="app-text/iso-codes
gtk2? ( x11-libs/gtk+:2 )
)
introspection? ( dev-libs/gobject-introspection )
libnotify? ( x11-libs/libnotify )
nls? ( virtual/libintl )
python? (
${PYTHON_DEPS}
Expand All @@ -60,13 +61,16 @@ RDEPEND="${CDEPEND}
)
)"
DEPEND="${CDEPEND}
$(vala_depend)
dev-util/intltool
virtual/pkgconfig
nls? ( sys-devel/gettext )
vala? ( $(vala_depend) )"
nls? ( sys-devel/gettext )"

src_prepare() {
use vala && vala_src_prepare
vala_src_prepare --ignore-use
if ! use libnotify; then
touch ui/gtk3/panel.vala
fi
# for multiple Python implementations
sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
# fix for parallel install
Expand Down Expand Up @@ -105,6 +109,7 @@ src_configure() {
$(use_enable gtk ui) \
$(use_enable gtk2) \
$(use_enable introspection) \
$(use_enable libnotify) \
$(use_enable nls) \
$(use_enable test tests) \
$(use_enable vala) \
Expand Down
17 changes: 11 additions & 6 deletions app-i18n/ibus/ibus-1.5.15.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="gconf +gtk +gtk2 +introspection nls +python test vala wayland +X"
REQUIRED_USE="python? (
IUSE="gconf +gtk +gtk2 +introspection +libnotify nls +python test vala wayland +X"
REQUIRED_USE="libnotify? ( gtk )
python? (
${PYTHON_REQUIRED_USE}
gtk
introspection
Expand All @@ -28,7 +29,6 @@ CDEPEND="app-text/iso-codes
gnome-base/dconf
gnome-base/librsvg:2
sys-apps/dbus[X?]
x11-libs/libnotify
gconf? ( gnome-base/gconf:2 )
gtk? (
x11-libs/gtk+:3
Expand All @@ -37,6 +37,7 @@ CDEPEND="app-text/iso-codes
gtk2? ( x11-libs/gtk+:2 )
)
introspection? ( dev-libs/gobject-introspection )
libnotify? ( x11-libs/libnotify )
nls? ( virtual/libintl )
python? (
${PYTHON_DEPS}
Expand All @@ -60,13 +61,16 @@ RDEPEND="${CDEPEND}
)
)"
DEPEND="${CDEPEND}
$(vala_depend)
dev-util/intltool
virtual/pkgconfig
nls? ( sys-devel/gettext )
vala? ( $(vala_depend) )"
nls? ( sys-devel/gettext )"

src_prepare() {
use vala && vala_src_prepare
vala_src_prepare --ignore-use
if ! use libnotify; then
touch ui/gtk3/panel.vala
fi
# for multiple Python implementations
sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
# fix for parallel install
Expand Down Expand Up @@ -101,6 +105,7 @@ src_configure() {
$(use_enable gtk ui) \
$(use_enable gtk2) \
$(use_enable introspection) \
$(use_enable libnotify) \
$(use_enable nls) \
$(use_enable test tests) \
$(use_enable vala) \
Expand Down

0 comments on commit 6e4df79

Please sign in to comment.