# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde eutils DESCRIPTION="A flight logger/analyser for KDE aimed at glider pilots" HOMEPAGE="http://www.kflog.org/kflog/" SRC_URI="http://www.kflog.org/download/src/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ppc ~sparc x86" IUSE="" need-kde 3 src_unpack() { kde_src_unpack epatch ${FILESDIR}/kflog-2.1.1-noarts.diff } src_install() { kde_src_install rm -rf ${D}/usr/share/doc/HTML chown -R root:users ${D}/usr/share/apps/kflog/mapdata chmod -R ug+rw ${D}/usr/share/apps/kflog/mapdata } pkg_postinst() { einfo "Note: Maps are not included. KFlog can download required data" einfo "for you, or you may obtain map/airspace/airfield data at:" einfo einfo "http://maproom.kflog.org/" einfo einfo "and untar them in /usr/share/apps/kflog/mapdata" einfo "Visiting http://www.kflog.org/ is generally a good idea." } pkg_postrm() { einfo "Note: If you installed any maps, airspace or airfield data -" einfo "DO NOT FORGET to remove it manually! (/usr/share/apps/kflog/mapdata" einfo einfo "Browsing though /usr/share/apps/kflog might be a good idea." }