[weasel-commit] Source: tk=8.5.7-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Fri, 15 Jan 2010 15:21:59 -0500

================================
tk:source=8.5.7-1
cvc rdiff tk -1 /weasel.rpath.org@wgl:3-devel/8.5.7-1
================================
8.5.7-1 Filip Brcic (brcha@xxxxxxx) Fri Jan 15 15:21:47 2010
    tk 8.5.7

tk.recipe: new
--- /dev/null
+++ tk.recipe
@@ -0,0 +72 @@
+#
+# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Tk(AutoPackageRecipe):
+    name = 'tk'
+    version = '8.5.7'
+
+    buildRequires = [
+        'autoconf:runtime', 'automake:runtime', 'fontconfig:devel',
+        'freetype:devel', 'libX11:devel', 'libXScrnSaver:devel',
+        'libXext:devel', 'libXft:devel', 'libXrender:devel',
+        'libtool:runtime', 'scrnsaverproto:devel', 'tcl:devel',
+        'tcl:runtime',
+        ]
+
+    shortDesc  = 'Tk Widget Set'
+    url        = 'http://www.tcl.tk/'
+    licenses   = [ 'BSD' ]
+    categories = [ 'Development/Languages' ]
+
+    def unpack(r):
+        r.addArchive('mirror://sourceforge/tcl/%(name)s%(version)s-src.tar.gz')
+
+        r.addPatch('tk-8.4.11-multilib.patch')
+        r.addPatch('tk-8.5_alpha6-tclm4-soname.patch')
+
+        r.Autoreconf(skipAutoheader=True,
+                     dir='unix')
+
+    def configure(r):
+        r.Configure(
+            ' --with-tcl=%(libdir)s'
+            ' --enable-threads'
+            ' --enable-xft',
+            dir='unix'
+            )
+
+    def make(r):
+        r.Make(dir='unix')
+
+    def makeinstall(r):
+        r.MakeInstall(dir='unix')
+
+        r.macros.majorminor = '.'.join(r.version.split('.')[0:2])
+
+        # fix the tkConfig.sh to eliminate refs to the build directory
+        r.Replace(('%(builddir)s/unix', '%(libdir)s'),
+                  ('%(builddir)s', '%(libdir)s/tk%(majorminor)s/include'),
+                  '%(libdir)s/tkConfig.sh')
+
+        # install private headers
+        r.Install('unix/*.h',
+                  '%(libdir)s/tk%(majorminor)s/include/unix/')
+        r.Install('generic/*.h',
+                  '%(libdir)s/tk%(majorminor)s/include/generic/')
+        
r.Remove('%(libdir)s/tk%(majorminor)s/include/generic/tk{,Decls,PlatDecls}.h')
+
+        # symlink libraries
+        r.Symlink('%(libdir)s/libtk%(majorminor)s.so',
+                  '%(libdir)s/libtk.so')
+        r.Symlink('%(libdir)s/libtkstub%(majorminor)s.a',
+                  '%(libdir)s/libtkstub.a')
+
+        r.Symlink('%(bindir)s/wish%(majorminor)s',
+                  '%(bindir)s/wish')
+
+        r.AutoDoc('changes', 'license.terms')
+
+        r.Requires('tcl:devel', '%(includedir)s/tk.h')
+        r.Requires('libX11:devel', '%(includedir)s/tk.h')

tk-8.5_alpha6-tclm4-soname.patch: new
--- /dev/null
+++ tk-8.5_alpha6-tclm4-soname.patch
@@ -0,0 +12 @@
+diff -Naur tk8.5a6.orig/unix/tcl.m4 tk8.5a6/unix/tcl.m4
+--- tk8.5a6.orig/unix/tcl.m4   2007-04-27 06:02:27.000000000 +0900
++++ tk8.5a6/unix/tcl.m4        2007-07-21 02:47:58.000000000 +0900
+@@ -1425,7 +1425,7 @@
+           # get rid of the warnings.
+           #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES 
-D__NO_MATH_INLINES"
+ 
+-          SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
++          SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
+           DL_OBJS="tclLoadDl.o"
+           DL_LIBS="-ldl"
+           LDFLAGS="$LDFLAGS -Wl,--export-dynamic"

tk8.5.7-src.tar.gz: new
tk-8.4.11-multilib.patch: new
--- /dev/null
+++ tk-8.4.11-multilib.patch
@@ -0,0 +24 @@
+diff -Naur tk8.4.11.orig/unix/configure tk8.4.11/unix/configure
+--- tk8.4.11.orig/unix/configure       2005-06-30 01:43:10.000000000 +0900
++++ tk8.4.11/unix/configure    2005-07-02 23:22:35.000000000 +0900
+@@ -5721,7 +5721,7 @@
+     TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
+ fi
+ 
+-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
++TK_LIBRARY='$(libdir)/tk$(VERSION)'
+ PRIVATE_INCLUDE_DIR='$(includedir)'
+ HTML_DIR='$(DISTDIR)/html'
+ TK_PKG_DIR='tk$(VERSION)$(TK_DBGX)'
+diff -Naur tk8.4.11.orig/unix/configure.in tk8.4.11/unix/configure.in
+--- tk8.4.11.orig/unix/configure.in    2005-06-30 01:43:10.000000000 +0900
++++ tk8.4.11/unix/configure.in 2005-07-02 23:22:16.000000000 +0900
+@@ -393,7 +393,7 @@
+     TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
+ fi
+ 
+-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
++TK_LIBRARY='$(libdir)/tk$(VERSION)'
+ PRIVATE_INCLUDE_DIR='$(includedir)'
+ HTML_DIR='$(DISTDIR)/html'
+ TK_PKG_DIR='tk$(VERSION)$(TK_DBGX)'


Committed by: brcha

Other related posts: