xfce-extra/xfce4-wavelan-plugin: Fix build w/ panel 4.15
authorMichał Górny <mgorny@gentoo.org>
Sun, 20 Oct 2019 17:33:21 +0000 (19:33 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 20 Oct 2019 17:34:14 +0000 (19:34 +0200)
Closes: https://bugs.gentoo.org/698136
Signed-off-by: Michał Górny <mgorny@gentoo.org>
xfce-extra/xfce4-wavelan-plugin/xfce4-wavelan-plugin-0.6.1.ebuild

index 9648eca0c016675ffe7967d9769eb1585ef898ab..ee23f4668d69db5bb0d6605aa97e39989f4025dc 100644 (file)
@@ -21,6 +21,14 @@ DEPEND="${COMMON_DEPEND}
        sys-devel/gettext
        virtual/pkgconfig"
 
+src_prepare() {
+       # fix build failure w/ xfce4-panel-4.15.0
+       # https://git.xfce.org/panel-plugins/xfce4-wavelan-plugin/commit/?id=c0033c32ec28bbdd5f735f9b52d212e881eb2219
+       sed -i -e 's@<libxfce4panel/xfce-panel-plugin\.h>@<libxfce4panel/libxfce4panel.h>@' \
+               panel-plugin/wavelan.c || die
+       default
+}
+
 src_install() {
        default
        find "${D}" -name '*.la' -delete || die