/[gentoo-x86]/media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild
Gentoo

Contents of /media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Mar 25 15:58:23 2015 UTC (3 years, 4 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Fix tcl/tk slotting

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/hamlib-1.2.15.3-r1.ebuild,v 1.3 2015/03/25 14:11:17 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit autotools-utils eutils multilib python-single-r1
10
11 DESCRIPTION="Ham radio backend rig control libraries"
12 HOMEPAGE="http://sourceforge.net/apps/mediawiki/hamlib"
13 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14
15 LICENSE="LGPL-2 GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 x86 ~x86-fbsd"
18 IUSE="doc python tcl"
19
20 RESTRICT="test"
21
22 RDEPEND="
23 =virtual/libusb-0*
24 dev-libs/libxml2
25 python? ( ${PYTHON_DEPS} )
26 tcl? ( dev-lang/tcl:0= )"
27
28 DEPEND=" ${RDEPEND}
29 virtual/pkgconfig
30 dev-lang/swig
31 >=sys-devel/libtool-2.2
32 doc? ( app-doc/doxygen )"
33
34 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
35
36 DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer TODO)
37
38 pkg_setup() {
39 use python && python-single-r1_pkg_setup
40 }
41
42 src_prepare() {
43 # fix hardcoded libdir paths
44 sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
45 -e "s#fix}/include#fix}/include/hamlib#" \
46 hamlib.pc.in || die "sed failed"
47
48 # make building of documentation compatible with autotools-utils
49 sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
50
51 # fix tcl lib path
52 epatch "${FILESDIR}"/${PN}-1.2.11-bindings.diff
53
54 # use CXXFLAGS for building c++ components (bug #453240)
55 epatch "${FILESDIR}"/${P}-configure.diff
56
57 eautoreconf
58 }
59
60 src_configure() {
61 local myeconfargs=(
62 --libdir=/usr/$(get_libdir)/hamlib
63 --disable-static
64 --with-rpc-backends
65 --without-perl-binding
66 $(use_with python python-binding)
67 $(use_enable tcl tcl-binding)
68 --disable-silent-rules
69 )
70 autotools-utils_src_configure
71 }
72
73 src_compile() {
74 autotools-utils_src_compile
75 use doc && autotools-utils_src_compile html
76 }
77
78 src_install() {
79 use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/doc/html/")
80 autotools-utils_src_install
81
82 insinto /usr/$(get_libdir)/pkgconfig
83 doins "${AUTOTOOLS_BUILD_DIR}"/hamlib.pc || die "doins failed"
84
85 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
86 doenvd "${T}"/73hamlib || die "doenvd failed"
87 }

  ViewVC Help
Powered by ViewVC 1.1.20