/[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.2 - (show annotations) (download)
Sun Jan 20 21:38:01 2013 UTC (7 years ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Stable for amd64, wrt bug #452724

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-2.0.4.ebuild,v 1.1 2012/12/07 14:31:19 tomjbe Exp $
4
5 EAPI=4
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 KEYWORDS="amd64 ~x86"
15 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 eautoreconf
50 }
51
52 src_configure() {
53 econf --with-pcre \
54 --with-shapelib \
55 --with-dbfawk \
56 --without-ax25 \
57 --without-gpsman \
58 $(use_with !graphicsmagick imagemagick) \
59 $(use_with graphicsmagick) \
60 $(use_with geotiff libproj) \
61 $(use_with geotiff) \
62 $(use_with gdal) \
63 $(use_with festival)
64 }
65
66 src_install() {
67 emake DESTDIR="${D}" install
68
69 rm -rf "${D}"/usr/share/doc/${PN}
70 dodoc AUTHORS ChangeLog FAQ README README.Contributing \
71 README.Getting-Started README.MAPS
72 }
73
74 pkg_postinst() {
75 elog "Kernel mode AX.25 and GPSman library not supported."
76 elog
77 elog "Remember you have to be root to add addditional scripts,"
78 elog "maps and other configuration data under /usr/share/xastir."
79 }

  ViewVC Help
Powered by ViewVC 1.1.20