From tkato432@yahoo.com  Fri Oct 14 18:47:43 2011
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 47DA910656A7
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2011 18:44:18 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa105lp.auone-net.jp (msa105lp.auone-net.jp [222.3.140.168])
	by mx1.freebsd.org (Postfix) with ESMTP id C079E8FC17
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri, 14 Oct 2011 18:44:17 +0000 (UTC)
Received: from msa105lp.auone-net.jp (MSA105lp [172.27.12.183])
	by msa105lp.auone-net.jp (au one net msa) with ESMTP id C2B63570243
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 15 Oct 2011 03:33:03 +0900 (JST)
Received: from localhost.localdomain (ZT046175.ppp.dion.ne.jp [59.128.46.175])
	by msa105lp.auone-net.jp (au one net msa) with ESMTP id 9117650037
	for <FreeBSD-gnats-submit@FreeBSD.org>; Sat, 15 Oct 2011 03:33:01 +0900 (JST)
Message-Id: <20111015025756.4c9ee30c.tkato432@yahoo.com>
Date: Sat, 15 Oct 2011 02:57:56 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: games/awele

>Number:         161640
>Category:       ports
>Synopsis:       Update port: games/awele
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ehaupt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 14 18:50:28 UTC 2011
>Closed-Date:    Tue Oct 18 15:12:48 CEST 2011
>Last-Modified:  Tue Oct 18 15:12:48 CEST 2011
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Remove hardcoded Tcl/Tk version
- Support ECHO_MSG

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/awele/Makefile games/awele/Makefile
--- /usr/ports/games/awele/Makefile	2009-06-10 01:40:28.000000000 +0900
+++ games/awele/Makefile	2011-10-14 02:59:06.000000000 +0900
@@ -7,30 +7,38 @@
 
 PORTNAME=	awele
 PORTVERSION=	1.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games tk
-MASTER_SITES=	http://www-air.inria.fr/ftp/Jean-Paul/ \
-		${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR=	games
-DISTFILES=	${PORTNAME}1.0.tgz
+MASTER_SITES=	XCONTRIB/games
+DISTNAME=	${PORTNAME}${PORTVERSION}
+EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	An african board game
 
-USE_TCL_BUILD=	84
-USE_TK_BUILD=	${USE_TCL_BUILD}
-WRKSRC=		${WRKDIR}/awele
-USE_IMAKE=	yes
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
 USE_XORG=	x11
+USE_IMAKE=	yes
+USE_TCL_BUILD=	yes
+USE_TK_BUILD=	yes
+USE_TCL=	yes
+USE_TK=		yes
+
 MAN6=		xawele.6
 PLIST_FILES=	bin/awelewish bin/xawele
 
 post-patch:
-	${REINPLACE_CMD} -e "s|\@\@LOCALBASE\@\@|${LOCALBASE}|g;" ${WRKSRC}/Imakefile
+	@${REINPLACE_CMD} -e \
+		's|%%LOCALBASE%%|${LOCALBASE}|; \
+		 s|%%TK_VER%%|${TK_VER:S/.//}|; \
+		 s|%%TCL_VER%%|${TCL_VER:S/.//}|; \
+		 s|%%TK_INCLUDEDIR%%|${TK_INCLUDEDIR}|; \
+		 s|%%TCL_INCLUDEDIR%%|${TCL_INCLUDEDIR}|' ${WRKSRC}/Imakefile
 
 post-install:
-	@${ECHO_CMD} ""
-	@${ECHO_CMD} "Use xawele to start awele"
-	@${ECHO_CMD} ""
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "Use xawele to start awele"
+	@${ECHO_MSG} ""
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/awele/files/patch-aa games/awele/files/patch-aa
--- /usr/ports/games/awele/files/patch-aa	2007-03-16 13:40:22.000000000 +0900
+++ games/awele/files/patch-aa	2011-09-19 19:12:47.000000000 +0900
@@ -11,10 +11,10 @@
  XCOMM libs, includes
  XCOMM TK_LIB AND TK_INCLUDE stand for tk and tcl
 -    TK_LIB		= -L/usr/local/lib -ltk -ltcl
-+    TK_LIB		= -L@@LOCALBASE@@/lib -ltk84 -ltcl84
++    TK_LIB		= -L%%LOCALBASE%%/lib -ltk%%TK_VER%% -ltcl%%TCL_VER%%
  XCOMM    TK_LIB		= -L/usr/local/lib -ltk4.0 -ltcl7.4
 -    TK_INCLUDE 		= -I/usr/local/include
-+    TK_INCLUDE 		= -I@@LOCALBASE@@/include/tcl8.4 -I@@LOCALBASE@@/include/tk8.4
++    TK_INCLUDE 		= -I%%TK_INCLUDEDIR%% -I%%TCL_INCLUDEDIR%%
      DEFINES = $(TK_INCLUDE) 
      LOCAL_LIBRARIES = $(TK_LIB) -lX11 -lm
  XCOMM ANSI-C compiler
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ehaupt 
Responsible-Changed-By: ehaupt 
Responsible-Changed-When: Mon Oct 17 20:18:35 CEST 2011 
Responsible-Changed-Why:  
I will take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161640 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/161640: commit references a PR
Date: Tue, 18 Oct 2011 13:08:51 +0000 (UTC)

 ehaupt      2011-10-18 13:05:36 UTC
 
   FreeBSD ports repository
 
   Modified files:
     games/awele          Makefile 
     games/awele/files    patch-aa 
   Log:
   - Fix MASTER_SITES
   - Remove hardcoded Tcl/Tk version
   - Support ECHO_MSG
   
   PR:             161640
   Submitted by:   KATO Tsuguru <tkato432@yahoo.com>
   
   Revision  Changes    Path
   1.21      +21 -13    ports/games/awele/Makefile
   1.5       +2 -2      ports/games/awele/files/patch-aa
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: ehaupt 
State-Changed-When: Tue Oct 18 15:12:47 CEST 2011 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161640 
>Unformatted:
