summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2012-03-07 16:07:40 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2012-03-07 16:07:40 +0000
commit40b4b8f1fff73b71224bdcce55ccb35965d344ee (patch)
treed969372bb8bf2ba971c6909bde66a303759c9c70 /media-radio
parentdrop to ~sparc, bug 391393 (diff)
downloadgentoo-2-40b4b8f1fff73b71224bdcce55ccb35965d344ee.tar.gz
gentoo-2-40b4b8f1fff73b71224bdcce55ccb35965d344ee.tar.bz2
gentoo-2-40b4b8f1fff73b71224bdcce55ccb35965d344ee.zip
Fixed scripts location (bug #407185). Thanks szarpaj@grubelek.pl for pointing it out
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'media-radio')
-rw-r--r--media-radio/xastir/ChangeLog11
-rw-r--r--media-radio/xastir/files/xastir-2.0.0-scripts.diff108
-rw-r--r--media-radio/xastir/xastir-2.0.0-r2.ebuild74
3 files changed, 191 insertions, 2 deletions
diff --git a/media-radio/xastir/ChangeLog b/media-radio/xastir/ChangeLog
index 2a724027d85d..29787d825d9b 100644
--- a/media-radio/xastir/ChangeLog
+++ b/media-radio/xastir/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-radio/xastir
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/ChangeLog,v 1.19 2011/01/22 17:17:28 fauli Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/ChangeLog,v 1.20 2012/03/07 16:07:40 tomjbe Exp $
+
+*xastir-2.0.0-r2 (07 Mar 2012)
+
+ 07 Mar 2012; Thomas Beierlein <tomjbe@gentoo.org> +xastir-2.0.0-r2.ebuild,
+ +files/xastir-2.0.0-scripts.diff:
+ Fixed scripts location (bug #407185). Thanks szarpaj@grubelek.pl for pointing
+ it out
22 Jan 2011; Christian Faulhammer <fauli@gentoo.org>
xastir-2.0.0-r1.ebuild:
diff --git a/media-radio/xastir/files/xastir-2.0.0-scripts.diff b/media-radio/xastir/files/xastir-2.0.0-scripts.diff
new file mode 100644
index 000000000000..d4de2f6ef949
--- /dev/null
+++ b/media-radio/xastir/files/xastir-2.0.0-scripts.diff
@@ -0,0 +1,108 @@
+# patch scripts location (bug #407185). partially backported from upstream.
+diff -Nur -u xastir-2.0.0.orig/scripts/Makefile.am xastir-2.0.0/scripts/Makefile.am
+--- xastir-2.0.0.orig/scripts/Makefile.am 2010-07-02 07:08:52.000000000 +0000
++++ xastir-2.0.0/scripts/Makefile.am 2012-03-07 15:42:34.000000000 +0000
+@@ -3,15 +3,14 @@
+ # Copyright (C) 2000-2010 The Xastir Group
+ #
+
+-pkglib_SCRIPTS = \
++scriptsdir=${pkgdatadir}/scripts
++dist_scripts_DATA = \
+ Coordinate.pm \
+ coord-convert.pl \
+ get-fcc-rac.pl \
+ get-gnis \
+ get-pop \
+- get-maptools.sh \
+ get-NWSdata \
+- get_shapelib.sh \
+ gpx2shape \
+ icontable.pl \
+ inf2geo.pl \
+@@ -40,9 +39,6 @@
+ values \
+ values.pl \
+ waypoint-get.pl \
+- xastir-fixcfg.sh \
+- xastir-migrate.sh \
+ Xastir_tigerpoly.py
+
+-EXTRA_DIST = $(pkglib_SCRIPTS)
+
+diff -Nur -u xastir-2.0.0.orig/scripts/coord-convert.pl xastir-2.0.0/scripts/coord-convert.pl
+--- xastir-2.0.0.orig/scripts/coord-convert.pl 2010-07-03 22:09:48.000000000 +0000
++++ xastir-2.0.0/scripts/coord-convert.pl 2012-03-07 15:46:01.000000000 +0000
+@@ -26,7 +26,7 @@
+ #
+
+
+-use lib "${prefix}/lib";
++use lib /usr/share/xastir/scripts;
+ use Coordinate; # WE7U's Coordinate.pm module
+
+
+diff -Nur -u xastir-2.0.0.orig/scripts/permutations.pl xastir-2.0.0/scripts/permutations.pl
+--- xastir-2.0.0.orig/scripts/permutations.pl 2010-07-03 22:09:48.000000000 +0000
++++ xastir-2.0.0/scripts/permutations.pl 2012-03-07 15:42:34.000000000 +0000
+@@ -34,7 +34,7 @@
+ #
+
+
+-use lib "/usr/local/lib";
++use lib "/usr/share/xastir/scripts";
+ use Coordinate; # WE7U's Coordinate.pm module
+
+
+diff -Nur -u xastir-2.0.0.orig/scripts/test_coord.pl xastir-2.0.0/scripts/test_coord.pl
+--- xastir-2.0.0.orig/scripts/test_coord.pl 2010-01-31 02:12:23.000000000 +0000
++++ xastir-2.0.0/scripts/test_coord.pl 2012-03-07 15:42:34.000000000 +0000
+@@ -33,7 +33,7 @@
+
+ #------------------------------------------------------------------------------------------------
+
+-use lib "/usr/local/lib";
++use lib "/usr/share/xastir/scripts";
+ use Coordinate; # Snag WE7U's Coordinate module
+
+
+diff -Nur -u xastir-2.0.0.orig/scripts/toporama250k.pl xastir-2.0.0/scripts/toporama250k.pl
+--- xastir-2.0.0.orig/scripts/toporama250k.pl 2010-01-31 02:12:23.000000000 +0000
++++ xastir-2.0.0/scripts/toporama250k.pl 2012-03-07 15:46:49.000000000 +0000
+@@ -28,14 +28,14 @@
+ # map files for the whole of Canada!
+ #
+ #
+-# - "cd /usr/local/share/xastir/maps"
++# - "cd /usr/share/xastir/maps"
+ #
+ # - Assure you have write privileges in the directory above either
+ # by becoming root using the "su" command, using "sudo", or
+ # temporarily changing ownership and/or privileges on the
+ # "maps" directory.
+ #
+-# - "/usr/local/lib/xastir/toporama250k.pl"
++# - "/usr/share/xastir/scripts/toporama250k.pl"
+ #
+ # - The script will create/populate this directory heirarchy:
+ # .../maps/toporama/images/
+diff -Nur -u xastir-2.0.0.orig/scripts/toporama50k.pl xastir-2.0.0/scripts/toporama50k.pl
+--- xastir-2.0.0.orig/scripts/toporama50k.pl 2010-01-31 02:12:23.000000000 +0000
++++ xastir-2.0.0/scripts/toporama50k.pl 2012-03-07 15:47:01.000000000 +0000
+@@ -27,14 +27,14 @@
+ # map files for the whole of Canada!
+ #
+ #
+-# - "cd /usr/local/share/xastir/maps"
++# - "cd /usr/share/xastir/maps"
+ #
+ # - Assure you have write privileges in the directory above either
+ # by becoming root using the "su" command, using "sudo", or
+ # temporarily changing ownership and/or privileges on the
+ # "maps" directory.
+ #
+-# - "/usr/local/lib/xastir/toporama50k.pl"
++# - "/usr/share/xastir/scripts/toporama50k.pl"
+ #
+ # - The script will create/populate this directory heirarchy:
+ # .../maps/toporama/images/
diff --git a/media-radio/xastir/xastir-2.0.0-r2.ebuild b/media-radio/xastir/xastir-2.0.0-r2.ebuild
new file mode 100644
index 000000000000..bb13aa595dce
--- /dev/null
+++ b/media-radio/xastir/xastir-2.0.0-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-2.0.0-r2.ebuild,v 1.1 2012/03/07 16:07:40 tomjbe Exp $
+
+EAPI=2
+inherit autotools eutils
+
+DESCRIPTION="X Amateur Station Tracking and Information Reporting"
+HOMEPAGE="http://xastir.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="festival gdal geotiff graphicsmagick"
+
+DEPEND=">=x11-libs/openmotif-2.3:0
+ x11-libs/libXpm
+ x11-apps/xfontsel
+ dev-libs/libpcre
+ net-misc/curl
+ sys-libs/db
+ sci-libs/shapelib
+ !graphicsmagick? ( media-gfx/imagemagick[-hdri,-q32] )
+ graphicsmagick? ( media-gfx/graphicsmagick[-q32] )
+ geotiff? ( sci-libs/proj
+ sci-libs/libgeotiff
+ media-libs/tiff )
+ gdal? ( sci-libs/gdal )
+ festival? ( app-accessibility/festival )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # fix script location (bug #407185)
+ epatch "${FILESDIR}"/${P}-scripts.diff
+
+ # fix __FORTIFY_SOURCE warning (bug #337365)
+ epatch "${FILESDIR}"/${PN}-1.9.8-fortify.diff
+
+ # fix for DESTDIR
+ epatch "${FILESDIR}"/${P}-Destdir.diff
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --without-graphicsmagick \
+ --with-pcre \
+ --with-shapelib \
+ --with-dbfawk \
+ --without-ax25 \
+ --without-gpsman \
+ $(use_with !graphicsmagick imagemagick) \
+ $(use_with graphicsmagick) \
+ $(use_with geotiff libproj) \
+ $(use_with geotiff) \
+ $(use_with gdal) \
+ $(use_with festival)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ rm -rf "${D}"/usr/share/doc/${PN}
+ dodoc AUTHORS ChangeLog FAQ README README.Contributing \
+ README.Getting-Started README.MAPS || die "dodoc failed"
+}
+
+pkg_postinst() {
+ elog "Kernel mode AX.25 and GPSman library not supported."
+ elog
+ elog "Remember you have to be root to add addditional scripts,"
+ elog "maps and other configuration data under /usr/share/xastir."
+}