diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2013-07-08 16:30:52 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2013-07-08 16:30:52 +0000 |
commit | 469339828b0563c26c764ee06c15e34ae93fca64 (patch) | |
tree | 782da389e51a148d8520e4bdba67d5b4886e0947 /sci-astronomy | |
parent | Update metadata.xml, drop old (diff) | |
download | gentoo-2-469339828b0563c26c764ee06c15e34ae93fca64.tar.gz gentoo-2-469339828b0563c26c764ee06c15e34ae93fca64.tar.bz2 gentoo-2-469339828b0563c26c764ee06c15e34ae93fca64.zip |
Removed old
(Portage version: 2.2.01.22097-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/predict/ChangeLog | 6 | ||||
-rw-r--r-- | sci-astronomy/predict/files/predict-2.2.3-xforms.patch | 79 | ||||
-rw-r--r-- | sci-astronomy/predict/predict-2.2.3.ebuild | 167 |
3 files changed, 5 insertions, 247 deletions
diff --git a/sci-astronomy/predict/ChangeLog b/sci-astronomy/predict/ChangeLog index 4eeaa3f4f45d..bd9d6b6c1f6e 100644 --- a/sci-astronomy/predict/ChangeLog +++ b/sci-astronomy/predict/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-astronomy/predict # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/predict/ChangeLog,v 1.21 2013/07/07 10:18:19 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/predict/ChangeLog,v 1.22 2013/07/08 16:30:51 bicatali Exp $ + + 08 Jul 2013; Sébastien Fabbro <bicatali@gentoo.org> + -files/predict-2.2.3-xforms.patch, -predict-2.2.3.ebuild: + Removed old 07 Jul 2013; Agostino Sarubbo <ago@gentoo.org> predict-2.2.3-r1.ebuild: Stable for x86, wrt bug #472528 diff --git a/sci-astronomy/predict/files/predict-2.2.3-xforms.patch b/sci-astronomy/predict/files/predict-2.2.3-xforms.patch deleted file mode 100644 index 49bce1b14e36..000000000000 --- a/sci-astronomy/predict/files/predict-2.2.3-xforms.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff -Nur clients/map.orig/map.c clients/map/map.c ---- clients/map.orig/map.c 2007-09-11 15:56:24.838414157 +0100 -+++ clients/map/map.c 2007-09-11 15:52:24.148698032 +0100 -@@ -18,7 +18,7 @@ - *****************************************************************************/ - /* Form definition file generated with fdesign. */ - --#include "forms.h" -+#include <forms.h> - #include <stdlib.h> - #include "map.h" - #include "world_fill.h" -diff -Nur clients/map.orig/map_cb.c clients/map/map_cb.c ---- clients/map.orig/map_cb.c 2007-09-11 15:56:24.838414157 +0100 -+++ clients/map/map_cb.c 2007-09-11 15:54:05.190456074 +0100 -@@ -18,9 +18,11 @@ - *****************************************************************************/ - #include <stdio.h> - #include <stdlib.h> -+#include <unistd.h> - #include <sys/types.h> - #include <sys/socket.h> - #include <netinet/in.h> -+#include <arpa/inet.h> - #include <netdb.h> - #include <signal.h> - #include <time.h> -@@ -39,7 +41,7 @@ - /* This function implements the arccosine function, - returning a value between 0 and two pi. */ - -- double result, fraction; -+ double result=0.0, fraction; - - fraction=x/y; - -@@ -76,7 +78,7 @@ - bzero((char *)&sin,sizeof(struct sockaddr_in)); - sin.sin_family = AF_INET; - -- if (pse=getservbyname(service,protocol)) -+ if ((pse=getservbyname(service,protocol))) - sin.sin_port=pse->s_port; - - else if ((sin.sin_port=htons((unsigned short)atoi(service)))==0) -@@ -85,7 +87,7 @@ - return -1; - } - -- if (phe=gethostbyname(host)) -+ if ((phe=gethostbyname(host))) - bcopy(phe->h_addr,(char *)&sin.sin_addr,phe->h_length); - - else if ((sin.sin_addr.s_addr = inet_addr(host))==INADDR_NONE) -diff -Nur clients/map.orig/map_main.c clients/map/map_main.c ---- clients/map.orig/map_main.c 2007-09-11 15:56:24.838414157 +0100 -+++ clients/map/map_main.c 2007-09-11 15:55:58.208896628 +0100 -@@ -16,9 +16,11 @@ - * for more details. * - * * - *****************************************************************************/ --#include "forms.h" -+#include <forms.h> - #include "map.h" - #include <sys/timeb.h> -+#include <unistd.h> -+#include <stdlib.h> - - extern int connectsock(); - extern void handler(); -@@ -29,7 +31,7 @@ - int main(int argc, char *argv[]) - { - int i, skt, x, y, z; -- char cmd[16], bufr[625], satnamelist[26][26]; -+ char bufr[625], satnamelist[26][26]; - const char *ptrsat; - FD_map *fd_map; - struct timeb tptr; diff --git a/sci-astronomy/predict/predict-2.2.3.ebuild b/sci-astronomy/predict/predict-2.2.3.ebuild deleted file mode 100644 index c5ff9c8cc7fc..000000000000 --- a/sci-astronomy/predict/predict-2.2.3.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/predict/predict-2.2.3.ebuild,v 1.7 2011/03/02 13:24:08 jlec Exp $ - -EAPI="1" - -inherit toolchain-funcs eutils - -DESCRIPTION="Satellite tracking and orbital prediction" -HOMEPAGE="http://www.qsl.net/kd2bd/predict.html" -SRC_URI="http://www.amsat.org/amsat/ftp/software/Linux/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -IUSE="doc gtk nls xforms xplanet" -KEYWORDS="amd64 ~ppc x86" - -DEPEND=" - sys-libs/ncurses - gtk? ( x11-libs/gtk+:1 ) - xforms? ( x11-libs/xforms ) - xplanet? ( || ( x11-misc/xplanet x11-misc/xearth ) )" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-xforms.patch - # fix for buffer overflow (Bug #339109) - sed -i -e "s/netport\[6\]/netport\[7\]/g" predict.c || die - # fix some further array out of bounds errors - sed -i -e "s/satname\[ 26/satname\[ 25/g" \ - clients/gsat-1.1.0/src/db.c || die - sed -i -e "s/satname\[ 26/satname\[ 25/g" \ - clients/gsat-1.1.0/src/comms.c || die -} - -src_compile() { - # predict uses a ncurses based configure script - # this is what it does if it was bash based ;) - COMPILER="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" - - einfo "Compiling predict" - echo "char *predictpath=\"/usr/share/predict/\";" > predict.h - echo "char soundcard=1;" >> predict.h - echo "char *version=\"${PV}\";" >> predict.h - ${COMPILER} \ - predict.c -o predict \ - -L/$(get_libdir) -lm -lncurses -lpthread \ - || die "Failed compiling predict" - - einfo "Compiling vocalizer" - cd vocalizer - echo "char *path={\"/usr/share/predict/vocalizer/\"};" > vocalizer.h - ${COMPILER} vocalizer.c -o vocalizer \ - || die "Failed compiling vocalizer" - - if use xplanet; then - einfo "Compiling earthtrack" - cd "${S}"/clients/earthtrack - # fix include path - sed -i \ - -e "s:/usr/local/share/xplanet:/usr/share/xplanet:" \ - earthtrack.c || die "Failed to fix xplanet paths" - ${COMPILER} earthtrack.c -o earthtrack -lm \ - || die "Failed compiling earthtrack" - fi - - # kep_reload - einfo "Compiling kep_reload" - cd "${S}"/clients/kep_reload - ${COMPILER} kep_reload.c -o kep_reload || \ - die "Failed compiling kep_reload" - - # map - if use xforms; then - einfo "Compiling map" - cd "${S}"/clients/map - ${COMPILER} -I/usr/X11R6/include \ - map.c map_cb.c map_main.c \ - -L/usr/X11R6/$(get_libdir) -lforms -lX11 -lm \ - -o map || die "Failed compiling map" - fi - - # gsat - if use gtk; then - # note there are plugins for gsat but they are missing - ## header files and wont compile - einfo "Compiling gsat" - cd "${S}"/clients/gsat-* - econf $(use_enable nls) - cd src - sed -i \ - -e "s:#define DEFAULTPLUGINSDIR .*:#define DEFAULTPLUGINSDIR \"/usr/$(get_libdir)/gsat/plugins/\":" \ - -e 's:int errno;::' \ - globals.h || die - cd .. - emake || die "Failed compiling gsat" - fi -} - -src_install() { - dobin predict "${FILESDIR}"/predict-update || die - dodoc CHANGES CREDITS HISTORY README NEWS - doman docs/man/predict.1 - insinto /usr/share/${PN}/default - doins default/predict.* || die - if use doc; then - dodoc docs/postscript/predict.ps || die - insinto /usr/share/doc/${PF} - doins docs/pdf/predict.pdf || die - fi - - exeinto /usr/bin - cd vocalizer - doexe vocalizer || die - dosym /usr/bin/vocalizer /usr/share/predict/vocalizer/vocalizer - insinto /usr/share/${PN}/vocalizer - doins *.wav || die "Failed to install vocalizer *.wav files" - - # earthtrack - if use xplanet; then - cd "${S}"/clients/earthtrack - ln -s earthtrack earthtrack2 - dobin earthtrack earthtrack2 || die - newdoc README README.earthtrack - fi - - # kep_reload - cd "${S}"/clients/kep_reload - dobin kep_reload - newdoc README README.kep_reload - - # map - if use xforms; then - cd "${S}"/clients/map - dobin map || die - newdoc CHANGES CHANGES.map - newdoc README README.map - fi - - # gsat - if use gtk; then - # the install seems broken so do manually... - cd "${S}"/clients/gsat-* - dodir /usr/$(get_libdir)/gsat/plugins - keepdir /usr/$(get_libdir)/gsat/plugins - cd src - dobin gsat - cd .. - for i in AUTHORS ABOUT-NLS ChangeLog NEWS README Plugin_API; do - newdoc ${i} ${i}.gsat - done - fi -} - -pkg_postinst() { - einfo "To use the clients the following line will" - einfo "have to be inserted into /etc/services" - einfo "predict 1210/udp" - einfo "The port can be changed to anything" - einfo "the name predict is what is needed to work" - einfo "after that is set run 'predict -s'" - einfo "" - einfo "To get list of satellites run 'predict-update'" - einfo "before running predict this script will also update" - einfo "the list of satellites so they are up to date." -} |