[packages/tk] - really fix tk on arch using lib64 - rel 2

baggins baggins at pld-linux.org
Mon Mar 17 09:17:02 CET 2014


commit f684b4be00283984a0bb136e1a16ab6203db19de
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 17 09:16:38 2014 +0100

    - really fix tk on arch using lib64
    - rel 2

 tk-lib64.patch | 19 +++++++++++++++++++
 tk.spec        |  4 ++--
 2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/tk.spec b/tk.spec
index 40dd580..064c2ee 100644
--- a/tk.spec
+++ b/tk.spec
@@ -6,10 +6,10 @@ Summary(ru.UTF-8):	Tk GUI toolkit для Tcl
 Summary(tr.UTF-8):	Tk, Tcl için grafik kullanıcı arabirimi araç takımıdır
 Summary(uk.UTF-8):	Tk GUI toolkit для Tcl
 Name:		tk
-%define 	major	8.5
+%define		major	8.5
 %define		minor	15
 Version:	%{major}.%{minor}
-Release:	1
+Release:	2
 License:	BSD
 Group:		Development/Languages/Tcl
 Source0:	http://downloads.sourceforge.net/tcl/%{name}%{version}-src.tar.gz
diff --git a/tk-lib64.patch b/tk-lib64.patch
index f681d0c..8a1c3a0 100644
--- a/tk-lib64.patch
+++ b/tk-lib64.patch
@@ -10,3 +10,22 @@ diff -urN tk8.5a3.org/unix/Makefile.in tk8.5a3/unix/Makefile.in
  
  # Path to use at runtime to refer to LIB_INSTALL_DIR:
  LIB_RUNTIME_DIR		= $(libdir)
+@@ -701,17 +701,7 @@
+ 	    rm -f "$(PKG_INDEX)"; \
+ 	    (\
+ 	    echo "if {[catch {package present Tcl 8.5.0}]} return";\
+-	    relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\
+-	    if test "x$(DLL_INSTALL_DIR)" != "x$(BIN_INSTALL_DIR)"; then \
+-	    echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}$(TK_LIB_FILE)]] Tk]";\
+-	    else \
+-	    echo "if {(\$$::tcl_platform(platform) eq \"unix\") && ([info exists ::env(DISPLAY)]";\
+-	    echo "	|| ([info exists ::argv] && (\"-display\" in \$$::argv)))} {";\
+-	    echo "    package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}.. bin $(TK_LIB_FILE)]] Tk]";\
+-	    echo "} else {";\
+-	    echo "    package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load [file normalize [file join \$$dir $${relative}.. bin tk${MAJOR_VERSION}${MINOR_VERSION}.dll]] Tk]";\
+-	    echo "}";\
+-	    fi \
++	    echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL) [list load $(DLL_INSTALL_DIR)/$(TK_LIB_FILE) Tk]";\
+ 	    ) > "$(PKG_INDEX)"; \
+ 	    fi
+ 	@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tk.git/commitdiff/f684b4be00283984a0bb136e1a16ab6203db19de



More information about the pld-cvs-commit mailing list