From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-electronics/splat/Manifest | 6 ++ .../splat/files/splat-1.2.2-gcc43.patch | 10 +++ sci-electronics/splat/metadata.xml | 19 +++++ sci-electronics/splat/splat-1.4.2.ebuild | 91 ++++++++++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 sci-electronics/splat/Manifest create mode 100644 sci-electronics/splat/files/splat-1.2.2-gcc43.patch create mode 100644 sci-electronics/splat/metadata.xml create mode 100644 sci-electronics/splat/splat-1.4.2.ebuild (limited to 'sci-electronics/splat') diff --git a/sci-electronics/splat/Manifest b/sci-electronics/splat/Manifest new file mode 100644 index 000000000000..2921b3519c87 --- /dev/null +++ b/sci-electronics/splat/Manifest @@ -0,0 +1,6 @@ +AUX splat-1.2.2-gcc43.patch 205 SHA256 d92a15175d7caf1f42fc821ae27dbe11d7d4d9f76baa28b4fa22168f7af5c1c5 SHA512 ce99a5688305cc0bc53544b8c57cd73d3a9ccaaa7bce1115f63ee79c93c06f9ec80d694fcedcbded35b1f12d9b8b1d79022de7afb7fa43980710c4928c6dcf21 WHIRLPOOL 3d112dd02e7e62da805e347eec47019e6b9bd160aa2658c7221bf876aa8425164f58da7796200a3c47a27f845d75b39456fbf7a3ab8d81deb28a39f0371c6ec1 +DIST splat-1.4.2.tar.bz2 356823 SHA256 39b0b314e2e927bdf00d1eda4b9865efd128ba850305f987aec049c4fd58a29c SHA512 223b6184b1df35052709ba3b0e8679b9f6a2933c98ac433b0f07cd93b07213f55399a6eeb8e955a86fb59d13e09d891fc085ac17594f561268da239c30e885bb WHIRLPOOL 41baff083a050d1f360af56c6262dbb1f00f8873e0d2c0d3c8e9209e6b9bbbb0fab9009670cd56b976c4726f7635bcf39bb4299f480f17db5520e80b713996c8 +EBUILD splat-1.4.2.ebuild 2414 SHA256 e414ae5540ae2460c23add2680a31a8ff575f33aef02d386fd5a15296c106e9c SHA512 bafe886cb2e73542bf76bcd817c95dc2a41dc50625444575dd79467457bbe6a838e282179ac15678542a71af0daae19499f6e5f4810de3e33214b1808ad253a6 WHIRLPOOL 8fa4e46de815d1d129feb2f38c0c7996c24b86d62dccb65a6597124cf16531e443ff9010d70b62daa0456f4d60afafe7f52f9ab39e6615e8eb7a54dd98e20a58 +MISC ChangeLog 3080 SHA256 12a8aeb3951645de3ba1b4419de97407eff47bbb7948a8d6961ebc5f27fb7ebe SHA512 2a9452d35683fe507ba85301b4520d31101dad0a87531ad8c77cbd5c438cfa53fd5ceb81bb344d96b55e48bf9a1c453e598e23ef8d9f11452f6e4decff35ce15 WHIRLPOOL 5ef145332b849d43a32257004d3781cfff85ac8e8b84cc4552891034dcb203ab18887d510f9ab1d473834533d1e3c381d8600ad6a315646f3590820aa1be0365 +MISC ChangeLog-2015 2807 SHA256 3784239732e6a07e03801ae55f706c68749db1ee8714a17703267b658c19045b SHA512 354f553a781c2e0854d64ed836bf095db1f6e312463dece81d8d2da5c110b72e8aa841287cdaf518f981a0fa16dfb318effd7684da136e574b1e55c57e28f22c WHIRLPOOL 7a64d2158f830e0d11e16e1c76eca90854688fc2c74f2c6aadfd1c0e0c8757fa9e0727ace0ae0e7c8bd41e6a000a81bb3f0180bb99027ef1eb5d22f16b393e81 +MISC metadata.xml 753 SHA256 88daca19eb1cb8df853b2f28f9fe7d9d72931159884027b10b7833818b9b0a93 SHA512 23e6dfde4df2857f15ada7f495c03bb0779bafb3bb776e83398cb48c8fd7e8b3ebf9ba39242bcdb4a5f079597ff458a90fc112baa4e738b978cf60df39303a4b WHIRLPOOL 722d930c5331a3e9e90d0cb60d074739b7093bb5d6f4f3d717fb9850a712919e22737864b1faee471893a452ba370972f2b31d60e005ec195f1fb05b1a2df189 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 + #include + #include ++#include + + 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..5086e63c4019 --- /dev/null +++ b/sci-electronics/splat/metadata.xml @@ -0,0 +1,19 @@ + + + + + sci-electronics@gentoo.org + Gentoo Electronics Project + + + 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. + + + Builds additional high resolution application + 'rfsplat-hd'. + + 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..c8fcbfc109f9 --- /dev/null +++ b/sci-electronics/splat/splat-1.4.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2016 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 linguas_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 linguas_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." +} -- cgit v1.2.3