summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-i18n/ibus-unikey/files/ibus-unikey-slibtool.patch27
-rw-r--r--app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild12
2 files changed, 38 insertions, 1 deletions
diff --git a/app-i18n/ibus-unikey/files/ibus-unikey-slibtool.patch b/app-i18n/ibus-unikey/files/ibus-unikey-slibtool.patch
new file mode 100644
index 00000000000..02551ba608f
--- /dev/null
+++ b/app-i18n/ibus-unikey/files/ibus-unikey-slibtool.patch
@@ -0,0 +1,27 @@
+--- a/setup/Makefile.am
++++ b/setup/Makefile.am
+@@ -34,7 +34,8 @@
+
+ ibus_setup_unikey_LDFLAGS = \
+ @IBUS_LIBS@ \
+- @GTK_LIBS@ \
++ @GTK_LIBS@
++
++ibus_setup_unikey_LDADD = \
+ $(top_builddir)/ukengine/libunikey-ibus.la \
+ $(top_builddir)/src/ibus_engine_unikey-utils.o
+-
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -25,8 +25,9 @@
+
+ ibus_engine_unikey_LDFLAGS = \
+ @IBUS_LIBS@ \
+- @X11_LIBS@ \
+- $(top_builddir)/ukengine/libunikey-ibus.la
++ @X11_LIBS@
++
++ibus_engine_unikey_LDADD = $(top_builddir)/ukengine/libunikey-ibus.la
+
+ component_DATA = unikey.xml
+
diff --git a/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild b/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
index 5cc835df166..bbe90180754 100644
--- a/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
+++ b/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
@@ -3,6 +3,8 @@
EAPI="7"
+inherit autotools
+
DESCRIPTION="Vietnamese UniKey engine for IBus"
HOMEPAGE="https://github.com/vn-input/ibus-unikey"
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz
@@ -22,7 +24,15 @@ BDEPEND="virtual/pkgconfig
dev-util/intltool
nls? ( sys-devel/gettext )"
-PATCHES=( "${DISTDIR}"/${P}-gcc6.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-slibtool.patch
+ "${DISTDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
src_configure() {
econf \