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

Unified Diff: sci-geosciences/gpsd/gpsd-2.38.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/files/gpsd.conf ('k') | sci-geosciences/gpsd/gpsd-2.38-r1.ebuild » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sci-geosciences/gpsd/gpsd-2.38.ebuild
diff --git a/sci-geosciences/gpsd/gpsd-2.38.ebuild b/sci-geosciences/gpsd/gpsd-2.38.ebuild
deleted file mode 100644
index 558d009421136500fa034fb5b423b3e43ee34fe8..0000000000000000000000000000000000000000
--- a/sci-geosciences/gpsd/gpsd-2.38.ebuild
+++ /dev/null
@@ -1,185 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.38.ebuild,v 1.4 2010/01/19 00:50:35 jer Exp $
-
-PYTHON_DEPEND="python? *"
-inherit autotools eutils distutils flag-o-matic
-
-DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients."
-HOMEPAGE="http://gpsd.berlios.de/"
-SRC_URI="mirror://berlios/gpsd/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm hppa ~ppc ~ppc64 ~sparc ~x86"
-
-IUSE="dbus garmin minimal ntp ocean python tntc usb X"
-
-RDEPEND="X? (
- x11-libs/libXmu
- x11-libs/libXext
- x11-libs/libXp
- x11-libs/libX11
- x11-libs/libXt
- x11-libs/libSM
- x11-libs/libICE
- x11-libs/libXpm
- x11-libs/libXaw
- )
- python? ( dev-lang/python )
-
- 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}
- X? (
- x11-proto/xproto
- x11-proto/xextproto
- )
- !minimal? (
- dev-libs/libxslt
- sys-libs/ncurses
- )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # add -lm to setup.py again (see bug #250757)
- sed -i \
- -e "s:, gpspacket_sources:, gpspacket_sources, libraries=['m']:g" \
- -e "s:geoid.c\"]:geoid.c\"], libraries=['m']:g" \
- setup.py || die "sed 1 failed"
- # fix Garmin text struct
- sed -i -e "s:RTCM2_PACKET;:RTCM2_PACKET,:g" \
- drivers.c || die "sed 2 failed"
- # add missing include file (see bug #162361)
- sed -i -e "s:gps.h libgpsmm.h:gps.h libgpsmm.h gpsd_config.h:g" \
- Makefile.am || die "sed 3 failed"
-
- eautoreconf
-}
-
-src_compile() {
-
- local my_conf="--enable-shared --with-pic --enable-static \
- --disable-fast-install"
- # --enable-superstar2 is missing a header file
-
- 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
-
- if use minimal; then
- local max_clients="5"
- local max_devices="2"
- if ! use ntp; then
- my_conf="${my_conf} --disable-pps --disable-ntpshm"
- fi
- my_conf="${my_conf} --enable-squelch --without-x \
- --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 python) \
- $(use_enable garmin garmintxt) || die "econf failed"
- else
- econf ${my_conf} $(use_enable dbus) $(use_enable tntc tnt) \
- $(use_enable ocean oceanserver) $(use_enable python) \
- $(use_enable garmin garmintxt) $(use_with X x) \
- || die "econf failed"
- fi
-
- # still needs an explicit linkage with the math lib (bug #250757)
- append-ldflags -Wl,-z,-defs -Wl,--no-undefined
-
- emake -j1 || die "emake failed"
-}
-
-src_install() {
-
- make DESTDIR="${D}" install || die "make install failed"
-
- if ! test -x "${D}"usr/sbin/gpsd; then
- ewarn "gpsd link error detected; please re-emerge gpsd."
- fi
-
- if use usb ; then
- insinto /etc/hotplug/usb
- doins gpsd.usermap
- exeinto /etc/hotplug/usb
- doexe gpsd.hotplug
- insinto /etc/udev/rules.d
- doins "${FILESDIR}"/99-gpsd-usb.rules
- keepdir /var/run/usb # needed for REMOVER
- else
- newconfd "${FILESDIR}"/gpsd.conf gpsd
- newinitd "${FILESDIR}"/gpsd.init gpsd
- fi
-
- if use X && ! use minimal ; then
- insinto /etc/X11/app-defaults
- newins xgps.ad Xgps
- newins xgpsspeed.ad Xgpsspeed
- else
- rm "${D}usr/share/man/man1/xgpsspeed.1.bz2" \
- "${D}usr/share/man/man1/xgps.1.bz2"
- fi
-
- use python && distutils_src_install
-
- dodoc INSTALL README TODO
-
- # add missing dgpsip-servers and capabilities files
- insinto /usr/share/${PN}
- doins dgpsip-servers gpscap.ini
-
- if use minimal; then
- doman gpsctl.1 sirfmon.1 gpsd.8 gps.1 cgps.1 cgpxlogger.1 gpspipe.1
- use python && doman gpsprof.1
- else
- diropts "-m0644"
- dobin logextract
- use python && dobin striplog
- fi
-}
-
-pkg_postinst() {
- elog ""
- elog "This version of gpsd has broken support for the SuperStarII"
- elog "chipset which is currently disabled."
- elog ""
- elog "Other than the above, all default devices are enabled, and all"
- elog "optional devices and formats are controlled via USE flags."
- elog ""
- elog "Recent versions of udev (>=udev-115 or so) should have correct"
- elog "usb device detection and startup of gpsd (ie, without hotplug)."
- elog ""
- elog "Certain GPS devices also require the corresponding kernel options"
- elog "to be enabled, such as USB_SERIAL_GARMIN, or a USB serial driver"
- elog "for an adapter such as those that come with Deluo GPS units (eg,"
- elog "USB_SERIAL_PL2303). Straight serial devices should always work,"
- elog "even without udev/hotplug support."
- elog ""
- elog "Note: the supplied gpsd udev rules are now device-specific, so"
- elog "if your device isn't detected correctly, please use lsusb or"
- elog "another suitable tool to determine the proper device IDs and"
- elog "use the commented rules to fill in the blanks for your device."
- elog ""
- elog "Please see this post about the new capabilities database:"
- elog ""
- elog "http://lists.berlios.de/pipermail/gpsd-dev/2009-January/006333.html"
- elog ""
- elog "on current hardware, adding new hardware, etc. Read the above"
- elog "and the INSTALL doc for more information on supported hardware,"
- elog "and make sure udev has the right group permissions set on the"
- elog "devices if using USB (it should Do The Right Thing (TM))..."
- elog ""
-}
« no previous file with comments | « sci-geosciences/gpsd/files/gpsd.conf ('k') | sci-geosciences/gpsd/gpsd-2.38-r1.ebuild » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698