Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 217972 | Differences between
and this patch

Collapse All | Expand All

(-)splat-1.1.0.ebuild (-16 / +26 lines)
Lines 1-50 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/splat/splat-1.1.0.ebuild,v 1.3 2005/05/06 14:42:25 dholm Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/splat/splat-1.1.0.ebuild,v 1.3 2005/05/06 14:42:25 dholm Exp $
4
4
5
inherit toolchain-funcs
5
inherit toolchain-funcs eutils
6
6
7
DESCRIPTION="SPLAT! is an RF Signal Propagation, Loss, And Terrain analysis tool for the spectrum between 20 MHz and 20 GHz."
7
DESCRIPTION="SPLAT! is an 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"
8
HOMEPAGE="http://www.qsl.net/kd2bd/splat.html"
9
SRC_URI="ftp://ftp.ibiblio.org/pub/linux/apps/ham/${P}.tar.gz"
9
SRC_URI="ftp://ftp.ibiblio.org/pub/linux/apps/ham/${P}.tar.bz2"
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~x86 ~ppc"
13
KEYWORDS="~x86 ~ppc"
14
IUSE=""
14
IUSE="doc linguas_es"
15
15
16
DEPEND="virtual/libc
16
DEPEND="virtual/libc
17
	sys-libs/zlib
17
	sys-libs/zlib
18
	app-arch/bzip2
18
	app-arch/bzip2"
19
	"
20
19
21
RDEPEND=""
20
RDEPEND="${DEPEND}"
21
22
src_unpack() {
23
	unpack ${A}
24
	cd "${S}"
25
	epatch "${FILESDIR}/${P}-gcc43.patch"
26
}
22
27
23
src_compile() {
28
src_compile() {
24
	local CC=$(tc-getCC) CXX=$(tc-getCXX)
29
	local CC=$(tc-getCC) CXX=$(tc-getCXX)
25
	local STRIP=""
26
27
	if ! has nostrip ${FEATURES} ; then
28
		local STRIP="-s"
29
	fi
30
30
31
	${CXX} -Wall ${CXXFLAGS} -lm -lbz2 itm.cpp splat.cpp -o splat || die
31
	${CXX} -Wall ${CXXFLAGS} -lm -lbz2 itm.cpp splat.cpp -o splat || die
32
32
33
	cd utils
33
	cd utils
34
	${CC} -Wall ${CFLAGS} citydecoder.c -o citydecoder
34
	${CC} -Wall ${CFLAGS} citydecoder.c -o citydecoder
35
	${CC} -Wall ${CFLAGS} usgs2sdf.c -o usgs2sdf
35
	${CC} -Wall ${CFLAGS} usgs2sdf.c -o usgs2sdf
36
	${CC} -Wall ${CFLAGS} srtm2sdf.c -lbz2 -o srtm2sdf
36
	${CC} -Wall ${CFLAGS} -lz fontdata.c -o fontdata
37
	${CC} -Wall ${CFLAGS} -lz fontdata.c -o fontdata
37
38
}
38
}
39
39
40
src_install() {
40
src_install() {
41
	local SPLAT_LANG="english"
42
	use linguas_es && SPLAT_LANG="spanish"
41
	# splat binary
43
	# splat binary
42
	dobin splat || die
44
	dobin splat || die
43
45
44
	# utilities
46
	# utilities
45
	dobin utils/{citydecoder,usgs2sdf,postdownload} || die
47
	dobin utils/{citydecoder,usgs2sdf,srtm2sdf,postdownload} || die
46
	newman docs/man/splat.man splat.1
48
	newman docs/${SPLAT_LANG}/man/splat.man splat.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
47
59
48
	dodoc CHANGES README utils/fips.txt sample.lrp
49
	newdoc utils/README README.UTILS
50
}
60
}

Return to bug 217972