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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jun 27 17:47:01 2015 UTC (4 years, 8 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for amd64, wrt bug #535486

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 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.6.ebuild,v 1.3 2015/04/26 16:24:01 pacho Exp $
4
5 EAPI=5
6 inherit autotools eutils flag-o-matic toolchain-funcs
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:4.8
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:0 )
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}"/${PN}-2.0.4-scripts.diff
38
39 # fix __FORTIFY_SOURCE warning (bug #337365)
40 epatch "${FILESDIR}"/${PN}-2.0.4-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}"/${PN}-2.0.4-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 # provide include path to GraphicsMagic for configure stage
54 use graphicsmagick && append-cflags -I/usr/include/GraphicsMagick
55 econf --with-pcre \
56 --with-shapelib \
57 --with-dbfawk \
58 --without-ax25 \
59 --without-gpsman \
60 $(use_with !graphicsmagick imagemagick) \
61 $(use_with graphicsmagick) \
62 $(use_with geotiff libproj) \
63 $(use_with geotiff) \
64 $(use_with gdal) \
65 $(use_with festival)
66 }
67
68 src_compile() {
69 emake AR="$(tc-getAR)"
70 }
71
72 src_install() {
73 emake DESTDIR="${D}" install
74
75 rm -rf "${D}"/usr/share/doc/${PN}
76 dodoc AUTHORS ChangeLog FAQ README README.Contributing \
77 README.Getting-Started README.MAPS
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