Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x11-plugins/pidgin-sipe: fix bashisms in configure script #31586

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 53 additions & 0 deletions x11-plugins/pidgin-sipe/files/pidgin-sipe-1.25.0-bashisms.patch
@@ -0,0 +1,53 @@
Fix bashisms in configure script.

Bug: https://bugs.gentoo.org/821451

--- a/configure.ac
+++ b/configure.ac
@@ -444,10 +444,10 @@
[PKG_CHECK_MODULES(_SIPE_MEDIA_RECHECK_PLEASE_IGNORE, [$purple_pkgconfig >= 2.8.0],
dnl check purple pkgconfig for gstreamer version
[gstreamer_pkgconfig=`$PKG_CONFIG --variable=gstreamer $purple_pkgconfig`
- AS_IF([test "x$gstreamer_pkgconfig" == x],
- [AS_IF([test "x$purple_pkgconfig" == xpurple-3],
+ AS_IF([test "x$gstreamer_pkgconfig" = x],
+ [AS_IF([test "x$purple_pkgconfig" = xpurple-3],
[gstreamer_pkgconfig=1.0])])
- AS_IF([test "x$gstreamer_pkgconfig" == x1.0],
+ AS_IF([test "x$gstreamer_pkgconfig" = x1.0],
[gstreamer_pkgconfig="gstreamer-$gstreamer_pkgconfig gstreamer-rtp-$gstreamer_pkgconfig"

AC_MSG_NOTICE([using packages "$gstreamer_pkgconfig".])
@@ -556,18 +556,18 @@
AM_CONDITIONAL(SIPE_WITH_VV, [test "x$with_purple_vv" != xno])

dnl raw data RTP streams enable Lync file transfer
-AM_CONDITIONAL(SIPE_HAVE_XDATA, [test "x$ac_have_xdata" == xyes])
-AS_IF([test "x$ac_have_xdata" == xyes],
+AM_CONDITIONAL(SIPE_HAVE_XDATA, [test "x$ac_have_xdata" = xyes])
+AS_IF([test "x$ac_have_xdata" = xyes],
[AC_DEFINE(HAVE_XDATA, 1, [Define if we have raw data RTP in media backend.])])

dnl enable appshare support
-AM_CONDITIONAL(SIPE_HAVE_APPSHARE, [test "x$ac_have_appshare" == xyes])
-AS_IF([test "x$ac_have_appshare" == xyes],
+AM_CONDITIONAL(SIPE_HAVE_APPSHARE, [test "x$ac_have_appshare" = xyes])
+AS_IF([test "x$ac_have_appshare" = xyes],
[AC_DEFINE(HAVE_APPSHARE, 1, [Define to 1 if we have appshare support.])])

dnl RDP server for sharing local desktop
AM_CONDITIONAL(SIPE_HAVE_APPSHARE_SERVER, [test "x$ac_have_appshare_server" = xyes])
-AS_IF([test "x$ac_have_appshare_server" == xyes],
+AS_IF([test "x$ac_have_appshare_server" = xyes],
[AC_DEFINE(HAVE_APPSHARE_SERVER, 1, [Define if appshare server is enabled.])])

dnl libpurple API relies on GParameter (deprecated in glib-2.0 >= 2.62.0)
@@ -584,7 +584,7 @@
[We need GValueArray for which no replacement is available])
])
dnl libpurple 2.x API relies on G_CONST_RETURN (deprecated in glib-2.0 >= 2.30.0)
-AS_IF([test "x$purple_pkgconfig" == xpurple],
+AS_IF([test "x$purple_pkgconfig" = xpurple],
[AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_28,
[libpurple 2.x API uses G_CONST_RETURN])
])
11 changes: 10 additions & 1 deletion x11-plugins/pidgin-sipe/pidgin-sipe-1.25.0-r1.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -7,6 +7,8 @@ DESCRIPTION="Pidgin Plug-in SIPE (Sip Exchange Protocol)"
HOMEPAGE="http://sipe.sourceforge.net/"
SRC_URI="mirror://sourceforge/sipe/${P}.tar.gz"

inherit autotools

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
Expand Down Expand Up @@ -43,6 +45,13 @@ BDEPEND="
virtual/pkgconfig
"

src_prepare() {
eapply "${FILESDIR}"/${PN}-1.25.0-bashisms.patch

eautoreconf
default
}

src_configure() {
local myeconfargs=(
--enable-purple
Expand Down