ChangeLog

# ChangeLog for app-misc/g15daemon
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/ChangeLog,v 1.21 2008/05/29 15:41:32 hawking Exp $

29 May 2008; Ali Polatel g15daemon-1.2.6a-r1.ebuild,
g15daemon-1.2.7.ebuild, g15daemon-1.2.7-r1.ebuild,
g15daemon-1.9.0-r1.ebuild, g15daemon-1.9.1.ebuild, g15daemon-1.9.2.ebuild,
g15daemon-1.9.3.ebuild, g15daemon-1.9.5.3.ebuild:
python_mod_optimize is ROOT aware.

*g15daemon-1.9.5.3 (21 Feb 2008)

21 Feb 2008; Tony Vroon +g15daemon-1.9.5.3.ebuild:
Version bump as requested by Efimov Vadim , closes bug
#208771.

*g15daemon-1.9.3 (28 Dec 2007)

28 Dec 2007; Markus Ullmann +g15daemon-1.9.3.ebuild:
Version bump, thanks to robbat2 for the notification

*g15daemon-1.9.2 (25 Dec 2007)

25 Dec 2007; Markus Ullmann +g15daemon-1.9.2.ebuild:
Version bump, bugfix release. more info at
http://sourceforge.net/forum/forum.php?forum_id=767539

*g15daemon-1.9.1 (19 Dec 2007)

19 Dec 2007; Tony Vroon
+files/g15daemon-1.2.7-r2.initd, metadata.xml, +g15daemon-1.9.1.ebuild:
Version bump. Prevent "pid X is not a child of this shell" message by
shutting down the daemon differently. Took maintainership.

*g15daemon-1.9.0-r1 (04 Oct 2007)
*g15daemon-1.2.7-r1 (04 Oct 2007)

04 Oct 2007; Robert Buchholz
+files/g15daemon-1.2.7-r1.initd, +g15daemon-1.2.7-r1.ebuild,
-g15daemon-1.9.0.ebuild, +g15daemon-1.9.0-r1.ebuild:
New POSIX init script by Peter Alfredsen and Roy Marples (bug #194365).

01 May 2007; Markus Rothe g15daemon-1.2.7.ebuild:
Stable on ppc64; bug #175120

22 Apr 2007; Tobias Scherbaum
g15daemon-1.2.7.ebuild:
ppc stable, bug #175120

29 Mar 2007; Markus Ullmann g15daemon-1.2.7.ebuild:
AMD64 stable (welp oleee)

15 Mar 2007; Torsten Veller g15daemon-1.2.6a-r1.ebuild:
Stable on x86 (#170417)

*g15daemon-1.9.0 (12 Mar 2007)

12 Mar 2007; Robert Buchholz
files/g15daemon-1.2.6a.confd, g15daemon-1.2.6a-r1.ebuild,
g15daemon-1.2.7.ebuild, +g15daemon-1.9.0.ebuild:
Fixes by tove from bug #170417 and version bump

*g15daemon-1.2.7 (18 Feb 2007)

18 Feb 2007; Robert Buchholz
-files/g15daemon-1.2.5.confd, -files/g15daemon-1.2.5.initd,
+files/g15daemon-1.2.7.confd, +files/g15daemon-1.2.7.initd,
-g15daemon-1.2.5.ebuild, g15daemon-1.2.6a-r1.ebuild,
+g15daemon-1.2.7.ebuild:
Version bump, drop old and fix of bug #167240

27 Jan 2007; Joseph Jezak g15daemon-1.2.5.ebuild,
g15daemon-1.2.6a-r1.ebuild:
Marked ~ppc for bug #148072.

*g15daemon-1.2.6a-r1 (07 Jan 2007)

07 Jan 2007; Robert Buchholz
-files/g15daemon-1.2.3.initd, +files/g15daemon-1.2.6a.confd,
+files/g15daemon-1.2.6a.initd, -g15daemon-1.2.3.ebuild,
g15daemon-1.2.5.ebuild, -g15daemon-1.2.6a.ebuild,
+g15daemon-1.2.6a-r1.ebuild:
revbump as init script changed, cleanin out old

*g15daemon-1.2.6a (06 Dec 2006)

06 Dec 2006; Markus Ullmann +g15daemon-1.2.6a.ebuild:
Version bump

*g15daemon-1.2.5 (13 Nov 2006)

13 Nov 2006; Markus Ullmann
-files/g15daemon-1.2.1.initd, +files/g15daemon-1.2.5.confd,
+files/g15daemon-1.2.5.initd, -g15daemon-1.2.1-r2.ebuild,
+g15daemon-1.2.5.ebuild:
Version bump

*g15daemon-1.2.3 (31 Oct 2006)

31 Oct 2006; Markus Ullmann
+files/g15daemon-1.2.3.initd, +g15daemon-1.2.3.ebuild:
Version bump

*g15daemon-1.2.1-r2 (24 Oct 2006)

24 Oct 2006; Markus Ullmann
+files/g15daemon-1.2.1.initd, -files/g15daemon-1.2.1.rc, metadata.xml,
-g15daemon-1.2.1-r1.ebuild, +g15daemon-1.2.1-r2.ebuild:
Revbump to clean up xmms deps

18 Oct 2006; Markus Ullmann metadata.xml:
Metadata update

14 Oct 2006; Markus Rothe g15daemon-1.2.1-r1.ebuild:
Added ~ppc64; bug #150934

*g15daemon-1.2.1-r1 (10 Oct 2006)

10 Oct 2006; Markus Ullmann files/g15daemon-1.2.1.rc,
-g15daemon-1.2.1.ebuild, +g15daemon-1.2.1-r1.ebuild:
Adding bindings

*g15daemon-1.2.1 (04 Oct 2006)

04 Oct 2006; Markus Ullmann +files/g15daemon-1.2.1.rc,
+metadata.xml, +g15daemon-1.2.1.ebuild:
Initial import, thanks to Alessio Cassibba in bug #148769 for providing an
ebuild

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX g15daemon-1.2.6a.confd 236 RMD160 8bd008853963292dcb63c3685ba39a8265fb8255 SHA1 3b315e7a12eb7375724f48f943862acc69963e57 SHA256 b5353ac723b8fc3184eaca3db84ced1904e89b43b448ee9713e2b1b9cffd7d01
AUX g15daemon-1.2.6a.initd 1002 RMD160 5b30c2a2976fb42ae2d7b57caa89f86dbf52ca3f SHA1 1796fc22d68cd9c99a4ca9c4623403dc33e8762e SHA256 99270b912a1c0de2e707cd304216bf0388b2d7a8f3838a38e5491c9919883380
AUX g15daemon-1.2.7-r1.initd 1159 RMD160 5116a84063c793310850cc62a6658bab0bc8cbf2 SHA1 37227d55924ce139c21aeb74139710562caef922 SHA256 17d6d4c3db13c45e9ee71cf8dda763acabe67fe3e02731c0aa33dbb48506b34a
AUX g15daemon-1.2.7-r2.initd 1107 RMD160 33a13cbbdf3701b6e81fb39dfad5f6ee3318d1bc SHA1 7832d5da216f59b42423d2f9583eb2b3356ae237 SHA256 37d29b422cdc680bd066d8b0dca874781396aded214cf080014454421c9bb26d
AUX g15daemon-1.2.7.confd 329 RMD160 962088db694d25a6935de80299a45d94787ed251 SHA1 f452f915e6f903e4cdbbfc3db3e2e57ef702425f SHA256 a7977e03f0faaed85f659b077fddc3a589c2e2d4386df1e9afc89133c25bc613
AUX g15daemon-1.2.7.initd 1077 RMD160 33d59ace2b40f969962a47872a4b506bddca0795 SHA1 f339c92e50d69f888ee42f6acc86cfec39f4e49d SHA256 bed4adb30913a12268769d5e6abfe2a2b6e1b583d45f252dbc6aa86492f3ba30
DIST g15daemon-1.2.6a.tar.bz2 273767 RMD160 947441a1c89d1f45f02094a59735f488a76ce285 SHA1 473f3e0aee0122597c1e91cf54b18d3d6e28e8e9 SHA256 583c4bece816b712959aba51f49d78bb587e215fbb6a322efe832477c74f2564
DIST g15daemon-1.2.7.tar.bz2 275938 RMD160 e6490c9b3200c89cf88c574459eef7562a500161 SHA1 17ab942a389501c0b7b8a0ffdbf4397882d24daa SHA256 2f8cfa386c88e72dbb07c7112cbd943dbda4f56dd55d08a01c7bf9efd47d164f
DIST g15daemon-1.9.0.tar.bz2 288639 RMD160 8695fadf63e84fb1e55067f32d2736f96665b6ab SHA1 1e74ea6f48732a4666ecb0e8da709da85971d65e SHA256 7a88bdb9464c6954a936efb8d1fc6bf2e7f90ce4e30ba2b982b7fdd1a9eb95e7
DIST g15daemon-1.9.1.tar.bz2 301481 RMD160 2dab5ced813edb598b5b680f1fceee57164d7967 SHA1 21cdeed3542802fa87547e766c349e7c0cbc9c7b SHA256 a0928871e4f597278397e7f9a90247d4e4586870b58932b213fb1d1a30e0e7d3
DIST g15daemon-1.9.2.tar.gz 399349 RMD160 2be18efbcfefac09de33387f1736ab3000e0511c SHA1 8e402491da5ecc3b3945cef55fee0594317b5e91 SHA256 c400a4a7fbe4cc5a4dd7adc29c60ca1e52c3649af382f0f32239f2320a0ff603
DIST g15daemon-1.9.3.tar.gz 399817 RMD160 7c60cbafa5b33008b5d13ca9d171b2a5dafb8980 SHA1 e9b6bdd4602474f6c97437ff48c2d20c7ed93343 SHA256 d7828a80acde9cb4b5187f39d66a033cbe8147a4b34e574b0e0ba4961fe695a9
DIST g15daemon-1.9.5.3.tar.gz 414603 RMD160 937362cd75d578e1b992868aeacefa928390ab4d SHA1 bc10775494ff38e78ecb62074869332d96c5cb55 SHA256 40ff07a4186c1fd01ea23d1753a2cb3bef25f92cc496ddddc6abde6a574cd60a
EBUILD g15daemon-1.2.6a-r1.ebuild 3522 RMD160 e452c5d1474e2a671e9f937ae7ade95e0f72b21e SHA1 3748a4a2d0acad583d95eefc0d094a3a3721d991 SHA256 b1d9a6fa461c6290f8dfae5684dbc470ff12de840971db3302a8208007cdce07
EBUILD g15daemon-1.2.7-r1.ebuild 3443 RMD160 12f9b92f4f09afaa58a927de482a5417077804c6 SHA1 99ac4db23434a2c6b2070d502167ad5e9ea8489a SHA256 6d6acf08709ad28993074d6ef4409669993587a633424d411e93efc711f4d8e4
EBUILD g15daemon-1.2.7.ebuild 3436 RMD160 e1dfb37e3071f59e48d75a52ab168998af466ace SHA1 8e0d881d4252f20d6eb31f6d99f8a6644e0fe9fe SHA256 fcc8da38768c3576cd4c9de214aeaae77639650ed2db207511699c9cdf7e2139
EBUILD g15daemon-1.9.0-r1.ebuild 3469 RMD160 d5227f61afd83bfb9d88b3d5e1e6a26dae6e4f6b SHA1 b30b06d22700660cafce41e0d0fa1cdf40018bf9 SHA256 01371047c1581987215a24659b8cec6b475a9a4abdf26e444be4d3f054de9a03
EBUILD g15daemon-1.9.1.ebuild 3466 RMD160 06ace6ccd2bee01d220ac859d5517a139d747b56 SHA1 3accd8154c8506ed7777b2560ef88191eda9c2c4 SHA256 ec65cb872398f7ac898059b9935d92afcf0e1b099038f143e8646852bef6c103
EBUILD g15daemon-1.9.2.ebuild 3465 RMD160 10a137d277e56876158d6ad67d77acdf61e2a352 SHA1 42eedbcb38f5714329581db52dafae4e6aa1ce2f SHA256 923ecc95a79ac0efade0cef328b06644aaeb913f9cdb0377d5a1277a4078a5df
EBUILD g15daemon-1.9.3.ebuild 3465 RMD160 ee0c94a836fc5535e8d6b0303a0b2910dbdcc238 SHA1 eb3ca6207f2c0cc74e9d8238d5a1e7c3e8144fb0 SHA256 bf6fbbc62cb2e07cbdf9e6dd83f49733825918a2e17e9ca53a8bb5749f6adad2
EBUILD g15daemon-1.9.5.3.ebuild 3467 RMD160 fb712dce080e7b503a887373ffa6b681fb0f7fe1 SHA1 836d591f442031df402f35545dfde4d331e75dfb SHA256 d551ed858cd6d169b5a7f7cff7d21629c764dd38de98e15d3518669f17186dfe
MISC ChangeLog 4521 RMD160 12357670164da141da4140259e32cb5b91728753 SHA1 46d517d287aef7155a653177f7c4a4a77f95a489 SHA256 d1a614f5f78b8f065cea8199be9aef57e83ff922206a94d9d237588bfccf9d8a
MISC metadata.xml 249 RMD160 3a959d6b2d70ee342ccdf4abcaa3107d6f2897ed SHA1 942405176c914e1682a8a0daa6c5b9d7b6a2a94d SHA256 5a7fbdf3050c5c4c8f1dc154e8c715162b71ef329ec3e59facb4965dea2c9a81
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkg+zq8ACgkQQU4yORhF8iARIgCfRmATU2e4pvp6CLCfqvBwhcUx
+D4AoIj2pmldNKAtjhve/7LMhLw52SG8
=Fvle
-----END PGP SIGNATURE-----

files

g15daemon-1.2.6a-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.6a-r1.ebuild,v 1.6 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
dev-libs/libdaemon
>=dev-libs/libg15-1.1.0
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${P}.confd" ${PN}
newinitd "${FILESDIR}/${P}.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py
docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
elog ""
elog "Note: the daemon now supports to use the small round key"
elog "instead of MR for switching LCD clients. see /etc/conf.d/g15daemon"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.2.7-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.7-r1.ebuild,v 1.2 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
dev-libs/libdaemon
>=dev-libs/libg15-1.2.0
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${P}.confd" ${PN}
newinitd "${FILESDIR}/${PF}.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py
docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.2.7.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.2.7.ebuild,v 1.6 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
dev-libs/libdaemon
>=dev-libs/libg15-1.2.0
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${P}.confd" ${PN}
newinitd "${FILESDIR}/${P}.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py
docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.9.0-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.0-r1.ebuild,v 1.2 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
>=dev-libs/libg15-1.2.0
>=dev-libs/libg15render-1.2
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.2.7-r1.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py

docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.9.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.1.ebuild,v 1.2 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
>=dev-libs/libg15-1.2.4
>=dev-libs/libg15render-1.2
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py

docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.9.2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.2.ebuild,v 1.2 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
>=dev-libs/libg15-1.2.4
>=dev-libs/libg15render-1.2
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py

docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.9.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.3.ebuild,v 1.2 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
>=dev-libs/libg15-1.2.4
>=dev-libs/libg15render-1.2
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py

docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

g15daemon-1.9.5.3.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/g15daemon/g15daemon-1.9.5.3.ebuild,v 1.2 2008/05/29 15:41:32 hawking Exp $

inherit eutils linux-info perl-module python multilib

DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
HOMEPAGE="http://g15daemon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="perl python"

DEPEND="dev-libs/libusb
>=dev-libs/libg15-1.2.4
>=dev-libs/libg15render-1.2
perl? ( >=dev-perl/Inline-0.4 )
python? ( dev-lang/python )"

RDEPEND="${DEPEND}
perl? ( dev-perl/GDGraph )"

uinput_check() {
ebegin "Checking for uinput support"
linux_chkconfig_present INPUT_UINPUT
eend $?

if [[ $? -ne 0 ]] ; then
eerror "To use g15daemon, you need to compile your kernel with uinput support."
eerror "Please enable uinput support in your kernel config, found at:"
eerror
eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
eerror
eerror "Once enabled, you should have the /dev/input/uinput device."
eerror "g15daemon will not work without the uinput device."
die "INPUT_UINPUT support not detected!"
fi
}

pkg_setup() {
linux-info_pkg_setup
uinput_check
}

src_unpack() {
unpack ${A}
if use perl; then
unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
fi
if use python; then
unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
fi
}

src_compile() {
econf || die "configure failed"

emake || die "make failed"

if use perl; then
cd "${WORKDIR}/G15Daemon-0.2"
perl-module_src_compile
fi
}

src_install() {
emake DESTDIR="${D}" \
docdir=/usr/share/doc/${PF} install || die "make install failed"

# remove odd docs installed my make
rm "${D}/usr/share/doc/${PF}/"{LICENSE,README.usage}

insinto /usr/share/${PN}/contrib
doins contrib/xmodmaprc
doins contrib/xmodmap.sh
if use perl; then
doins contrib/testbindings.pl
fi

newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
newinitd "${FILESDIR}/${PN}-1.2.7-r2.initd" ${PN}

if use perl; then
ebegin "Installing Perl Bindings (G15Daemon.pm)"
cd "${WORKDIR}/G15Daemon-0.2"
docinto perl
perl-module_src_install
fi

if use python; then
ebegin "Installing Python Bindings (g15daemon.py)"
cd "${WORKDIR}/pyg15daemon"
python_version

insinto /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
doins g15daemon.py

docinto python
dodoc AUTHORS
fi

prepalldocs
}

pkg_postinst() {
if use python; then
python_version
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/g15daemon
echo ""
fi

elog "To use g15daemon, you need to add g15daemon to the default runlevel."
elog "This can be done with:"
elog "# /sbin/rc-update add g15daemon default"
elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
elog ""
elog "To have all new keys working in X11, you'll need create a "
elog "specific xmodmap in your home directory or edit the existent one."
elog ""
elog "Create the xmodmap:"
elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
elog ""
elog "Adding keycodes to an existing xmodmap:"
elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
}

pkg_postrm() {
if use python; then
python_mod_cleanup "/usr/$(get_libdir)/python*/site-packages/g15daemon"
fi
}

metadata.xml




lcd

chainsaw@gentoo.org
Tony Vroon