summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-09-08 02:49:42 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-09-08 02:49:42 +0000
commite26e1b08baa63348c10f1800fc0ab8ce04719ece (patch)
tree056dced9a03899b5ff51f032115a99ddbe9f2a7c /sci-geosciences/gpsbabel
parentutilize the gif USE flag in configure too (diff)
downloadhistorical-e26e1b08baa63348c10f1800fc0ab8ce04719ece.tar.gz
historical-e26e1b08baa63348c10f1800fc0ab8ce04719ece.tar.bz2
historical-e26e1b08baa63348c10f1800fc0ab8ce04719ece.zip
Initial import. Thanks to Gérald Fenoy <djayweb@djayux.net> for his work.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sci-geosciences/gpsbabel')
-rw-r--r--sci-geosciences/gpsbabel/ChangeLog10
-rw-r--r--sci-geosciences/gpsbabel/Manifest4
-rw-r--r--sci-geosciences/gpsbabel/files/digest-gpsbabel-1.2.71
-rw-r--r--sci-geosciences/gpsbabel/gpsbabel-1.2.7.ebuild71
-rw-r--r--sci-geosciences/gpsbabel/metadata.xml5
5 files changed, 91 insertions, 0 deletions
diff --git a/sci-geosciences/gpsbabel/ChangeLog b/sci-geosciences/gpsbabel/ChangeLog
new file mode 100644
index 000000000000..5ae1043e59cc
--- /dev/null
+++ b/sci-geosciences/gpsbabel/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-geosciences/gpsbabel
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsbabel/ChangeLog,v 1.1 2005/09/08 02:49:42 ribosome Exp $
+
+*gpsbabel-1.2.7 (08 Sep 2005)
+
+ 08 Sep 2005; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +gpsbabel-1.2.7.ebuild:
+ Initial import. Thanks to Gérald Fenoy <djayweb@djayux.net> for his work.
+
diff --git a/sci-geosciences/gpsbabel/Manifest b/sci-geosciences/gpsbabel/Manifest
new file mode 100644
index 000000000000..e9a311fa055c
--- /dev/null
+++ b/sci-geosciences/gpsbabel/Manifest
@@ -0,0 +1,4 @@
+MD5 3978ea3eead5c62b4975d06be04e0e43 gpsbabel-1.2.7.ebuild 1957
+MD5 8eff5a7740d4c847ed33742db00881ce ChangeLog 426
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 05edf04caf450a9db74d6d98fedc0269 files/digest-gpsbabel-1.2.7 67
diff --git a/sci-geosciences/gpsbabel/files/digest-gpsbabel-1.2.7 b/sci-geosciences/gpsbabel/files/digest-gpsbabel-1.2.7
new file mode 100644
index 000000000000..6c212107dc44
--- /dev/null
+++ b/sci-geosciences/gpsbabel/files/digest-gpsbabel-1.2.7
@@ -0,0 +1 @@
+MD5 535da9798714e53a9584e22ac7d651d3 gpsbabel-1.2.7.tar.gz 1643528
diff --git a/sci-geosciences/gpsbabel/gpsbabel-1.2.7.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.2.7.ebuild
new file mode 100644
index 000000000000..9a74d8583f12
--- /dev/null
+++ b/sci-geosciences/gpsbabel/gpsbabel-1.2.7.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsbabel/gpsbabel-1.2.7.ebuild,v 1.1 2005/09/08 02:49:42 ribosome Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="GPSBabel converts waypoints, tracks, and routes from one format to another"
+
+HOMEPAGE="http://www.gpsbabel.org/"
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE="usb debug"
+
+DEPEND="dev-libs/expat
+ virtual/tetex
+ usb? (dev-libs/libusb)
+ debug? (dev-util/efence)"
+
+src_compile() {
+ cd "${S}"
+ local serror
+ serror="Unable to modify Makefile with sed"
+ if use debug; then
+ sed "s/# -lefence/-lefence/" -i Makefile || die "${serror} (efence)"
+ fi
+ if use usb; then
+ einfo "Usb support will be enabled"
+ else
+ sed "s/LIBUSB=/INHIBIT_USB=-DNO_USB\nLIBUSB=#/" -i Makefile || \
+ die "${serror} (usb)"
+ fi
+ sed "s/OPTIMIZATION=-O/OPTIMIZATION=${CFLAGS} /" -i Makefile || \
+ die "${serror} (optimization)"
+
+ emake CC="$(tc-getCC)" || die "emake failed, see messages above"
+
+ cd "${S}"/doc/
+ make || die "Documentation generation failed"
+}
+
+src_install() {
+ cd "${S}"
+ dobin gpsbabel || die "Unable to install gpsbabel binary"
+ dodoc README* COPYING ChangeLog || die "Unable to install gpsbabel doc"
+
+ local DDIR
+ DDIR="/usr/share/doc/${PF}/samples"
+ sed -e "s:\./gpsbabel:gpsbabel:" \
+ -e "s:reference:${DDIR}/reference:" \
+ -i testc || die "${serror} (samples)"
+ insinto ${DDIR}/scripts
+ doins contrib/gpx2xfig testc || \
+ die "Unable to install gpsbabel test scripts"
+ chmod 0755 "${D}"/${DDIR}/scripts/testc
+ for i in reference reference/route reference/track reference/gc; do
+ insinto ${DDIR}/${i}
+ doins ${i}/* || die "Unable to install samples from ${i} directory"
+ done
+
+ cd "${S}"/doc/
+ insinto /usr/share/doc/${PF}/manual
+ doins doc.dvi babelfront2.eps || \
+ die "Unable to install gpsbabel documentation"
+}
diff --git a/sci-geosciences/gpsbabel/metadata.xml b/sci-geosciences/gpsbabel/metadata.xml
new file mode 100644
index 000000000000..b229aec85b8f
--- /dev/null
+++ b/sci-geosciences/gpsbabel/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>