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

Contents of /media-radio/xastir/xastir-2.0.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri May 10 16:27:03 2013 UTC (6 years, 9 months ago) by tomjbe
Branch: MAIN
Changes since 1.4: +4 -1 lines
fix deprectated AM_CONFIG_HEADER macro. remove old

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

1 ago 1.2 # Copyright 1999-2013 Gentoo Foundation
2 tomjbe 1.1 # Distributed under the terms of the GNU General Public License v2
3 tomjbe 1.5 # $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-2.0.4.ebuild,v 1.4 2013/01/25 20:01:49 tomjbe Exp $
4 tomjbe 1.1
5     EAPI=4
6 tomjbe 1.4 inherit autotools eutils toolchain-funcs
7 tomjbe 1.1
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 ago 1.3 KEYWORDS="amd64 x86"
15 tomjbe 1.1 IUSE="festival gdal geotiff graphicsmagick"
16    
17     DEPEND=">=x11-libs/motif-2.3:0
18     x11-libs/libXt
19     x11-libs/libX11
20     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}"/${P}-fortify.diff
41    
42     # do not use builtin shapelib if sci-libs/shapelib is not installed
43     # instead build without shapelib support (bug #430704)
44     epatch "${FILESDIR}"/${P}-no-builtin-shapelib.diff
45    
46     # do not filter duplicate flags (see bug 411095)
47     epatch "${FILESDIR}"/${PN}-2.0.0-dont-filter-flags.diff
48    
49 tomjbe 1.5 # fix deprectated AM_CONFIG_HEADER macro
50     sed -i -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.ac || die
51    
52 tomjbe 1.1 eautoreconf
53     }
54    
55     src_configure() {
56     econf --with-pcre \
57     --with-shapelib \
58     --with-dbfawk \
59     --without-ax25 \
60     --without-gpsman \
61     $(use_with !graphicsmagick imagemagick) \
62     $(use_with graphicsmagick) \
63     $(use_with geotiff libproj) \
64     $(use_with geotiff) \
65     $(use_with gdal) \
66     $(use_with festival)
67     }
68    
69 tomjbe 1.4 src_compile() {
70     emake AR="$(tc-getAR)"
71     }
72    
73 tomjbe 1.1 src_install() {
74     emake DESTDIR="${D}" install
75    
76     rm -rf "${D}"/usr/share/doc/${PN}
77     dodoc AUTHORS ChangeLog FAQ README README.Contributing \
78     README.Getting-Started README.MAPS
79     }
80    
81     pkg_postinst() {
82     elog "Kernel mode AX.25 and GPSman library not supported."
83     elog
84     elog "Remember you have to be root to add addditional scripts,"
85     elog "maps and other configuration data under /usr/share/xastir."
86     }

  ViewVC Help
Powered by ViewVC 1.1.20