# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 MY_PN=fplan MY_P=${MY_PN}-${PV} S="${WORKDIR}/${MY_P}" DESCRIPTION="Open Source Cross Country Flight Planning" HOMEPAGE="http://www.ibiblio.org/fplan/" SRC_URI="http://www.ibiblio.org/fplan/${MY_P}.src.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~amd64" IUSE="" RDEPEND="x11-libs/gtk+ x11-libs/xview gnome-base/gnome-libs" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd ${S} sed -ie "s#^BINDIR =.*#BINDIR = ${D}usr/bin#" Makefile sed -ie "s#^MANDIR =.*#MANDIR = ${D}usr/man#" Makefile } src_compile() { emake || die "emake failed" } src_install() { dodir /usr/bin dodir /usr/man/man1 dodir /usr/man/man5 make install || die "install died" make install-man || die "install-man died" dodoc ANNOUNCE AUTHORS BUGS CHANGE.LOG EXAMPLE* FAQ INSTALL README TODO } pkg_postinst() { einfo "You must now construct an airport (and VOR) database. You can do this manually" einfo "or you can download one (if available). A U.S. database can be downloaded here:" einfo "http://www.ibiblio.org/fplan/database_disclaimer.html" einfo "or you can check the fplan site for other downloads at:" einfo "http://www.ibiblio.org/fplan/download.html" }