summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2008-07-10 16:29:55 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2008-07-10 16:29:55 +0000
commit434d63949f3eb4532047ab4cbfa5b0abb3c62611 (patch)
tree1c88c90e318e75c0cce83cf41926e2a0dc1b7542
parentLocal flags 'festival', 'geotiff' and 'gdal' for media-radio/xastir added (diff)
downloadsunrise-434d63949f3eb4532047ab4cbfa5b0abb3c62611.tar.gz
sunrise-434d63949f3eb4532047ab4cbfa5b0abb3c62611.tar.bz2
sunrise-434d63949f3eb4532047ab4cbfa5b0abb3c62611.zip
media-radio/xastir: Ebuild for bug 231416 (and 109695) thanks to tcunha and chithead
svn path=/sunrise/; revision=6468
-rw-r--r--media-radio/xastir/ChangeLog13
-rw-r--r--media-radio/xastir/Manifest7
-rw-r--r--media-radio/xastir/files/xastir-1.9.2-IM.diff20
-rw-r--r--media-radio/xastir/files/xastir-1.9.2-curl.diff22
-rw-r--r--media-radio/xastir/files/xastir-1.9.2-scripts.diff178
-rw-r--r--media-radio/xastir/metadata.xml9
-rw-r--r--media-radio/xastir/xastir-1.9.2.ebuild72
7 files changed, 321 insertions, 0 deletions
diff --git a/media-radio/xastir/ChangeLog b/media-radio/xastir/ChangeLog
new file mode 100644
index 000000000..e1b4548b8
--- /dev/null
+++ b/media-radio/xastir/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for media-radio/fldigi
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 10 Jul 2008; Thomas Beierlein (TomJBE) <tb@forth-ev.de>
+ +xastir-1.9.2.ebuild, +files/xastir-1.9.2-IM.diff,
+ +files/xastir-1.9.2-curl.diff, +files/xastir-1.9.2-scripts.diff,
+ +metadata.xml:
+ Ebuild for bug 231416 (and 109695) thanks to tcunha and chithead
+
+*xastir-1.9.2 (10 Jul 2008)
+
+
diff --git a/media-radio/xastir/Manifest b/media-radio/xastir/Manifest
new file mode 100644
index 000000000..be68529c8
--- /dev/null
+++ b/media-radio/xastir/Manifest
@@ -0,0 +1,7 @@
+AUX xastir-1.9.2-IM.diff 993 RMD160 f334b93a98510d1ef6969e762c933e3879b01b45 SHA1 8d8ccd2b7ab99147c1d16f87d2fa0d3d402b263f SHA256 76e0bac841f9d37724834b5a08871b68ad86d2ae741e788cd531a675ca8e1f2e
+AUX xastir-1.9.2-curl.diff 862 RMD160 2f56617c99cf8408b1d03b958311bd72d4c10c02 SHA1 ff4b73761fc892a8823f7dccfbc82047d325d1d8 SHA256 0e6f083b268ca8182a26c7b03e33cda59842c363ac59631a947adf87fa8f8cd6
+AUX xastir-1.9.2-scripts.diff 6114 RMD160 fb431c31f39fbef383d190024af4ba938df17bfa SHA1 4f06a4e6584f6a96aa7de30cdd34621f36358e5e SHA256 c6ab1bcaf176a971bb4b4ab9e3dd166f7376b16df8ee9fa884779b9aa631a87b
+DIST xastir-1.9.2.tar.gz 2253001 RMD160 583b8fcc1637ee91e8301585295a1ceb72187593 SHA1 105af73a35c81f27ab0ca6ad3a5bfe966327ee9a SHA256 4fb9ebc84113a504c8c08c563e7f0f5a53688f9aa144c8f21ecd41bc65db0e10
+EBUILD xastir-1.9.2.ebuild 1739 RMD160 269fffc45fee3dff5de86d96c1bd819cb8778af9 SHA1 7dbc074eff58c968b14fc52e40289c85ab384235 SHA256 d66ce9f8e4fe90c2113c70823e8121d1d4c636762b02ee6b7d3ad0d31d5775e4
+MISC ChangeLog 413 RMD160 fe5a15e1bcc9b2e3937042d71f9e91d0fb49cd6e SHA1 b49c85233f80a7348a26a3cb7cab24bea317ac49 SHA256 c3719621d97e6948b6358e1ac62dbdcb454d6db2ce844981add9ffb4b8fe5d76
+MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85
diff --git a/media-radio/xastir/files/xastir-1.9.2-IM.diff b/media-radio/xastir/files/xastir-1.9.2-IM.diff
new file mode 100644
index 000000000..65ff3f158
--- /dev/null
+++ b/media-radio/xastir/files/xastir-1.9.2-IM.diff
@@ -0,0 +1,20 @@
+--- acinclude.m4.orig 2008-07-05 20:14:40.000000000 +0200
++++ acinclude.m4 2008-07-05 20:15:20.000000000 +0200
+@@ -450,7 +450,7 @@
+ # because AC_CHECK_PROG will do nothing if the variable is already set!
+ #
+ use_imagemagick=no
+-AC_PATH_PROG(MAGIC_BIN, [Magick-config], no, $BINPATH)
++AC_PATH_PROG(MAGIC_BIN, [MagickCore-config], no, $BINPATH)
+ if test "$MAGIC_BIN" != "no"; then
+ use_imagemagick=yes
+ #else
+@@ -489,7 +489,7 @@
+ if test "${use_imagemagick}" = "no"; then
+ AC_MSG_WARN(*** Cannot find ImageMagick include files: Building w/o ImageMagick support. ***)
+ else
+- AC_CHECK_LIB([Magick], [WriteImage], AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Imagemagick image library]), use_imagemagick="no")
++ AC_CHECK_LIB([MagickCore], [WriteImage], AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Imagemagick image library]), use_imagemagick="no")
+ if test "${use_imagemagick}" = "no"; then
+ AC_MSG_WARN(*** Cannot find ImageMagick library files: Building w/o ImageMagick support. ***)
+ fi
diff --git a/media-radio/xastir/files/xastir-1.9.2-curl.diff b/media-radio/xastir/files/xastir-1.9.2-curl.diff
new file mode 100644
index 000000000..833a4a7b8
--- /dev/null
+++ b/media-radio/xastir/files/xastir-1.9.2-curl.diff
@@ -0,0 +1,22 @@
+--- configure.ac.orig 2008-07-06 08:01:02.000000000 +0200
++++ configure.ac 2008-07-06 08:05:51.000000000 +0200
+@@ -138,9 +138,17 @@
+
+ use_curl=no
+ if test "${use_lsb}" = "no"; then
+- AC_CHECK_LIB([curl], [curl_global_init], use_curl="yes")
++ # Important: when using the three-argument version of AC_CHECK_LIB, you
++ # must do all of what is normally the default behavior in the third argument,
++ # not just the extra stuff you want to accomplish:
++ AC_CHECK_LIB([curl], [curl_global_init],
++ [use_curl="yes"
++ LIBS="${LIBS} -lcurl"
++ AC_DEFINE(HAVE_LIBCURL, ,
++ [Define to 1 if your `curl' library has curl_global_init.])
++ ])
+ else
+- AC_DEFINE(HAVE_LIBCURL, , Define to 1 if your `shp' library has DBFGetFieldIndex. )
++ AC_DEFINE(HAVE_LIBCURL, , [Define to 1 if your `curl' library has curl_global_init.])
+ LIBS="${LIBS} -lcurl"
+ use_curl=yes
+ fi
diff --git a/media-radio/xastir/files/xastir-1.9.2-scripts.diff b/media-radio/xastir/files/xastir-1.9.2-scripts.diff
new file mode 100644
index 000000000..0b9bf3a46
--- /dev/null
+++ b/media-radio/xastir/files/xastir-1.9.2-scripts.diff
@@ -0,0 +1,178 @@
+diff -u scripts.orig/Makefile.am scripts/Makefile.am
+--- scripts.orig/Makefile.am 2007-01-03 20:40:49.000000000 +0100
++++ scripts/Makefile.am 2008-07-10 14:39:40.000000000 +0200
+@@ -8,9 +8,7 @@
+ coord-convert.pl \
+ fcc-get \
+ get-gnis \
+- get-maptools.sh \
+ get-NWSdata \
+- get_shapelib.sh \
+ gpx2shape \
+ icontable.pl \
+ inf2geo.pl \
+@@ -29,8 +27,6 @@
+ track-get.pl \
+ update_langfile.pl \
+ waypoint-get.pl \
+- xastir-fixcfg.sh \
+- xastir-migrate.sh \
+ Xastir_tigerpoly.py
+
+
+diff -u scripts.orig/coord-convert.pl scripts/coord-convert.pl
+--- scripts.orig/coord-convert.pl 2002-08-26 23:52:03.000000000 +0200
++++ scripts/coord-convert.pl 2008-07-10 14:36:21.000000000 +0200
+@@ -26,7 +26,7 @@
+ #
+
+
+-use lib "/usr/local/lib";
++use lib "/usr/lib";
+ use Coordinate; # WE7U's Coordinate.pm module
+
+
+diff -u scripts.orig/fcc-get scripts/fcc-get
+--- scripts.orig/fcc-get 2007-03-22 18:05:01.000000000 +0100
++++ scripts/fcc-get 2008-07-10 14:36:21.000000000 +0200
+@@ -10,7 +10,7 @@
+ # Note: Run this script as root in order to write the files into the
+ # destination directory listed below.
+ #
+-XASTIR_BASE=/usr/local/share/xastir
++XASTIR_BASE=/usr/share/xastir
+ cd /var/tmp
+ #
+ #
+diff -u scripts.orig/get-NWSdata scripts/get-NWSdata
+--- scripts.orig/get-NWSdata 2007-06-10 18:53:41.000000000 +0200
++++ scripts/get-NWSdata 2008-07-10 14:36:21.000000000 +0200
+@@ -41,7 +41,7 @@
+ FILE7="fz17ap07" # NWSM Libraries: Fire Weather Zone Boundaries
+
+
+-cd /usr/local/share/xastir/Counties
++cd /usr/share/xastir/Counties
+
+
+ # Remove any old zip files hanging around in this directory
+diff -u scripts.orig/get-gnis scripts/get-gnis
+--- scripts.orig/get-gnis 2007-01-03 20:40:49.000000000 +0100
++++ scripts/get-gnis 2008-07-10 14:36:21.000000000 +0200
+@@ -55,8 +55,8 @@
+
+ if ( [ -f ${MYSTATE}_DECI.TXT ] )
+ then
+- printf "File successfully downloaded. Moving to /usr/local/share/xastir/GNIS\n"
+- sudo mv ${MYSTATE}_DECI.TXT /usr/local/share/xastir/GNIS/${MYSTATE}.gnis
++ printf "File successfully downloaded. Moving to /usr/share/xastir/GNIS\n"
++ sudo mv ${MYSTATE}_DECI.TXT /usr/share/xastir/GNIS/${MYSTATE}.gnis
+ else
+ printf "File for %s not successfully downloaded.\n" ${MYSTATE}
+ fi
+diff -u scripts.orig/get-maptools.sh scripts/get-maptools.sh
+--- scripts.orig/get-maptools.sh 2007-01-03 20:40:49.000000000 +0100
++++ scripts/get-maptools.sh 2008-07-10 14:36:21.000000000 +0200
+@@ -135,11 +135,11 @@
+ fi
+ fi
+
+- if touch -a /usr/local/lib
++ if touch -a /usr/lib
+ then
+- printf "We can modify /usr/local/lib\n"
++ printf "We can modify /usr/lib\n"
+ else
+- printf "ERROR: We cannot modify /usr/local/lib - aborting\n"
++ printf "ERROR: We cannot modify /usr/lib - aborting\n"
+ exit
+ fi
+ fi
+@@ -163,22 +163,22 @@
+ sudo touch $LDCONF_FILE
+ fi
+
+- if (! grep /usr/local/lib $LDCONF_FILE 2>&1 > /dev/null)
++ if (! grep /usr/lib $LDCONF_FILE 2>&1 > /dev/null)
+ then
+- printf "Warning: /usr/local/lib not in %s - adding it\n" $LDCONF_FILE
++ printf "Warning: /usr/lib not in %s - adding it\n" $LDCONF_FILE
+ if [ -f $LDCONF_FILE ]
+ then
+ cp $LDCONF_FILE /tmp/ldconfig.tmp
+ $SUDO cp $LDCONF_FILE $LDCONF_FILE.orig.$$
+ fi
+- printf "/usr/local/lib\n" >> /tmp/ldconf.tmp
++ printf "/usr/lib\n" >> /tmp/ldconf.tmp
+ $SUDO cp /tmp/ldconf.tmp $LDCONF_FILE
+
+ fi
+
+- if (! grep /usr/local/lib $LDCONF_FILE 2>&1 > /dev/null)
++ if (! grep /usr/lib $LDCONF_FILE 2>&1 > /dev/null)
+ then
+- printf "ERROR: could not add /usr/local/lib to %s - aborting\n " $LDCONFIG_FILE
++ printf "ERROR: could not add /usr/lib to %s - aborting\n " $LDCONFIG_FILE
+ exit
+ fi
+
+diff -u scripts.orig/icontable.pl scripts/icontable.pl
+--- scripts.orig/icontable.pl 2003-07-07 19:17:54.000000000 +0200
++++ scripts/icontable.pl 2008-07-10 14:36:21.000000000 +0200
+@@ -29,7 +29,7 @@
+ #--------------------------------------------------------------------------
+
+ # symbols file from XASTIR V2.1, change the path for your environment
+-$SYMBFILE = "/usr/local/share/xastir/symbols/symbols.dat";
++$SYMBFILE = "/usr/share/xastir/symbols/symbols.dat";
+
+ #--------------------------------------------------------------------------
+ %sympix = ();
+diff -u scripts.orig/permutations.pl scripts/permutations.pl
+--- scripts.orig/permutations.pl 2005-03-25 21:53:04.000000000 +0100
++++ scripts/permutations.pl 2008-07-10 14:36:21.000000000 +0200
+@@ -34,7 +34,7 @@
+ #
+
+
+-use lib "/usr/local/lib";
++use lib "/usr/lib";
+ use Coordinate; # WE7U's Coordinate.pm module
+
+
+diff -u scripts.orig/test_coord.pl scripts/test_coord.pl
+--- scripts.orig/test_coord.pl 2003-01-06 23:42:17.000000000 +0100
++++ scripts/test_coord.pl 2008-07-10 14:36:21.000000000 +0200
+@@ -33,7 +33,7 @@
+
+ #------------------------------------------------------------------------------------------------
+
+-use lib "/usr/local/lib";
++use lib "/usr/lib";
+ use Coordinate; # Snag WE7U's Coordinate module
+
+
+diff -u scripts.orig/toporama250k.pl scripts/toporama250k.pl
+--- scripts.orig/toporama250k.pl 2008-07-10 14:35:01.000000000 +0200
++++ scripts/toporama250k.pl 2008-07-10 14:36:21.000000000 +0200
+@@ -28,7 +28,7 @@
+ # map files for the whole of Canada!
+ #
+ #
+-# * cd /usr/local/share/xastir/maps
++# * cd /usr/share/xastir/maps
+ # * Run this script from there. Make sure that you have write
+ # privileges there.
+ # * Move the directories and contents to whereever makes sense.
+diff -u scripts.orig/toporama50k.pl scripts/toporama50k.pl
+--- scripts.orig/toporama50k.pl 2008-07-10 14:35:01.000000000 +0200
++++ scripts/toporama50k.pl 2008-07-10 14:36:21.000000000 +0200
+@@ -27,7 +27,7 @@
+ # map files for the whole of Canada!
+ #
+ #
+-# * cd /usr/local/share/xastir/maps
++# * cd /usr/share/xastir/maps
+ # * Run this script from there. Make sure that you have write
+ # privileges there.
+ # * Move the directories and contents to whereever makes sense.
diff --git a/media-radio/xastir/metadata.xml b/media-radio/xastir/metadata.xml
new file mode 100644
index 000000000..fae7d74a9
--- /dev/null
+++ b/media-radio/xastir/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-radio/xastir/xastir-1.9.2.ebuild b/media-radio/xastir/xastir-1.9.2.ebuild
new file mode 100644
index 000000000..4b9fa163a
--- /dev/null
+++ b/media-radio/xastir/xastir-1.9.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils autotools
+
+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="~x86"
+IUSE="festival gdal geotiff imagemagick"
+
+RDEPEND="x11-libs/openmotif
+ x11-libs/libXpm
+ dev-libs/libpcre
+ net-misc/curl
+ sys-libs/zlib
+ sys-libs/db
+ sci-libs/shapelib
+ geotiff? ( sci-libs/proj
+ sci-libs/libgeotiff
+ media-libs/tiff )
+ gdal? ( sci-libs/gdal )
+ imagemagick? ( >=media-gfx/imagemagick-6.4 )
+ festival? ( app-accessibility/festival )"
+DEPEND="${RDEPEND}"
+
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # fix some scripts with DOS line endings
+ edos2unix scripts/toporama*
+ # support for new imagemagick,
+ # correction for selection of curl library in configure.ac and
+ # fix for different install directory in scripts
+ epatch "${FILESDIR}/${P}-IM.diff" \
+ "${FILESDIR}/${P}-curl.diff" \
+ "${FILESDIR}/${P}-scripts.diff"
+ eautoreconf
+}
+
+src_compile() {
+ econf --without-graphicsmagick \
+ --with-pcre \
+ --with-shapelib \
+ --with-dbfawk \
+ --without-ax25 \
+ --without-gpsman \
+ $(use_with geotiff libproj) \
+ $(use_with geotiff) \
+ $(use_with gdal) \
+ $(use_with imagemagick) \
+ $(use_with festival)
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
+
+pkg_postinst() {
+ elog "Kernel mode AX.25 not supported."
+ elog "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"
+ elog "/usr/lib/xastir."
+}