summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/hamlib
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/hamlib')
-rw-r--r--media-libs/hamlib/Manifest1
-rw-r--r--media-libs/hamlib/files/hamlib-1.2.11-bindings.diff28
-rw-r--r--media-libs/hamlib/files/hamlib-1.2.15.3-configure.diff12
-rw-r--r--media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild87
-rw-r--r--media-libs/hamlib/metadata.xml11
5 files changed, 139 insertions, 0 deletions
diff --git a/media-libs/hamlib/Manifest b/media-libs/hamlib/Manifest
new file mode 100644
index 000000000000..17378b86778f
--- /dev/null
+++ b/media-libs/hamlib/Manifest
@@ -0,0 +1 @@
+DIST hamlib-1.2.15.3.tar.gz 1675879 SHA256 a2ca4549e4fd99d6e5600e354ebcb57502611aa63c6921c1b8a825289833f75e SHA512 88f9cb8d82d813ac02944def0adf6eada0e4ed1407f60e344d51172462d51ab0c3ddd9cbf9ef8cbd61efba6c4158a77acb7c23b886e174c9a082bf1dd11f5baa WHIRLPOOL 33f8e114d05c778e30c1b634e2494cd3f9d89213ccc58b34b4d195bb4f1c803c5451f54c8e232bf276a1daebe6c0a01bae73a51fa90538fe537d3b5bf4ce91de
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/files/hamlib-1.2.15.3-configure.diff b/media-libs/hamlib/files/hamlib-1.2.15.3-configure.diff
new file mode 100644
index 000000000000..51a8e85f91d1
--- /dev/null
+++ b/media-libs/hamlib/files/hamlib-1.2.15.3-configure.diff
@@ -0,0 +1,12 @@
+# Use CXXFLAGS to built c++ components
+--- configure.ac.old 2013-01-22 09:20:31.000000000 +0100
++++ configure.ac 2013-01-22 09:20:43.000000000 +0100
+@@ -87,7 +87,7 @@
+ ACX_PTHREAD
+ if test x"$acx_pthread_ok" = xyes; then
+ CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
+- CXXFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
++ CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS}"
+ fi
+
+ AC_SYS_POSIX_TERMIOS()
diff --git a/media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild b/media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild
new file mode 100644
index 000000000000..4ddcd82dbbf7
--- /dev/null
+++ b/media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools-utils eutils multilib python-single-r1
+
+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="amd64 x86 ~x86-fbsd"
+IUSE="doc python tcl"
+
+RESTRICT="test"
+
+RDEPEND="
+ =virtual/libusb-0*
+ dev-libs/libxml2
+ python? ( ${PYTHON_DEPS} )
+ tcl? ( dev-lang/tcl:0= )"
+
+DEPEND=" ${RDEPEND}
+ virtual/pkgconfig
+ dev-lang/swig
+ >=sys-devel/libtool-2.2
+ doc? ( app-doc/doxygen )"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer TODO)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # 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"
+
+ # make building of documentation compatible with autotools-utils
+ sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
+
+ # fix tcl lib path
+ epatch "${FILESDIR}"/${PN}-1.2.11-bindings.diff
+
+ # use CXXFLAGS for building c++ components (bug #453240)
+ epatch "${FILESDIR}"/${P}-configure.diff
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --libdir=/usr/$(get_libdir)/hamlib
+ --disable-static
+ --with-rpc-backends
+ --without-perl-binding
+ $(use_with python python-binding)
+ $(use_enable tcl tcl-binding)
+ --disable-silent-rules
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ use doc && autotools-utils_src_compile html
+}
+
+src_install() {
+ use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/doc/html/")
+ autotools-utils_src_install
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${AUTOTOOLS_BUILD_DIR}"/hamlib.pc || die "doins failed"
+
+ echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
+ doenvd "${T}"/73hamlib || die "doenvd failed"
+}
diff --git a/media-libs/hamlib/metadata.xml b/media-libs/hamlib/metadata.xml
new file mode 100644
index 000000000000..631e17e43106
--- /dev/null
+++ b/media-libs/hamlib/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>tomjbe@gentoo.org</email>
+ <name>Thomas Beierlein</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">hamlib</remote-id>
+ </upstream>
+</pkgmetadata>