# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

DESCRIPTION="Neo console keyboardlayout"
HOMEPAGE="http://neo-layout.org/"
SRC_URI="http://wiki.neo-layout.org/export/${PV}/linux/console/neo.map -> ${P}.map"

LICENSE="CC-BY-SA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="sys-apps/kbd"
RDEPEND="${DEPEND}"
S="${DISTDIR}/"
RESTRICT="mirror"

installdir="/usr/share/keymaps/i386/neo2"

src_unpack() {
	elog ""
}

src_install() {
	dodir $installdir
	gzip -c "${S}"/${P}.map > ${D}/$installdir/neo.map.gz
}

pkg_postinst() {
	elog "To use neo-layout set keymap=\"neo\" in /etc/conf.d/keymaps "
	elog "or load for your console \"loadkeys $installdir/neo.map.gz\" "
}