diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /sci-electronics/splat | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'sci-electronics/splat')
| -rw-r--r-- | sci-electronics/splat/Manifest | 1 | ||||
| -rw-r--r-- | sci-electronics/splat/files/splat-1.2.2-gcc43.patch | 10 | ||||
| -rw-r--r-- | sci-electronics/splat/metadata.xml | 19 | ||||
| -rw-r--r-- | sci-electronics/splat/splat-1.4.2.ebuild | 91 |
4 files changed, 121 insertions, 0 deletions
diff --git a/sci-electronics/splat/Manifest b/sci-electronics/splat/Manifest new file mode 100644 index 000000000000..1db3d9291dfa --- /dev/null +++ b/sci-electronics/splat/Manifest @@ -0,0 +1 @@ +DIST splat-1.4.2.tar.bz2 356823 BLAKE2B 7e4fe835128ae88b6d44d87159a5eab8652eed26876a637e613f57177ebfca8df7433455b53124318a2a0277bd09ca2cb9ce74ab205f5c6d1417fa736934b3fa SHA512 223b6184b1df35052709ba3b0e8679b9f6a2933c98ac433b0f07cd93b07213f55399a6eeb8e955a86fb59d13e09d891fc085ac17594f561268da239c30e885bb diff --git a/sci-electronics/splat/files/splat-1.2.2-gcc43.patch b/sci-electronics/splat/files/splat-1.2.2-gcc43.patch new file mode 100644 index 000000000000..11e65e77f14a --- /dev/null +++ b/sci-electronics/splat/files/splat-1.2.2-gcc43.patch @@ -0,0 +1,10 @@ +--- splat-1.2.1.orig/utils/fontdata.c ++++ splat-1.2.1/utils/fontdata.c +@@ -32,6 +32,7 @@ + #include <string.h> + #include <stdlib.h> + #include <zlib.h> ++#include <stdlib.h> + + int main(argc,argv) + int argc; diff --git a/sci-electronics/splat/metadata.xml b/sci-electronics/splat/metadata.xml new file mode 100644 index 000000000000..c28607e04f36 --- /dev/null +++ b/sci-electronics/splat/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-electronics@gentoo.org</email> + <name>Gentoo Electronics Project</name> + </maintainer> + <longdescription> + SPLAT! is an RF Signal Propagation, Loss, And Terrain analysis tool for the + spectrum between 20 MHz and 20 GHz. Applications of SPLAT! include site + engineering, wireless network design, amateur radio communications, frequency + coordination, communication system design, and terrestrial television and radio + broadcasting. + </longdescription> + <use> + <flag name="hires">Builds additional high resolution application 'rfsplat-hd'</flag> + </use> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/sci-electronics/splat/splat-1.4.2.ebuild b/sci-electronics/splat/splat-1.4.2.ebuild new file mode 100644 index 000000000000..9514bcfdaf4d --- /dev/null +++ b/sci-electronics/splat/splat-1.4.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs + +DESCRIPTION="RF Signal Propagation, Loss, And Terrain analysis tool" +HOMEPAGE="http://www.qsl.net/kd2bd/splat.html" +SRC_URI="http://www.qsl.net/kd2bd/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc hires l10n_es" + +DEPEND="sys-libs/zlib + app-arch/bzip2" + +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.2.2-gcc43.patch" +} + +src_configure() { + # fake resulting file from interactive configuration script + # using default resolution + cat <<- EOF > "${S}/splat.h" + /* Parameters for 3 arc-second standard resolution mode of operation */ + #define MAXPAGES 9 + #define HD_MODE 0 + EOF + if use hires; then + # fake resulting file from interactive configuration script + # using default resolution + cat <<- EOF > "${S}/hires.h" + /* Parameters for 3 arc-second hires resolution mode of operation */ + #define MAXPAGES 9 + #define HD_MODE 1 + EOF + fi +} + +src_compile() { + + local CC=$(tc-getCC) CXX=$(tc-getCXX) + + ${CXX} -Wall ${CXXFLAGS} ${LDFLAGS} itwom3.0.cpp splat.cpp -o rfsplat -lm -lbz2 || die + if use hires; then + cp "${S}/hires.h" "${S}/splat.h" + ${CXX} -Wall ${CXXFLAGS} ${LDFLAGS} itwom3.0.cpp splat.cpp -o rfsplat-hd -lm -lbz2 || die + fi + + cd utils + ${CC} -Wall ${CFLAGS} ${LDFLAGS} citydecoder.c -o citydecoder + ${CC} -Wall ${CFLAGS} ${LDFLAGS} usgs2sdf.c -o usgs2sdf + ${CC} -Wall ${CFLAGS} ${LDFLAGS} srtm2sdf.c -o srtm2sdf -lbz2 + #${CC} -Wall ${CFLAGS} ${LDFLAGS} fontdata.c -o fontdata -lz + ${CC} -Wall ${CFLAGS} ${LDFLAGS} bearing.c -o bearing -lm +} + +src_install() { + local SPLAT_LANG="english" + use l10n_es && SPLAT_LANG="spanish" + # splat binary + dobin rfsplat + if use hires; then + dobin rfsplat-hd + fi + + # utilities + dobin utils/{citydecoder,usgs2sdf,srtm2sdf,postdownload,bearing} + newman docs/${SPLAT_LANG}/man/splat.man rfsplat.1 + + dodoc CHANGES README utils/fips.txt + newdoc utils/README README.UTILS + + if use doc; then + dodoc docs/${SPLAT_LANG}/{pdf/splat.pdf,postscript/splat.ps} + fi + #sample data + docinto sample_data + dodoc sample_data/* +} + +pkg_postinst() { + elog "The original SPLAT! command got renamed to 'rfsplat' to avoid" + elog "filename collission with app-portage/splat." + elog "" + elog "Be aware that it is still referenced as 'splat' in the documentation." +} |
