[ITP] savi 1.5.1

Ken Brown kbrown@cornell.edu
Sun Jul 2 20:06:00 GMT 2017


savi is in Debian:

  https://packages.debian.org/stretch/savi

My cygport file and patches are attached.

Package files
=============

http://sanibeltranquility.com/cygwin/x86/release/savi/savi-1.5.1-1-src.tar.xz
http://sanibeltranquility.com/cygwin/x86/release/savi/savi-1.5.1-1.hint
http://sanibeltranquility.com/cygwin/x86/release/savi/savi-1.5.1-1.tar.xz
http://sanibeltranquility.com/cygwin/x86_64/release/savi/savi-1.5.1-1-src.tar.xz
http://sanibeltranquility.com/cygwin/x86_64/release/savi/savi-1.5.1-1.hint
http://sanibeltranquility.com/cygwin/x86_64/release/savi/savi-1.5.1-1.tar.xz

Ken


-------------- next part --------------
--- origsrc/savi1.5.1/tcl/about.tcl	2017-01-02 01:11:32.000000000 -0500
+++ src/savi1.5.1/tcl/about.tcl	2017-06-28 14:16:03.267450700 -0400
@@ -54,7 +54,7 @@ proc about(build) {} {
 
     build_Label $cmd l2 \
 "http://savi.sourceforge.net/
-A user manual is in SaVi's manual/ directory.
+A user manual is in /usr/share/doc/savi/html.
 
 
 Originally created at The Geometry Center
-------------- next part --------------
--- origsrc/savi1.5.0/.geomview	2001-11-11 14:59:54.000000000 -0500
+++ src/savi1.5.0/.geomview	2017-06-23 16:59:15.193055000 -0400
@@ -1 +1 @@
-(emodule-define "SaVi" "./savi -geomview")
+(emodule-define "SaVi" "/usr/bin/savi -geomview")
-------------- next part --------------
--- origsrc/savi1.5.1/savi	2017-06-26 00:17:00.000000000 -0400
+++ src/savi1.5.1/savi	2017-06-28 10:19:09.447852800 -0400
@@ -41,7 +41,7 @@ export SAVI
 #
 # Default executable absolute location and name
 #
-SAVIBIN="${SAVI}/bin/SaVi"
+SAVIBIN="/usr/libexec/savi/bin/SaVi"
 
 #
 # Set locations of tcl and tk library code needed at runtime
@@ -264,7 +264,7 @@ fi
 # If savi tree has been split, with files (data/ oogl/ tcl/ maps/ and textfiles)
 # placed elsewhere, then uncomment and edit the following line to reset SAVI to
 # that other tree location.
-# SAVI=/usr/share/savi
+SAVI=/usr/share/savi
 # This is useful for Debian and Cygwin packagers.
 
 #
-------------- next part --------------
--- origsrc/savi1.5.1/src/Makefile	2017-06-28 07:29:58.000000000 -0400
+++ src/savi1.5.1/src/Makefile	2017-06-28 10:36:48.023603800 -0400
@@ -26,7 +26,7 @@ include Makefile_defs_$(ARCH)
 # zlib enables transparent gzip compression of dynamic texture scratchfiles.
 # OTHER_LIBS = -lz should be inserted at end of definitions file.
 
-   GCC_FLAGS = -O2 -DNO_ZLIB
+   GCC_FLAGS = -O2
 
         LIBS = $(TCL_LIBS) $(OTHER_LIBS) -lm
 
-------------- next part --------------
NAME="savi"
VERSION=1.5.1
RELEASE=1

SRC_URI="mirror://sourceforge/${PN}/${PN}${PV}-release.tar.gz"

SRC_DIR="${PN}${PV}"
SRC_URI+=" savi_bin"

PATCH_URI="geomview.patch"
PATCH_URI+=" savi_script.patch"
PATCH_URI+=" zlib.patch"
PATCH_URI+=" about.patch"

HOMEPAGE="http://savi.sourceforge.net/"
SUMMARY="Satellite constellation simulation and visualization"

DESCRIPTION="SaVi allows you to simulate satellite orbits and coverage, in two and
three dimensions.  SaVi is particularly useful for simulating
satellite constellations.  SaVi can use Geomview, an optional package,
for 3D rendering."

CATEGORY="Science"

DEPEND="zlib-devel tcl-tk-devel"
# REQUIRES="geomview"

MAKEOPTS+=" -j1"

DOCS="README-COVERAGE-TEXTUREMAP"
HTMLDOCS="manual/*"

savi_CONTENTS="--exclude=Makefile usr"
PKG_IGNORE="
	usr/share/doc/savi/html/Makefile
	usr/share/doc/savi/html/images/Makefile
"

src_compile() {
    lndirs
    cd ${B}
    cygmake ARCH=cygwin
}

src_install() {
    newbin ${S}/savi_bin savi
    cd ${B}
    exeinto /usr/libexec/savi/bin
    doexe bin/SaVi
    exeinto /usr/share/savi
    doexe savi
    insinto /usr/share/savi
    # These files have to be in /usr/share/savi in order for the
    # runtime Help to find them.
    doins COPYRIGHT BUGS README README-COVERAGE-TEXTUREMAP
    for d in data maps oogl tcl
    do
	insinto /usr/share/savi/${d}
	doins ${d}/*
    done
    find ${D}/usr/share/savi -name 'Makefile*' -delete
    insinto /usr/libexec/geomview
    newins .geomview .geomview-savi
}



More information about the Cygwin-apps mailing list