# Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Linux support for Easy Access and Internet keyboards (e.g. Compaq)." HOMEPAGE="http://lineak.sourceforge.net" SRC_URI="http://umn.dl.sourceforge.net/sourceforge/lineak/lineakd-0.4pre4.tar.gz \ gtk? http://umn.dl.sourceforge.net/sourceforge/lineak/lineakconfig-0.3.2.tar.gz \ kde? http://umn.dl.sourceforge.net/sourceforge/lineak/klineakconfig-0.5.1.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" DEPEND="xfree gtk? >=gtk+-1.2.0 kde? >=kdelibs-3.0" RDEPEND="${DEPEND}" S="${WORKDIR}" IUSE="nls gtk kde" src_compile() { local myconf use nls || myconf="--disable-nls" cd lineakd-0.4pre4 econf ${myconf} || die "econf failed" emake || die cd .. if [ "`use gtk`" ]; then cd lineakconfig-0.3.2 econf ${myconf} || die "econf failed" emake || die cd .. fi if [ "`use kde`" ]; then cd klineakconfig-0.5.1 econf ${myconf} \ --with-qt-dir=/usr/qt/3 \ --with-qt-includes=/usr/qt/3/include \ --with-qt-libraries=/usr/qt/3/lib \ || die "./configure failed" emake UIC=/usr/qt/3/bin/uic MOC=/usr/qt/3/bin/moc || die cd .. fi } src_install () { cd lineakd-0.4pre4 make DESTDIR=${D} install || die cd .. if [ "`use gtk`" ]; then cd lineakconfig-0.3.2 make DESTDIR=${D} install || die cd .. fi if [ "`use kde`" ]; then cd klineakconfig-0.5.1 make DESTDIR=${D} install || die fi } pkg_postinst() { if [ "`use gtk`" ]; then einfo "You may use /usr/bin/lineakconfig to configure your keyboard." fi if [ "`use kde`" ]; then einfo "You may use /usr/bin/klineakconfig to configure your keyboard." fi einfo "To install without the GUI, run /usr/bin/lineakd -l and find your keyboard. Then run /usr/bin/lineaked -c TYPE where TYPE is your keyboard type. The config file will be created in your home directory. Edit ~/.lineak/lineakd.conf to specify the commands you want to run." einfo "/usr/bin/lineakd must be run after your X session is started for your special keys to work." }