app-i18n/scim-bridge: Bump EAPI, drop .la files
authorPacho Ramos <pacho@gentoo.org>
Sun, 24 Apr 2016 10:55:33 +0000 (12:55 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 24 Apr 2016 12:06:34 +0000 (14:06 +0200)
Package-Manager: portage-2.2.28

app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch
app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild [new file with mode: 0644]

index ee6543c7dd6a8895b1d1e05dffee8344f2fed66b..9f8f431148994ea1460cff742f3d7fab03c4db2c 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.orig  2009-11-27 21:07:46.000000000 +0800
-+++ configure.ac       2009-11-27 21:33:17.000000000 +0800
+--- a/configure.ac.orig        2009-11-27 21:07:46.000000000 +0800
++++ b/configure.ac     2009-11-27 21:33:17.000000000 +0800
 @@ -55,63 +55,6 @@
  AM_CONDITIONAL(HAVE_DOCBOOK, test x$DOCBOOK_XSL != xno)
  AM_CONDITIONAL(BUILD_MANUAL, test x$XSLTPROC != xno -a x$DOCBOOK_XSL != xno)
diff --git a/app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild b/app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild
new file mode 100644 (file)
index 0000000..e1d31a3
--- /dev/null
@@ -0,0 +1,95 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+inherit autotools eutils gnome2-utils multilib readme.gentoo-r1
+
+DESCRIPTION="Yet another IM-client of SCIM"
+HOMEPAGE="http://www.scim-im.org/projects/scim_bridge"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+IUSE="doc gtk qt4"
+
+RESTRICT="test"
+
+RDEPEND="
+       >=app-i18n/scim-1.4.6
+       gtk? (
+               >=x11-libs/gtk+-2.2:2
+               >=x11-libs/pango-1.1
+       )
+       qt4? (
+               dev-qt/qtgui:4
+               dev-qt/qtcore:4
+               >=x11-libs/pango-1.1
+       )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       dev-util/intltool
+       doc? ( app-doc/doxygen )
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+If you would like to use ${PN} as default instead of scim, set
+$ export GTK_IM_MODULE=scim-bridge
+$ export QT_IM_MODULE=scim-bridge
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.4.15.2-qt4.patch"
+       "${FILESDIR}/${PN}-0.4.15.2-gcc43.patch"
+       "${FILESDIR}/${P}+gcc-4.4.patch"
+       "${FILESDIR}/${P}+gcc-4.7.patch"
+       "${FILESDIR}/${P}-configure.ac.patch" #280887
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myconf=""
+       # '--disable-*-immodule' are b0rked, bug #280887
+
+       if use gtk ; then
+               myconf="${myconf} --enable-gtk2-immodule=yes"
+       else
+               myconf="${myconf} --enable-gtk2-immodule=no"
+       fi
+
+       # Qt3 is no longer supported, bug 283429
+       myconf="${myconf} --enable-qt3-immodule=no"
+
+       if use qt4 ; then
+               myconf="${myconf} --enable-qt4-immodule=yes"
+       else
+               myconf="${myconf} --enable-qt4-immodule=no"
+       fi
+
+       econf \
+               --disable-static \
+               $(use_enable doc documents) \
+               ${myconf}
+}
+
+src_install() {
+       default
+       prune_libtool_files --modules
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       use gtk && gnome2_query_immodules_gtk2
+       readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+       use gtk && gnome2_query_immodules_gtk2
+}