/[gentoo-x86]/sci-electronics/splat/splat-1.2.2-r2.ebuild
Gentoo

Contents of /sci-electronics/splat/splat-1.2.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 22 08:25:57 2015 UTC (4 years, 7 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x762053D5)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/splat/splat-1.2.2-r2.ebuild,v 1.2 2014/08/10 20:28:42 slyfox Exp $
4
5 inherit toolchain-funcs eutils
6
7 DESCRIPTION="RF Signal Propagation, Loss, And Terrain analysis tool for the spectrum between 20 MHz and 20 GHz"
8 HOMEPAGE="http://www.qsl.net/kd2bd/splat.html"
9 SRC_URI="http://www.qsl.net/kd2bd/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE="doc linguas_es"
15
16 DEPEND="sys-libs/zlib
17 app-arch/bzip2"
18
19 RDEPEND="${DEPEND}"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 epatch "${FILESDIR}/${P}-gcc43.patch"
25 }
26
27 src_compile() {
28 local CC=$(tc-getCC) CXX=$(tc-getCXX)
29
30 ${CXX} -Wall ${CXXFLAGS} ${LDFLAGS} itm.cpp splat.cpp -o rfsplat -lm -lbz2 || die
31
32 cd utils
33 ${CC} -Wall ${CFLAGS} ${LDFLAGS} citydecoder.c -o citydecoder
34 ${CC} -Wall ${CFLAGS} ${LDFLAGS} usgs2sdf.c -o usgs2sdf
35 ${CC} -Wall ${CFLAGS} ${LDFLAGS} srtm2sdf.c -o srtm2sdf -lbz2
36 #${CC} -Wall ${CFLAGS} ${LDFLAGS} fontdata.c -o fontdata -lz
37 ${CC} -Wall ${CFLAGS} ${LDFLAGS} bearing.c -o bearing -lm
38 }
39
40 src_install() {
41 local SPLAT_LANG="english"
42 use linguas_es && SPLAT_LANG="spanish"
43 # splat binary
44 dobin rfsplat || die
45
46 # utilities
47 dobin utils/{citydecoder,usgs2sdf,srtm2sdf,postdownload,bearing} || die
48 newman docs/${SPLAT_LANG}/man/splat.man rfsplat.1 || die
49
50 dodoc CHANGES README utils/fips.txt || die
51 newdoc utils/README README.UTILS || die
52
53 if use doc; then
54 dodoc docs/${SPLAT_LANG}/{pdf/splat.pdf,postscript/splat.ps} || die
55 fi
56 #sample data
57 docinto sample_data
58 dodoc sample_data/* || die
59 }
60
61 pkg_postinst() {
62 elog "The original SPLAT! command got renamed to 'rfsplat' to avoid"
63 elog "filename collission with app-portage/splat."
64 elog ""
65 elog "Be aware that it is still referenced as 'splat' in the documentation."
66 }

  ViewVC Help
Powered by ViewVC 1.1.20