initial commit
This commit is contained in:
2
x11-misc/xneur/Manifest
Normal file
2
x11-misc/xneur/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST xneur-0.12.0.tar.bz2 1088554 RMD160 0e5fa4012b69c4e82f7bcefe3e3c478f5500487a SHA1 aff607938f1cc1f7bd38b41b53ea8bf70a4db376 SHA256 962660306f138de44fbfcb458fffac59ce32000a49e2314e4f0460a98ac93327
|
||||
EBUILD xneur-0.12.0.ebuild 2466 RMD160 37750ba095ad31569af17da895cf482813bbf93a SHA1 1c90aba7bf1db75c99324fd1ff313e21530f6688 SHA256 a95ab84241b35a4dce7ffa08de093225b8b5e0e4ca9f3794374a88fd266840d8
|
91
x11-misc/xneur/xneur-0.12.0.ebuild
Normal file
91
x11-misc/xneur/xneur-0.12.0.ebuild
Normal file
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="In-place conversion of text typed in with a wrong keyboard layout (Punto Switcher replacement)"
|
||||
HOMEPAGE="http://www.xneur.ru/"
|
||||
SRC_URI="http://dists.xneur.ru/release-${PV}/tgz/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="aplay debug gstreamer keylogger libnotify nls openal openmp xosd +spell"
|
||||
|
||||
COMMON_DEPEND=">=dev-libs/libpcre-5.0
|
||||
sys-libs/zlib
|
||||
>=x11-libs/libX11-1.1
|
||||
x11-libs/libXtst
|
||||
gstreamer? ( >=media-libs/gstreamer-0.10.6 )
|
||||
!gstreamer? (
|
||||
openal? ( >=media-libs/freealut-1.0.1 )
|
||||
!openal? (
|
||||
aplay? ( >=media-sound/alsa-utils-1.0.17 ) ) )
|
||||
libnotify? ( >=x11-libs/libnotify-0.4.0 )
|
||||
spell? ( app-text/enchant )
|
||||
xosd? ( x11-libs/xosd )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
gstreamer? ( media-libs/gst-plugins-good
|
||||
media-plugins/gst-plugins-alsa )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-util/pkgconfig-0.20
|
||||
openmp? ( sys-devel/gcc[openmp] )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
# Fixes error/warning: no newline at end of file
|
||||
find -name '*.c' -exec sed -i -e '${/[^ ]/s:$:\n:}' {} + || die
|
||||
rm -f m4/{lt~obsolete,ltoptions,ltsugar,ltversion,libtool}.m4 \
|
||||
ltmain.sh aclocal.m4 || die
|
||||
|
||||
sed -i -e "s/-Werror -g0//" configure.in
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use gstreamer; then
|
||||
elog "Using gstreamer for sound output."
|
||||
myconf="--with-sound=gstreamer"
|
||||
elif use openal; then
|
||||
elog "Using openal for sound output."
|
||||
myconf="--with-sound=openal"
|
||||
elif use aplay; then
|
||||
elog "Using aplay for sound output."
|
||||
myconf="--with-sound=aplay"
|
||||
else
|
||||
elog "Sound support disabled."
|
||||
myconf="--with-sound=no"
|
||||
fi
|
||||
|
||||
econf ${myconf} \
|
||||
$(use_with debug) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable nls) \
|
||||
$(use_with spell) \
|
||||
$(use_with xosd) \
|
||||
$(use_with libnotify) \
|
||||
$(use_with keylogger)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc AUTHORS ChangeLog README NEWS TODO || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This is command line tool. If you are looking for GUI frontend just"
|
||||
elog "emerge gxneur, which uses xneur transparently as backend."
|
||||
|
||||
ewarn "If you upgraded from <=xneur-0.9.3, you need to remove"
|
||||
ewarn "dictionary files in the home directory:"
|
||||
ewarn " $ rm ~/.xneur/{ru,en,be,etc.}/dict"
|
||||
|
||||
ewarn
|
||||
ewarn "Note: if xneur became slow, try to comment out AddBind options in config file."
|
||||
}
|
92
x11-misc/xneur/xneur-0.13.0.ebuild
Normal file
92
x11-misc/xneur/xneur-0.13.0.ebuild
Normal file
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="In-place conversion of text typed in with a wrong keyboard layout (Punto Switcher replacement)"
|
||||
HOMEPAGE="http://www.xneur.ru/"
|
||||
SRC_URI="http://dists.xneur.ru/release-${PV}/tgz/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="aplay debug gstreamer keylogger libnotify nls openal openmp xosd +spell"
|
||||
|
||||
COMMON_DEPEND=">=dev-libs/libpcre-5.0
|
||||
sys-libs/zlib
|
||||
>=x11-libs/libX11-1.1
|
||||
x11-libs/libXtst
|
||||
gstreamer? ( >=media-libs/gstreamer-0.10.6 )
|
||||
!gstreamer? (
|
||||
openal? ( >=media-libs/freealut-1.0.1 )
|
||||
!openal? (
|
||||
aplay? ( >=media-sound/alsa-utils-1.0.17 ) ) )
|
||||
libnotify? ( >=x11-libs/libnotify-0.4.0 )
|
||||
spell? ( app-text/enchant )
|
||||
xosd? ( x11-libs/xosd )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
gstreamer? ( media-libs/gst-plugins-good
|
||||
media-plugins/gst-plugins-alsa )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-util/pkgconfig-0.20
|
||||
openmp? ( sys-devel/gcc[openmp] )
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
# Fixes error/warning: no newline at end of file
|
||||
find -name '*.c' -exec sed -i -e '${/[^ ]/s:$:\n:}' {} + || die
|
||||
rm -f m4/{lt~obsolete,ltoptions,ltsugar,ltversion,libtool}.m4 \
|
||||
ltmain.sh aclocal.m4 || die
|
||||
|
||||
sed -i -e "s/-Werror -g0//" configure.in
|
||||
# epatch "${FILESDIR}/${P}-libnotify-0.7.patch"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use gstreamer; then
|
||||
elog "Using gstreamer for sound output."
|
||||
myconf="--with-sound=gstreamer"
|
||||
elif use openal; then
|
||||
elog "Using openal for sound output."
|
||||
myconf="--with-sound=openal"
|
||||
elif use aplay; then
|
||||
elog "Using aplay for sound output."
|
||||
myconf="--with-sound=aplay"
|
||||
else
|
||||
elog "Sound support disabled."
|
||||
myconf="--with-sound=no"
|
||||
fi
|
||||
|
||||
econf ${myconf} \
|
||||
$(use_with debug) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable nls) \
|
||||
$(use_with spell) \
|
||||
$(use_with xosd) \
|
||||
$(use_with libnotify) \
|
||||
$(use_with keylogger)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc AUTHORS ChangeLog README NEWS TODO || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "This is command line tool. If you are looking for GUI frontend just"
|
||||
elog "emerge gxneur, which uses xneur transparently as backend."
|
||||
|
||||
ewarn "If you upgraded from <=xneur-0.9.3, you need to remove"
|
||||
ewarn "dictionary files in the home directory:"
|
||||
ewarn " $ rm ~/.xneur/{ru,en,be,etc.}/dict"
|
||||
|
||||
ewarn
|
||||
ewarn "Note: if xneur became slow, try to comment out AddBind options in config file."
|
||||
}
|
Reference in New Issue
Block a user