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 if [[ "${PV}" =~ (_p)([0-9]+) ]] ; then
14 MTSLPT_REV=${BASH_REMATCH[2]}
15 ESVN_REPO_URI="svn://xneur.ru:3690/xneur/${PN}/@${MTSLPT_REV}"
17 SRC_URI="http://dists.xneur.ru/release-${PV}/tgz/${P}.tar.bz2"
22 KEYWORDS="~amd64 ~x86"
23 IUSE="aplay debug +gstreamer +imlib nls openal xosd +pcre spell xpm"
25 # Sound does not works here with media-sound/alsa-utils-1.0.16
26 RDEPEND=">=x11-libs/libX11-1.1
28 imlib? ( media-libs/imlib2 )
29 !imlib? ( xpm? ( x11-libs/libXpm ) )
30 gstreamer? ( >=media-libs/gstreamer-0.10.6 )
31 !gstreamer? ( openal? ( >=media-libs/freealut-1.0.1 )
32 !openal? ( aplay? ( >=media-sound/alsa-utils-1.0.17 ) ) )
33 pcre? ( >=dev-libs/libpcre-5.0 )
34 spell? ( app-text/aspell )
35 xosd? ( x11-libs/xosd )"
37 gstreamer? ( media-libs/gst-plugins-good
38 media-plugins/gst-plugins-alsa )
39 nls? ( sys-devel/gettext )
40 >=dev-util/pkgconfig-0.20"
43 if [[ ${SRC_URI} == "" ]]; then
51 rm ltmain.sh aclocal.m4 m4/{lt~obsolete,ltoptions,ltsugar,ltversion,libtool}.m4
52 epatch "${FILESDIR}/${P}-CFLAGS.patch"
53 epatch "${FILESDIR}/${P}-build-failure.patch"
54 sed -i -e "s/-Werror -g0//" configure.in
61 if use gstreamer; then
62 elog "Using gstreamer for sound output."
63 myconf="--with-sound=gstreamer"
65 elog "Using openal for sound output."
66 myconf="--with-sound=openal"
68 elog "Using aplay for sound output."
69 myconf="--with-sound=aplay"
71 myconf="--with-sound=no"
75 myconf="${myconf} --with-image=imlib2"
77 myconf="${myconf} --with-image=xpm"
79 myconf="${myconf} --with-image=no"
86 $(use_with spell aspell) \
91 emake install DESTDIR="${D}" || die "emake install failed"
92 dodoc AUTHORS ChangeLog README NEWS TODO || die
96 elog "This is command line tool. If you are looking for GUI frontend just"
97 elog "emerge gxneur, which uses xneur transparently as backend."