Add fixes for python/tcl bindings and python.eclass fixes by Thomas Beierlein
authorJeremy Olexa <darkside@gentoo.org>
Sun, 14 Mar 2010 20:39:18 +0000 (20:39 +0000)
committerJeremy Olexa <darkside@gentoo.org>
Sun, 14 Mar 2010 20:39:18 +0000 (20:39 +0000)
Package-Manager: portage-2.1.8/cvs/Linux x86_64

media-libs/hamlib/ChangeLog
media-libs/hamlib/Manifest
media-libs/hamlib/files/hamlib-bindings.diff [new file with mode: 0644]
media-libs/hamlib/hamlib-1.2.10.ebuild

index 2c189657340aedd6407711710a80ddeca420c044..30643345bbaaff71f8da52aa5082ff21a958e9e9 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for media-libs/hamlib
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v 1.40 2009/12/11 02:40:33 darkside Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v 1.41 2010/03/14 20:39:17 darkside Exp $
+
+  14 Mar 2010; Jeremy Olexa <darkside@gentoo.org> hamlib-1.2.10.ebuild,
+  +files/hamlib-bindings.diff:
+  Add fixes for python/tcl bindings and python.eclass fixes by Thomas
+  Beierlein
 
 *hamlib-1.2.10 (11 Dec 2009)
 
index 87cd4cd3561a26a0e9afb8a41cb7a79a4c6099db..1889ae8e1603e39a4566e44f52e81ab216aec6a8 100644 (file)
@@ -1,8 +1,9 @@
+AUX hamlib-bindings.diff 2421 RMD160 b9a5bc522fc46c6a42cfd8f577129cd5254e9493 SHA1 795942e0158e3b0b3fe74259d766e5fc2b813930 SHA256 2dc3427a965a0a3bc3813da9801ecead78bef7881e2cfee0a93b0afa956b9f66
 AUX hamlib-ltdl.diff 1359 RMD160 ffc06ebe344f14e54c92abdc5b22c09739b1963e SHA1 5e734d14f77584fd65a8ad0b1fea399a8a9c52c3 SHA256 059ce76b9d56a7fd028815c78aa1214b21bb5d2c3ccbe72dcf06534b09d63e4e
 AUX hamlib-pkgconfig-fix.diff 373 RMD160 fe7a8275b28ea73480b9bf1eb916302d84eb351f SHA1 bc0abd242bc35897000d405bc1fb831a48fad976 SHA256 6c45445bf2bc12b9738b6315543df662a0dd36167a57a3623bb11446e882802c
 DIST hamlib-1.2.10.tar.gz 1799309 RMD160 7e5e887e9e1188b19157e76f88b40b3bf7c157a3 SHA1 c8ea2cafc8286805aa815d37e72857286db93d88 SHA256 9b50825666519b0b86469f1988a0de09ce2ffc08fa221f9aa40d18c7b7f6c651
 DIST hamlib-1.2.9.tar.gz 1611457 RMD160 3261d4e6de39a9a050f304dfd747fe8a036a782b SHA1 9cfbfad347b254ab73cb00714b494aaa8cd21f8d SHA256 ba75e64e1b6d5ffaa41e2063e475eca5b35ad68cb4ee6e888e0fc73bd6fa9fba
-EBUILD hamlib-1.2.10.ebuild 2110 RMD160 7d0cb3623d39ee8ab46210f63b9e9073344f505c SHA1 4b0f3aacca6e0a0fa3967084e2ef04ec50d9ff43 SHA256 fe5ecbb556005482b8e318ee4f9d881987a67beb50018e24cd7fd1a6670d2e2c
+EBUILD hamlib-1.2.10.ebuild 2009 RMD160 4190f54f8ebf3977c20a531ca2f92773354b5881 SHA1 1cc9786798995ace9688b4eae0e8ef77c7fdf1a5 SHA256 c4cc0644b07db101720979c7a832383986c9bd8b460426a97df5a3141e562397
 EBUILD hamlib-1.2.9.ebuild 1556 RMD160 73b28d2f2dfcaab0bdaaf9056a2c95ad5f62f215 SHA1 b32aa93ff01add3cc463bc5d0a0749897d0219ea SHA256 0d0afd9248eb041678842ad592d33d890bc865f46d117baa3ded8b4f57b5038f
-MISC ChangeLog 6819 RMD160 e3263007dc85fa9b6b37f1ab3d87e580acb8ada7 SHA1 c7468a01f8755e3fe7c9c4546cd882a26ed4ce69 SHA256 1d78bc8bfadc2693f6f6b81c2a4eb5b7ab95fe30aea9184a9a9c1e50770a58b9
+MISC ChangeLog 7005 RMD160 ef8616fca996cf740b6da7ada39d840afb0a9c9b SHA1 976a265ae1c8604f2fb6321d65969af8d7f70976 SHA256 d317ae8611c923b9b75a077fb8cb8ecab103e2d28a198841127aa7e7bb42747e
 MISC metadata.xml 445 RMD160 5c4df32a3cd29ba926c9c5457ad462ac00798b87 SHA1 db84ad4be4f3e05bddbcbd4eafdf17b9f1b68bf6 SHA256 f47eb6e8c3746271d2996691a234c9216c9821ec937828d8c8aeedca29b10d00
diff --git a/media-libs/hamlib/files/hamlib-bindings.diff b/media-libs/hamlib/files/hamlib-bindings.diff
new file mode 100644 (file)
index 0000000..ecb9715
--- /dev/null
@@ -0,0 +1,73 @@
+# drop longrunning and unneeded search for python library
+--- macros/python.m4.orig      2010-03-12 07:11:49.000000000 +0100
++++ macros/python.m4   2010-03-12 07:12:21.000000000 +0100
+@@ -56,21 +56,6 @@
+ 
+       if test "$cf_with_python_devel" != "no" ; then
+ 
+-      # Check for Python library path
+-      AC_MSG_CHECKING([for Python library path])
+-      python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
+-      for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
+-              python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
+-              if test -n "$python_path" ; then
+-                      break
+-              fi
+-      done
+-      python_path=`echo $python_path | sed "s,/libpython.*$,,"`
+-      AC_MSG_RESULT([$python_path])
+-      if test -z "$python_path" ; then
+-              AC_MSG_WARN([cannot find Python library path])
+-      fi
+-      AC_SUBST([PYTHON_LDFLAGS],["-L$python_path -lpython$PYTHON_VERSION"])
+       #
+       python_site=`echo $python_path | sed "s/config/site-packages/"`
+       AC_SUBST([PYTHON_SITE_PKG],[$python_site])
+Index: bindings/Makefile.am
+# fix tcl and python install path
+===================================================================
+--- bindings/Makefile.am       (revision 2854)
++++ bindings/Makefile.am       (working copy)
+@@ -69,7 +69,7 @@
+ 
+ tcl_ltlib = hamlibtcl.la
+ 
+-tcldir = $(prefix)/lib/tcl
++tcldir = @tclpackagedir@/hamlib
+ 
+ PKG_VER=1.0
+ DLL=hamlibtcl-$(PKG_VER)@TCL_SHLIB_SUFFIX@
+@@ -105,7 +105,7 @@
+ 
+ python_ltlib = _Hamlib.la
+ 
+-pythondir = $(prefix)/lib/python
++pythondir = @pythondir@
+ 
+ nodist__Hamlib_la_SOURCES = hamlibpy_wrap.c
+ _Hamlib_la_LDFLAGS = -no-undefined -module -avoid-version
+@@ -131,8 +131,8 @@
+ uninstall-py: 
+ 
+ ##########################################
+-
+-lib_LTLIBRARIES = $(tcl_ltlib) $(python_ltlib)
++_Hamlib_la_LTLIBRARIES = $(python_ltlib)
++lib_LTLIBRARIES = $(tcl_ltlib)
+ # lib_LTLIBRARIES = @BINDING_LIB_TARGETS@
+ 
+ all-local: @BINDING_ALL@
+Index: configure.ac
+# add macro to determine path to tcl packages
+===================================================================
+--- configure.ac       (revision 2854)
++++ configure.ac       (working copy)
+@@ -330,6 +330,8 @@
+ AC_SUBST(TCL_LIB_SPEC)
+ AC_SUBST(TCL_INCLUDE_SPEC)
+ AC_SUBST(TCL_SHLIB_SUFFIX)
++tclpackagedir=`echo $TCL_PACKAGE_PATH | cut -d ' ' -f 1 | sed "s,$TCL_PREFIX,\\${prefix},"`
++AC_SUBST(tclpackagedir)
+ 
+ # TODO: require "${ac_cv_header_sys_socket_h}" = "no"
+ 
index afb9a519dea044c535e7f0f4a6a28bcea61752bf..0505267f8c3624faea9a52b0bc064641e3a4b35a 100644 (file)
@@ -1,7 +1,8 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/hamlib-1.2.10.ebuild,v 1.1 2009/12/11 02:40:33 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/hamlib-1.2.10.ebuild,v 1.2 2010/03/14 20:39:17 darkside Exp $
 
+PYTHON_DEPEND="2"
 inherit autotools eutils multilib python
 
 DESCRIPTION="Ham radio backend rig control libraries"
@@ -36,15 +37,10 @@ src_unpack() {
        sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
                -e "s#fix}/include#fix}/include/hamlib#" \
                hamlib.pc.in || die "sed failed"
-       sed -i -e "s#/lib/#/$(get_libdir)/#g" \
-               bindings/Makefile.am || die "sed failed"
-
-       if use python ; then
-               # fix python lib path
-               python_version
-               sed -i -e "s#/python#/python${PYVER}#" \
-                       bindings/Makefile.am || die "sed failed"
-       fi
+
+       # fix python and tcl lib path and
+       # drop unneeded search for python library
+       epatch "${FILESDIR}"/${PN}-bindings.diff
 
        # avoid compilation and use of bundled libltdl copy
        sed -i -e "s/lib libltdl src/lib src/g" \
@@ -60,7 +56,7 @@ src_compile() {
                --with-rpc-backends \
                --without-perl-binding \
                $(use_with python python-binding) \
-               $(use_enable tcl  tcl-binding)
+               $(use_enable tcl tcl-binding)
 
        emake || die "emake failed"