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

Contents of /media-radio/xastir/xastir-1.9.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 4 17:51:52 2012 UTC (7 years, 7 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Fix breakage with >=sci-libs-4.8.0. See http://www.mail-archive.com/xastir-dev@lists.xastir.org/msg00285.html for details. Drop old

(Portage version: 2.1.10.64/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-1.9.8-r1.ebuild,v 1.2 2010/10/10 18:43:46 ulm Exp $
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 imagemagick"
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 geotiff? ( sci-libs/proj
25 sci-libs/libgeotiff
26 media-libs/tiff )
27 gdal? ( sci-libs/gdal )
28 imagemagick? ( media-gfx/imagemagick )
29 festival? ( app-accessibility/festival )"
30 RDEPEND="${DEPEND}"
31
32 src_prepare() {
33 # fix hardcoded /usr/local paths in scripts
34 epatch "${FILESDIR}"/${P}-scripts.diff
35 # and patch libdir
36 for f in scripts/permutations.pl scripts/test_coord.pl \
37 scripts/toporama250k.pl scripts/toporama50k.pl; do
38 sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" "${f}" \
39 || die "sed failed on ${f}"
40 done
41
42 # fix __FORTIFY_SOURCE warning (bug #337365)
43 epatch "${FILESDIR}"/${P}-fortify.diff
44
45 # fix for DESTDIR
46 epatch "${FILESDIR}"/${P}-Destdir.diff
47
48 eautoreconf
49 }
50
51 src_configure() {
52 econf --without-graphicsmagick \
53 --with-pcre \
54 --with-shapelib \
55 --with-dbfawk \
56 --without-ax25 \
57 --without-gpsman \
58 $(use_with geotiff libproj) \
59 $(use_with geotiff) \
60 $(use_with gdal) \
61 $(use_with imagemagick) \
62 $(use_with festival)
63 }
64
65 src_install() {
66 emake DESTDIR="${D}" install || die "emake install failed"
67
68 rm -rf "${D}"/usr/share/doc/${PN}
69 dodoc AUTHORS ChangeLog FAQ README README.Contributing \
70 README.Getting-Started README.MAPS || die "dodoc failed"
71 }
72
73 pkg_postinst() {
74 elog "Kernel mode AX.25 and GPSman library not supported."
75 elog
76 elog "Remember you have to be root to add addditional scripts,"
77 elog "maps and other configuration data under /usr/share/xastir"
78 elog "and /usr/$(get_libdir)/xastir."
79 }

  ViewVC Help
Powered by ViewVC 1.1.20