# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ WANT_AUTOMAKE=1.7 WANT_AUTOCONF=2.5 inherit autotools DESCRIPTION="displays GPS position on a map" HOMEPAGE="http://gpsdrive.kraftvoll.at" SRC_URI="http://gpsdrive.kraftvoll.at/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="garmin mysql" DEPEND=" sys-devel/gettext dev-util/pkgconfig >=x11-libs/gtk+-2.8.12 >=dev-libs/libpcre-4.2" RDEPEND="${DEPEND} mysql? ( dev-db/mysql )" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-configure.patch sed -i -e "s:^EXTRA_DIST.*$::" Makefile.am \ -e "s:^pkgdata_DATA.*$::" Makefile.am eautoreconf } src_compile() { econf \ $(use_enable garmin) \ || die "econf failed" emake || die "compile failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS create.sql CREDITS Changelog FAQ* GPS-receivers NMEA.txt \ README* TODO wp2sql } pkg_postinst() { if use mysql; then echo -e "\n" elog "Be sure to read ${ROOT}usr/share/doc/${PF}/README.SQL.gz for information" elog "on using MySQL with gpsdrive.\n" fi }