summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-06-05 14:16:42 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-06-05 14:16:42 +0000
commitc47a0c2c890ee88162810eacfad28a1d50bf13ce (patch)
treee6bd0dbb50195cca9cfaa170ff85141afa811870 /media-libs/hamlib
parentalpha stable wrt #317787 (diff)
downloadgentoo-2-c47a0c2c890ee88162810eacfad28a1d50bf13ce.tar.gz
gentoo-2-c47a0c2c890ee88162810eacfad28a1d50bf13ce.tar.bz2
gentoo-2-c47a0c2c890ee88162810eacfad28a1d50bf13ce.zip
Version bump
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/hamlib')
-rw-r--r--media-libs/hamlib/ChangeLog8
-rw-r--r--media-libs/hamlib/files/hamlib-1.2.11-bindings.diff28
-rw-r--r--media-libs/hamlib/hamlib-1.2.11.ebuild77
3 files changed, 112 insertions, 1 deletions
diff --git a/media-libs/hamlib/ChangeLog b/media-libs/hamlib/ChangeLog
index f0143e8077a7..5b06ad52ea1a 100644
--- a/media-libs/hamlib/ChangeLog
+++ b/media-libs/hamlib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/hamlib
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v 1.46 2010/05/23 18:14:24 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v 1.47 2010/06/05 14:16:41 tomjbe Exp $
+
+*hamlib-1.2.11 (05 Jun 2010)
+
+ 05 Jun 2010; Thomas Beierlein <tomjbe@gentoo.org> +hamlib-1.2.11.ebuild,
+ +files/hamlib-1.2.11-bindings.diff:
+ Version bump.
23 May 2010; Pacho Ramos <pacho@gentoo.org> hamlib-1.2.10.ebuild:
stable amd64, bug 307219
diff --git a/media-libs/hamlib/files/hamlib-1.2.11-bindings.diff b/media-libs/hamlib/files/hamlib-1.2.11-bindings.diff
new file mode 100644
index 000000000000..bf92076c7f82
--- /dev/null
+++ b/media-libs/hamlib/files/hamlib-1.2.11-bindings.diff
@@ -0,0 +1,28 @@
+Index: bindings/Makefile.am
+# fix tcl install path
+===================================================================
+--- bindings/Makefile.am (revision 2854)
++++ bindings/Makefile.am (working copy)
+@@ -62,7 +62,7 @@
+
+ tcl_ltlib = hamlibtcl.la
+
+-tcldir = $(prefix)/lib/tcl
++tcldir = @tclpackagedir@/hamlib
+
+ PKG_VER=1.0
+ DLL=hamlibtcl-$(PKG_VER)@TCL_SHLIB_SUFFIX@
+Index: configure.ac
+# add macro to determine path to tcl packages
+===================================================================
+--- configure.ac (revision 2854)
++++ configure.ac (working copy)
+@@ -316,6 +316,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"
+
diff --git a/media-libs/hamlib/hamlib-1.2.11.ebuild b/media-libs/hamlib/hamlib-1.2.11.ebuild
new file mode 100644
index 000000000000..0ea128f71256
--- /dev/null
+++ b/media-libs/hamlib/hamlib-1.2.11.ebuild
@@ -0,0 +1,77 @@
+# 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.11.ebuild,v 1.1 2010/06/05 14:16:41 tomjbe Exp $
+
+PYTHON_DEPEND="2"
+inherit autotools eutils multilib python
+
+DESCRIPTION="Ham radio backend rig control libraries"
+HOMEPAGE="http://sourceforge.net/apps/mediawiki/hamlib"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="doc python tcl"
+
+RESTRICT="test"
+
+RDEPEND="
+ =virtual/libusb-0*
+ dev-libs/libxml2
+ python? ( dev-lang/python )
+ tcl? ( dev-lang/tcl )"
+
+DEPEND=" ${RDEPEND}
+ dev-util/pkgconfig
+ dev-lang/swig
+ >=sys-devel/libtool-2.2
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # fix hardcoded libdir paths
+ sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
+ -e "s#fix}/include#fix}/include/hamlib#" \
+ hamlib.pc.in || die "sed failed"
+
+ # fix tcl lib path
+ epatch "${FILESDIR}"/${P}-bindings.diff
+
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --libdir=/usr/$(get_libdir)/hamlib \
+ --disable-static \
+ --with-rpc-backends \
+ --without-perl-binding \
+ $(use_with python python-binding) \
+ $(use_enable tcl tcl-binding)
+
+ emake || die "emake failed"
+
+ if use doc ; then
+ cd doc && make doc || die "make doc failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS PLAN README README.betatester \
+ README.developer NEWS TODO || die "dodoc failed"
+
+ if use doc; then
+ dohtml doc/html/* || die "dohtml failed"
+ fi
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins hamlib.pc || die "doins failed"
+
+ echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
+ doenvd "${T}"/73hamlib || die "doenvd failed"
+}