1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools
9 DESCRIPTION="In-place conversion of text typed in with a wrong keyboard layout (Punto Switcher replacement)"
10 HOMEPAGE="http://www.xneur.ru/"
11 SRC_URI="http://dists.xneur.ru/release-${PV}/tgz/${P}.tar.bz2"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="aplay debug gstreamer libnotify nls openal xosd pcre +spell"
18 # Sound does not works here with media-sound/alsa-utils-1.0.16
19 RDEPEND="sys-libs/zlib
22 gstreamer? ( >=media-libs/gstreamer-0.10.6 )
23 !gstreamer? ( openal? ( >=media-libs/freealut-1.0.1 )
24 !openal? ( aplay? ( >=media-sound/alsa-utils-1.0.17 ) ) )
25 pcre? ( >=dev-libs/libpcre-5.0 )
26 spell? ( app-text/aspell )
27 xosd? ( x11-libs/xosd )
28 libnotify? ( >=x11-libs/libnotify-0.4.0 )"
30 gstreamer? ( media-libs/gst-plugins-good
31 media-plugins/gst-plugins-alsa )
32 nls? ( sys-devel/gettext )
33 >=dev-util/pkgconfig-0.20"
36 # Fixes error/warning: no newline at end of file
37 find . -name '*.c' -exec sed '${/[^ ]/s:$:\n:}' -i '{}' \;
38 rm ltmain.sh aclocal.m4 m4/{lt~obsolete,ltoptions,ltsugar,ltversion,libtool}.m4
39 sed -i -e "s/-Werror -g0//" configure.in
46 if use gstreamer; then
47 elog "Using gstreamer for sound output."
48 myconf="--with-sound=gstreamer"
50 elog "Using openal for sound output."
51 myconf="--with-sound=openal"
53 elog "Using aplay for sound output."
54 myconf="--with-sound=aplay"
56 elog "Sound support disabled."
57 myconf="--with-sound=no"
64 $(use_with spell aspell) \
70 emake install DESTDIR="${D}" || die "emake install failed"
71 dodoc AUTHORS ChangeLog README NEWS TODO || die
75 elog "This is command line tool. If you are looking for GUI frontend just"
76 elog "emerge gxneur, which uses xneur transparently as backend."
78 ewarn "If you upgraded from <=xneur-0.9.3, you need to remove"
79 ewarn "dictionary files in the home directory:"
80 ewarn " $ rm ~/.xneur/{ru,en,be,etc.}/dict"