/[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.3 - (hide annotations) (download)
Sat Jan 22 17:17:28 2011 UTC (9 years ago) by fauli
Branch: MAIN
Changes since 1.2: +2 -2 lines
stable x86, bug 351731

(Portage version: 2.1.9.34/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20