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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Mon Jul 15 06:05:53 2013 UTC (6 years, 7 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.1.12.13/cvs/Linux x86_64, signed Manifest commit with key 0x762053D5)

1 tomjbe 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tomjbe 1.9 # $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-2.0.0-r2.ebuild,v 1.8 2012/12/07 14:27:31 tomjbe Exp $
4 tomjbe 1.1
5     EAPI=2
6     inherit autotools eutils
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 phajdan.jr 1.6 KEYWORDS="amd64 x86"
15 tomjbe 1.1 IUSE="festival gdal geotiff graphicsmagick"
16    
17 ulm 1.7 DEPEND=">=x11-libs/motif-2.3:0
18 tomjbe 1.5 x11-libs/libXt
19     x11-libs/libX11
20 tomjbe 1.1 x11-libs/libXpm
21     x11-apps/xfontsel
22     dev-libs/libpcre
23     net-misc/curl
24     sys-libs/db
25     sci-libs/shapelib
26     !graphicsmagick? ( media-gfx/imagemagick[-hdri,-q32] )
27     graphicsmagick? ( media-gfx/graphicsmagick[-q32] )
28     geotiff? ( sci-libs/proj
29     sci-libs/libgeotiff
30     media-libs/tiff )
31     gdal? ( sci-libs/gdal )
32     festival? ( app-accessibility/festival )"
33     RDEPEND="${DEPEND}"
34    
35     src_prepare() {
36     # fix script location (bug #407185)
37     epatch "${FILESDIR}"/${P}-scripts.diff
38    
39     # fix __FORTIFY_SOURCE warning (bug #337365)
40     epatch "${FILESDIR}"/${PN}-1.9.8-fortify.diff
41    
42     # fix for DESTDIR
43     epatch "${FILESDIR}"/${P}-Destdir.diff
44    
45 tomjbe 1.2 # fix breakage with >=sci-libs/proj-4.8
46     epatch "${FILESDIR}"/${P}-proj48.diff
47    
48 tomjbe 1.3 # do not use builtin shapelib if sci-libs/shapelib is not installed
49     # instead build without shapelib support (bug #430704)
50     epatch "${FILESDIR}"/${P}-no-builtin-shapelib.diff
51    
52 tomjbe 1.8 # do not filter duplicate flags (see bug 411095)
53     epatch "${FILESDIR}"/${P}-dont-filter-flags.diff
54    
55 tomjbe 1.1 eautoreconf
56     }
57    
58     src_configure() {
59 tomjbe 1.3 econf --with-pcre \
60 tomjbe 1.1 --with-shapelib \
61     --with-dbfawk \
62     --without-ax25 \
63     --without-gpsman \
64     $(use_with !graphicsmagick imagemagick) \
65     $(use_with graphicsmagick) \
66     $(use_with geotiff libproj) \
67     $(use_with geotiff) \
68     $(use_with gdal) \
69     $(use_with festival)
70     }
71    
72     src_install() {
73     emake DESTDIR="${D}" install || die "emake install failed"
74    
75     rm -rf "${D}"/usr/share/doc/${PN}
76     dodoc AUTHORS ChangeLog FAQ README README.Contributing \
77     README.Getting-Started README.MAPS || die "dodoc failed"
78     }
79    
80     pkg_postinst() {
81     elog "Kernel mode AX.25 and GPSman library not supported."
82     elog
83     elog "Remember you have to be root to add addditional scripts,"
84     elog "maps and other configuration data under /usr/share/xastir."
85     }

  ViewVC Help
Powered by ViewVC 1.1.20