Bug 23245 - new port
Summary: new port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-03 05:20 UTC by kew
Modified: 2000-12-22 17:10 UTC (History)
0 users

See Also:


Attachments
file.shar (2.14 KB, text/plain)
2000-12-03 05:20 UTC, kew
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description kew 2000-12-03 05:20:01 UTC

    
Comment 1 Will Andrews freebsd_committer freebsd_triage 2000-12-19 13:36:43 UTC
State Changed
From-To: open->closed

Committed, thanks!  Next time remember to make your shars 
properly so they create the port's directory first.  It would 
be nice if there was a patch to make this program use getopt() 
instead of hardcoding the long/lat into it.
Comment 2 kew 2000-12-21 15:57:55 UTC
>Submitter-Id:   current-users
>Originator:     Keith Walker
>Organization:   
>Confidential:   no 
>Synopsis:       Fix to Makefile to clear up hardwired lat/longs
>Severity:       non-critical
>Priority:       low
>Category:       ports
>Release:        FreeBSD 4.2-STABLE i386
>Class:          change-request
>Environment: 

	current ports

>Description: 

	This patch makes it clear that the program has always been
	able to accept latitude and longitude via the command line.

>How-To-Repeat: 

	

>Fix: 


diff -ur sscalc-master/Makefile sscalc/Makefile
--- sscalc-master/Makefile	Tue Dec 19 05:36:31 2000
+++ sscalc/Makefile	Thu Dec 21 07:17:18 2000
@@ -2,7 +2,7 @@
 # Date created:				Wed Nov 29 15:08:00 PST 2000
 # Whom:					Keith Walker <kew@icehouse.net>
 #
-# $FreeBSD: ports/astro/sscalc/Makefile,v 1.1 2000/12/19 13:36:31 will Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	sscalc
@@ -14,9 +14,14 @@
 
 pre-fetch:
 .if !defined(LAT)
-	@${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
+	@${ECHO} "*****************************************************************"
+	@${ECHO} "While you can ALWAYS provide the lat/longs via the command"
+	@${ECHO} "line, you can choose to hardwire the coordinates to ease"
+	@${ECHO} "things a bit:"
+	@${ECHO} "   use \"make LAT=<nnn.nn> LON=<nnn.nn>\" if you want to."
+	@${ECHO} "*****************************************************************"
 .else
-	@${ECHO_MSG} "Compiling in lat/longs"
+	@${ECHO} "Compiling in lat/longs"
 .endif
 
 post-install:
@@ -24,5 +29,11 @@
 	@${MKDIR} ${PREFIX}/share/doc/sscalc
 	${INSTALL_DATA} ${WRKSRC}/cities.txt ${PREFIX}/share/doc/sscalc
 	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sscalc
+	@${ECHO} "*****************************************************************"
+	@${ECHO} " Located in ${PREFIX}/share/doc/sscalc/cities.txt is a list"
+	@${ECHO} " of lat/longs for many, many cities all over the globe."
+	@${ECHO} " You may be able to find your town in that file if you don't"
+	@${ECHO} " know your latitude and longitude."
+	@${ECHO} "*****************************************************************"
 
 .include <bsd.port.mk>
Comment 3 Will Andrews 2000-12-22 17:01:06 UTC
On Thu, Dec 21, 2000 at 08:00:03AM -0800, kew@icehouse.net wrote:
>  	This patch makes it clear that the program has always been
>  	able to accept latitude and longitude via the command line.

:-)

As you wish.  :-)

-- 
wca