/[gentoo-x86]/media-radio/xastir/xastir-2.0.0-r1.ebuild
Gentoo

Contents of /media-radio/xastir/xastir-2.0.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Mon Jun 4 17:51:52 2012 UTC (6 years, 4 months ago) by tomjbe
Branch: MAIN
Changes since 1.3: +5 -2 lines
Fix breakage with >=sci-libs-4.8.0. See http://www.mail-archive.com/xastir-dev@lists.xastir.org/msg00285.html for details. Drop old

(Portage version: 2.1.10.64/cvs/Linux x86_64)

1 tomjbe 1.4 # Copyright 1999-2012 Gentoo Foundation
2 tomjbe 1.1 # Distributed under the terms of the GNU General Public License v2
3 tomjbe 1.4 # $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-2.0.0-r1.ebuild,v 1.3 2011/01/22 17:17:28 fauli Exp $
4 tomjbe 1.1
5     EAPI=2
6     inherit autotools eutils multilib
7    
8     DESCRIPTION="X Amateur Station Tracking and Information Reporting"
9     HOMEPAGE="http://xastir.sourceforge.net/"
10     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14 fauli 1.3 KEYWORDS="amd64 x86"
15 tomjbe 1.1 IUSE="festival gdal geotiff graphicsmagick"
16    
17     DEPEND=">=x11-libs/openmotif-2.3:0
18     x11-libs/libXpm
19     x11-apps/xfontsel
20     dev-libs/libpcre
21     net-misc/curl
22     sys-libs/db
23     sci-libs/shapelib
24     !graphicsmagick? ( media-gfx/imagemagick[-hdri,-q32] )
25     graphicsmagick? ( media-gfx/graphicsmagick[-q32] )
26     geotiff? ( sci-libs/proj
27     sci-libs/libgeotiff
28     media-libs/tiff )
29     gdal? ( sci-libs/gdal )
30     festival? ( app-accessibility/festival )"
31     RDEPEND="${DEPEND}"
32    
33     src_prepare() {
34     # fix hardcoded /usr/local paths in scripts
35     epatch "${FILESDIR}"/${PN}-1.9.8-scripts.diff
36     # and patch libdir
37     for f in scripts/permutations.pl scripts/test_coord.pl \
38     scripts/toporama250k.pl scripts/toporama50k.pl; do
39     sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" "${f}" \
40     || die "sed failed on ${f}"
41     done
42    
43     # fix __FORTIFY_SOURCE warning (bug #337365)
44     epatch "${FILESDIR}"/${PN}-1.9.8-fortify.diff
45    
46     # fix for DESTDIR
47     epatch "${FILESDIR}"/${P}-Destdir.diff
48    
49 tomjbe 1.4 # fix breakage with >=sci-libs/proj-4.8
50     epatch "${FILESDIR}"/${P}-proj48.diff
51    
52 tomjbe 1.1 eautoreconf
53     }
54    
55     src_configure() {
56     econf --without-graphicsmagick \
57     --with-pcre \
58     --with-shapelib \
59     --with-dbfawk \
60     --without-ax25 \
61     --without-gpsman \
62     $(use_with !graphicsmagick imagemagick) \
63     $(use_with graphicsmagick) \
64     $(use_with geotiff libproj) \
65     $(use_with geotiff) \
66     $(use_with gdal) \
67     $(use_with festival)
68     }
69    
70     src_install() {
71     emake DESTDIR="${D}" install || die "emake install failed"
72    
73     rm -rf "${D}"/usr/share/doc/${PN}
74     dodoc AUTHORS ChangeLog FAQ README README.Contributing \
75     README.Getting-Started README.MAPS || die "dodoc failed"
76     }
77    
78     pkg_postinst() {
79     elog "Kernel mode AX.25 and GPSman library not supported."
80     elog
81     elog "Remember you have to be root to add addditional scripts,"
82     elog "maps and other configuration data under /usr/share/xastir"
83     elog "and /usr/$(get_libdir)/xastir."
84     }

  ViewVC Help
Powered by ViewVC 1.1.20