/[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.1 - (show annotations) (download)
Sat Dec 11 11:49:08 2010 UTC (9 years, 2 months ago) by tomjbe
Branch: MAIN
Fix bug #347241. Thanks Gary <gem@rellim.com> for reporting.

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
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 KEYWORDS="~amd64 ~x86"
15 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