Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2013 09:44:44 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318234 - in head/x11-toolkits/tkshape: . files
Message-ID:  <201305150944.r4F9iiSI062859@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Wed May 15 09:44:44 2013
New Revision: 318234
URL: http://svnweb.freebsd.org/changeset/ports/318234

Log:
  - Fix build with Tcl/Tk 8.6
  
  Reported by:	miwi (Tcl/Tk 86 exp-run)
  Approved by:	portmgr

Added:
  head/x11-toolkits/tkshape/files/patch-test-syntax.text   (contents, props changed)
  head/x11-toolkits/tkshape/files/patch-unix-Makefile.in   (contents, props changed)
Modified:
  head/x11-toolkits/tkshape/Makefile   (contents, props changed)

Modified: head/x11-toolkits/tkshape/Makefile
==============================================================================
--- head/x11-toolkits/tkshape/Makefile	Wed May 15 09:42:00 2013	(r318233)
+++ head/x11-toolkits/tkshape/Makefile	Wed May 15 09:44:44 2013	(r318234)
@@ -35,8 +35,8 @@ WRKSRC=			${WRKDIR}/${PORTNAME:C/^tk//1}
 
 USE_GMAKE=		yes
 GNU_CONFIGURE=		yes
-CONFIGURE_ARGS=		--with-tclconf=${LOCALBASE}/lib/tcl${TCL_VER} \
-			--with-tkconf=${LOCALBASE}/lib/tk${TK_VER}
+CONFIGURE_ARGS=		--with-tclconf=${TCL_LIBDIR} \
+			--with-tkconf=${TK_LIBDIR}
 CONFIGURE_WRKSRC=	${WRKSRC}/unix
 BUILD_WRKSRC=		${CONFIGURE_WRKSRC}
 

Added: head/x11-toolkits/tkshape/files/patch-test-syntax.text
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/tkshape/files/patch-test-syntax.text	Wed May 15 09:44:44 2013	(r318234)
@@ -0,0 +1,139 @@
+--- tests/syntax.test.orig	2013-05-13 17:26:43.000000000 +0200
++++ tests/syntax.test	2013-05-13 17:26:27.000000000 +0200
+@@ -15,20 +15,20 @@
+     namespace import ::tcltest::*
+ }
+ 
+-package require shape
++package require Shape
+ 
+ # top-level error messages
+ test syntax-1.1 {Shape needs subcommand} {
+     list [catch {
+ 	shape
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape subcommand ?window arg ...?\""}
++} {1 {wrong # args: should be "shape subcommand ?window arg ...?"}}
+ test syntax-1.2 {Shape subcommand list} {
+     list [catch {
+ 	shape Dummy
+     } msg] $msg
+-} {1 "bad subcommand \"Dummy\": must be\
+-	bounds, get, offset, set, update, or version"}
++} {1 {bad subcommand "Dummy": must be\
++	bounds, get, offset, set, update, or version}}
+ test syntax-1.3 {Variables were created} {
+     list [info exist shape_version] [info exist shape_patchLevel]
+ } {1 1}
+@@ -38,7 +38,7 @@
+     list [catch {
+ 	shape version Dummy
+     } msg] $msg
+-} {1 " wrong # args: should be \"shape version\""}
++} {1 {wrong # args: should be "shape version"}}
+ test syntax-2.2 {Shape version: result format} {
+     string is double -strict [shape version]
+ } {1}
+@@ -48,84 +48,84 @@
+     list [catch {
+ 	shape set
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape set pathName ?options?\""}
++} {1 {wrong # args: should be "shape set pathName ?options?"}}
+ test syntax-3.2 {Shape set: needs window pathname} {
+     list [catch {
+ 	shape set not-a-window
+     } msg] $msg
+-} {1 "bad window path name \"not-a-window\""}
++} {1 {bad window path name "not-a-window"}}
+ 
+ # get subcommand
+ test syntax-4.1 {Shape get: command format} {
+     list [catch {
+ 	shape get
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape get pathName ?-bounding/-clip?\""}
++} {1 {wrong # args: should be "shape get pathName ?-bounding/-clip?"}}
+ test syntax-4.2 {Shape get: command format} {
+     list [catch {
+ 	shape get ? ? ?
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape get pathName ?-bounding/-clip?\""}
++} {1 {wrong # args: should be "shape get pathName ?-bounding/-clip?"}}
+ test syntax-4.3 {Shape get: needs window pathname} {
+     list [catch {
+ 	shape get not-a-window
+     } msg] $msg
+-} {1 "bad window path name \"not-a-window\""}
++} {1 {bad window path name "not-a-window"}}
+ 
+ # update subcommand
+ test syntax-5.1 {Shape update: command format} {
+     list [catch {
+ 	shape update
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape update pathName operation ?options?\""}
++} {1 {wrong # args: should be "shape update pathName operation ?options?"}}
+ 
+ # offset subcommand
+ test syntax-6.1 {Shape offset: command format} {
+     list [catch {
+ 	shape offset
+     } msg] $msg
+-} {1 "wrong # args: should be\
+-	\"shape offset pathName ?-bounding/-clip/-both? x y\""}
++} {1 {wrong # args: should be\
++	"shape offset pathName ?-bounding/-clip/-both? x y"}}
+ test syntax-6.2 {Shape offset: command format} {
+     list [catch {
+ 	shape offset ?
+     } msg] $msg
+-} {1 "wrong # args: should be\
+-	\"shape offset pathName ?-bounding/-clip/-both? x y\""}
++} {1 {wrong # args: should be\
++	"shape offset pathName ?-bounding/-clip/-both? x y"}}
+ test syntax-6.3 {Shape offset: command format} {
+     list [catch {
+ 	shape offset ? ?
+     } msg] $msg
+-} {1 "wrong # args: should be\
+-	\"shape offset pathName ?-bounding/-clip/-both? x y\""}
++} {1 {wrong # args: should be\
++	"shape offset pathName ?-bounding/-clip/-both? x y"}}
+ test syntax-6.4 {Shape offset: command format} {
+     list [catch {
+ 	shape offset ? ? ? ? ?
+     } msg] $msg
+-} {1 "wrong # args: should be\
+-	\"shape offset pathName ?-bounding/-clip/-both? x y\""}
++} {1 {wrong # args: should be\
++	"shape offset pathName ?-bounding/-clip/-both? x y"}}
+ test syntax-6.5 {Shape offset: needs window pathname} {
+     list [catch {
+ 	shape offset not-a-window 0 0
+     } msg] $msg
+-} {1 "bad window path name \"not-a-window\""}
++} {1 {bad window path name "not-a-window"}}
+ 
+ # bounds subcommand
+ test syntax-7.1 {Shape bounds: command format} {
+     list [catch {
+ 	shape bounds
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape bounds pathName ?-bounding/-clip?\""}
++} {1 {wrong # args: should be "shape bounds pathName ?-bounding/-clip?"}}
+ test syntax-7.2 {Shape bounds: command format} {
+     list [catch {
+ 	shape bounds ? ? ?
+     } msg] $msg
+-} {1 "wrong # args: should be \"shape bounds pathName ?-bounding/-clip?\""}
++} {1 {wrong # args: should be "shape bounds pathName ?-bounding/-clip?"}}
+ test syntax-7.3 {Shape bounds: needs window pathname} {
+     list [catch {
+ 	shape bounds not-a-window
+     } msg] $msg
+-} {1 "bad window path name \"not-a-window\""}
++} {1 {bad window path name "not-a-window"}}
+ 
+ # cleanup
+ ::tcltest::cleanupTests

Added: head/x11-toolkits/tkshape/files/patch-unix-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/tkshape/files/patch-unix-Makefile.in	Wed May 15 09:44:44 2013	(r318234)
@@ -0,0 +1,11 @@
+--- unix/Makefile.in.orig	2000-09-11 17:10:01.000000000 +0200
++++ unix/Makefile.in	2013-05-13 17:20:31.000000000 +0200
+@@ -71,7 +71,7 @@
+ 	$(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/shapeUnixText.c
+ # ----------------------------------------------------------------------
+ $(SOFILE): $(OBJS)
+-	${SHLIB_LD} -o $@ $^ @SHLIB_LD_LIBS@
++	${SHLIB_LD} -o $@ $^ @SHLIB_LD_LIBS@ ${TK_LIB_SPEC} ${TCL_LIB_SPEC} ${TK_LIBS}
+ $(EXEFILE): $(OBJS) tkAppInit.o
+ 	$(CC) -o $@ $^ @SHLIB_LD_LIBS@ ${TK_LIB_SPEC} ${TCL_LIB_SPEC} ${TK_LIBS}
+ # ----------------------------------------------------------------------



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