Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Unified Diff: sci-geosciences/gpsd/gpsd-2.95.ebuild

Issue 6025011: Simplify gpsd ebuild and use the latest available version. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Address review comments Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sci-geosciences/gpsd/gpsd-2.38-r1.ebuild ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sci-geosciences/gpsd/gpsd-2.95.ebuild
diff --git a/sci-geosciences/gpsd/gpsd-2.95.ebuild b/sci-geosciences/gpsd/gpsd-2.95.ebuild
new file mode 100644
index 0000000000000000000000000000000000000000..b5dfd7b9a56116979848e25e6021dd39a658213f
--- /dev/null
+++ b/sci-geosciences/gpsd/gpsd-2.95.ebuild
@@ -0,0 +1,71 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# This file is a heavily edited version of the Gentoo original streamlined for
+# ChromeOS base hardware.
+
+PYTHON_DEPEND="python? *"
+inherit autotools eutils distutils flag-o-matic
+
+DESCRIPTION="GPS daemon and library to interface GPS devices and clients"
+HOMEPAGE="http://gpsd.berlios.de/"
+SRC_URI="mirror://berlios/gpsd/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm x86"
+
+IUSE="dbus ntp usb"
+
+RDEPEND="dbus? ( >=sys-apps/dbus-0.94
+ >=dev-libs/glib-2.6
+ dev-libs/dbus-glib )
+ ntp? ( net-misc/ntp )
+ usb? ( virtual/dev-manager )"
+
+DEPEND="${RDEPEND}
+ python? ( dev-lang/python )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Drop extensions requiring Python.
+ sed -i -e 's:^\s\+Extension("gps\.\(packet\|clienthelpers\)",.*$:#:' \
+ setup.py || die "sed failed"
+ eautoreconf
+}
+
+src_compile() {
+ local max_clients="5"
+ local max_devices="2"
+ local my_conf="--enable-shared --with-pic --enable-static"
+
+ use python && distutils_python_version
+
+ if use ntp; then
+ my_conf="${my_conf} --enable-ntpshm --enable-pps"
+ else
+ my_conf="${my_conf} --disable-ntpshm --disable-pps"
+ fi
+
+ my_conf+=" --enable-max-devices=${max_devices}\
+ --enable-max-clients=${max_clients}"
+
+ WITH_XSLTPROC=no WITH_XMLTO=no econf ${my_conf} \
+ $(use_enable dbus) $(use_enable ocean oceanserver) \
+ $(use_enable tntc tnt) \
+ $(use_enable garmin garmintxt) || die "econf failed"
+
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ insinto /etc/init || die "insinto failed"
+ doins "${FILESDIR}/gpsd.conf" || die "doins failed"
+
+ # TODO(vbendeb): to reintroduce support of USB devices plug in
+ # populate udev rules here.
+}
« no previous file with comments | « sci-geosciences/gpsd/gpsd-2.38-r1.ebuild ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698