Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 1999 17:44:43 +0100 (CET)
From:      Ruben van Staveren <ruben@helium.verweg.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15706: NEW port: gweather
Message-ID:  <199912261644.RAA07106@helium.verweg.com>

next in thread | raw e-mail | index | archive | help

>Number:         15706
>Category:       ports
>Synopsis:       NEW port: gweather
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 26 08:50:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Ruben van Staveren
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Verweg dot Com
>Environment:

FreeBSD helium.verweg.com 3.4-STABLE FreeBSD 3.4-STABLE #0: Sat Dec 25 18:01:48 CET 1999     root@helium.verweg.com:/usr/cvsup/3.0-stable/src/sys/compile/HELIUM  i386

>Description:

GNOME Weather is a panel applet that displays current weather information and 
forecasts, obtained from the METAR and IWIN services by NOAA (forecasts
available only for US cities). It is under final stages of development. 

Author: Spiros Papadimitriou <spapadim+@cs.cmu.edu>

WWW: http://gweather.dhs.org/

>How-To-Repeat:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gweather
#	gweather/files
#	gweather/files/md5
#	gweather/patches
#	gweather/patches/patch-aa
#	gweather/pkg
#	gweather/pkg/COMMENT
#	gweather/pkg/DESCR
#	gweather/pkg/PLIST
#	gweather/Makefile
#	gweather/scripts
#	gweather/scripts/install.sh
#	gweather/scripts/mkinstalldirs
#
echo c - gweather
mkdir -p gweather > /dev/null 2>&1
echo c - gweather/files
mkdir -p gweather/files > /dev/null 2>&1
echo x - gweather/files/md5
sed 's/^X//' >gweather/files/md5 << 'END-of-gweather/files/md5'
XMD5 (gweather-0.05.tar.gz) = 3a9f9bda801dde77b3c2af1f39ed039b
END-of-gweather/files/md5
echo c - gweather/patches
mkdir -p gweather/patches > /dev/null 2>&1
echo x - gweather/patches/patch-aa
sed 's/^X//' >gweather/patches/patch-aa << 'END-of-gweather/patches/patch-aa'
X--- src/weather.c.orig	Sun Dec 26 16:57:50 1999
X+++ src/weather.c	Sun Dec 26 16:58:37 1999
X@@ -21,6 +21,7 @@
X #include <ctype.h>
X #include <math.h>
X 
X+#include <sys/types.h>
X #include <regex.h>
X #include <time.h>
X #include <unistd.h>
END-of-gweather/patches/patch-aa
echo c - gweather/pkg
mkdir -p gweather/pkg > /dev/null 2>&1
echo x - gweather/pkg/COMMENT
sed 's/^X//' >gweather/pkg/COMMENT << 'END-of-gweather/pkg/COMMENT'
XGnome applet that displays current weather information and forecasts
END-of-gweather/pkg/COMMENT
echo x - gweather/pkg/DESCR
sed 's/^X//' >gweather/pkg/DESCR << 'END-of-gweather/pkg/DESCR'
XGNOME Weather is a panel applet that displays current weather information and 
Xforecasts, obtained from the METAR and IWIN services by NOAA (forecasts
Xavailable only for US cities). It is under final stages of development. 
X
XAuthor: Spiros Papadimitriou <spapadim+@cs.cmu.edu>
X
XWWW: http://gweather.dhs.org/
END-of-gweather/pkg/DESCR
echo x - gweather/pkg/PLIST
sed 's/^X//' >gweather/pkg/PLIST << 'END-of-gweather/pkg/PLIST'
Xbin/gweather
Xshare/gnome/applets/Utility/gweather.desktop
Xetc/CORBA/servers/gweather.gnorba
Xshare/gnome/gweather/Locations
X@dirrm share/gnome/gweather
END-of-gweather/pkg/PLIST
echo x - gweather/Makefile
sed 's/^X//' >gweather/Makefile << 'END-of-gweather/Makefile'
X# New ports collection makefile for:	gweather
X# Version required:	0.05
X# Date created:		26 December 1999
X# Whom:			Ruben van Staveren <ruben@verweg.com>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	gweather-0.05
XCATEGORIES=	x11 gnome
XMASTER_SITES=	http://gweather.dhs.org/
X
XMAINTAINER=	ruben@verweg.com
X
XBUILD_DEPENDS=	panel:${PORTSDIR}/x11/gnomecore
XRUN_DEPENDS=	panel:${PORTSDIR}/x11/gnomecore
X
XGLIB_CONFIG?=	${LOCALBASE}/bin/glib12-config
X
XUSE_X_PREFIX=	yes
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--localstatedir=${PREFIX}/share/gnome \
X		--datadir=${PREFIX}/share/gnome
X
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		MAKE="gmake" \
X		GLIB_CONFIG="${GLIB_CONFIG}" \
X		LIBS="-L${LOCALBASE}/lib"
X
Xpost-extract:
X	-rm ${WRKDIR}/gweather-0.05/install-sh
X	-rm ${WRKDIR}/gweather-0.05/mkinstalldirs
X	${CP} ${SCRIPTDIR}/* ${WRKDIR}/gweather-0.05/
X
X.include <bsd.port.mk>
END-of-gweather/Makefile
echo c - gweather/scripts
mkdir -p gweather/scripts > /dev/null 2>&1
echo x - gweather/scripts/install.sh
sed 's/^X//' >gweather/scripts/install.sh << 'END-of-gweather/scripts/install.sh'
X#!/bin/sh
X#
X# Emulate the BSD install command with cpset for System V
X# Tom Moore - NCR Corporation
X#
XPATH=/bin:/etc:/usr/bin:/usr/ucb
Xexport PATH
X
X# Default values
Xmode=0755
Xowner=bin
Xgroup=bin
Xstrip=FALSE
Xremove=TRUE
X
XUSAGE="install [-s] [-c] [-m mode] [-o owner] [-g group] source file|directory"
Xset -- `getopt scm:o:g: $*` || {
X	echo $USAGE >&2
X	exit 2
X}
Xfor option in $*
Xdo
X	case $option in
X	-s)	# Strip the installed file
X		strip=TRUE
X		shift
X		;;
X	-c)	# Copy the source file rather than move it
X		remove=FALSE
X		shift
X		;;
X	-m)	# File mode
X		mode=$2
X		shift 2
X		;;
X	-o)	# File owner
X		owner=$2
X		shift 2
X		;;
X	-g)	# File group
X		group=$2
X		shift 2
X		;;
X	--)	# End of options
X		shift
X		break
X		;;
X	esac
Xdone
X
Xcase $# in
X0)	echo "install: no file or destination specified" >&2
X	exit 2
X	;;
X1)	echo "install: no destination specified" >&2
X	exit 2
X	;;
X2)	source=$1
X	destination=$2
X	;;
X*)	echo "install: too many files specified" >&2
X	exit 2
X	;;
Xesac
X
X[ $source = $destination -o $destination = . ] && {
X	echo "install: can't move $source onto itself" >&2
X	exit 1
X}
X
X[ -f $source ] || {
X	echo "install: can't open $source" >&2
X	exit 1
X}
X
Xif [ -d $destination ]
Xthen
X	file=`basename $source`
X	OLDdestination=$destination/OLD$file
X	destination=$destination/$file
Xelse
X	dir=`dirname $destination`
X	file=`basename $destination`
X	OLDdestination=$dir/OLD$file
Xfi
X
X(cp $source $destination &&
X  chmod $mode $destination &&
X  chown $owner $destination &&
X  chgrp $group $destination) || true # exit 1
X
X# /bin/rm -f $OLDdestination
X
X[ $strip = TRUE ] &&
X	strip $destination
X
X[ $remove = TRUE ] &&
X	rm -f $source
X
Xexit 0
END-of-gweather/scripts/install.sh
echo x - gweather/scripts/mkinstalldirs
sed 's/^X//' >gweather/scripts/mkinstalldirs << 'END-of-gweather/scripts/mkinstalldirs'
X#! /bin/sh
X# mkinstalldirs --- make directory hierarchy
X# Author: Noah Friedman <friedman@prep.ai.mit.edu>
X# Created: 1993-05-16
X# Public domain
X
X# $Id: mkinstalldirs,v 1.1 1998/07/17 14:18:48 jbj Exp $
X
Xerrstatus=0
X
Xfor file
Xdo
X   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
X   shift
X
X   pathcomp=
X   for d
X   do
X     pathcomp="$pathcomp$d"
X     case "$pathcomp" in
X       -* ) pathcomp=./$pathcomp ;;
X     esac
X
X     if test ! -d "$pathcomp"; then
X        echo "mkdir $pathcomp" 1>&2
X
X        mkdir "$pathcomp" || lasterr=$?
X
X        if test ! -d "$pathcomp"; then
X  	  errstatus=$lasterr
X        fi
X     fi
X
X     pathcomp="$pathcomp/"
X   done
Xdone
X
Xexit $errstatus
X
X# mkinstalldirs ends here
END-of-gweather/scripts/mkinstalldirs
exit


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912261644.RAA07106>