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

Contents of /media-libs/hamlib/hamlib-1.2.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Mar 26 06:16:23 2015 UTC (3 years, 8 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Drop old

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

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.ebuild,v 1.7 2015/03/25 15:58:23 jlec Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="python? 2"
7
8 inherit autotools-utils eutils multilib python
9
10 DESCRIPTION="Ham radio backend rig control libraries"
11 HOMEPAGE="http://sourceforge.net/apps/mediawiki/hamlib"
12 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
13
14 LICENSE="LGPL-2 GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 x86 ~x86-fbsd"
17 IUSE="doc python tcl"
18
19 RESTRICT="test"
20
21 RDEPEND="
22 =virtual/libusb-0*
23 dev-libs/libxml2
24 tcl? ( dev-lang/tcl:0 )"
25
26 DEPEND=" ${RDEPEND}
27 virtual/pkgconfig
28 dev-lang/swig
29 >=sys-devel/libtool-2.2
30 doc? ( app-doc/doxygen )"
31
32 DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer TODO)
33
34 pkg_setup() {
35 if use python; then
36 python_set_active_version 2
37 python_pkg_setup
38 fi
39 }
40
41 src_prepare() {
42 # fix hardcoded libdir paths
43 sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
44 -e "s#fix}/include#fix}/include/hamlib#" \
45 hamlib.pc.in || die "sed failed"
46
47 # make building of documentation compatible with autotools-utils
48 sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
49
50 # fix tcl lib path
51 epatch "${FILESDIR}"/${PN}-1.2.11-bindings.diff
52
53 eautoreconf
54 }
55
56 src_configure() {
57 local myeconfargs=(
58 --libdir=/usr/$(get_libdir)/hamlib
59 --disable-static
60 --with-rpc-backends
61 --without-perl-binding
62 $(use_with python python-binding)
63 $(use_enable tcl tcl-binding)
64 --disable-silent-rules
65 )
66 autotools-utils_src_configure
67 }
68
69 src_compile() {
70 autotools-utils_src_compile
71 use doc && autotools-utils_src_compile html
72 }
73
74 src_install() {
75 use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/doc/html/")
76 autotools-utils_src_install
77
78 insinto /usr/$(get_libdir)/pkgconfig
79 doins "${AUTOTOOLS_BUILD_DIR}"/hamlib.pc || die "doins failed"
80
81 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
82 doenvd "${T}"/73hamlib || die "doenvd failed"
83 }
84
85 pkg_postinst() {
86 use python && python_mod_optimize Hamlib.py
87 }
88
89 pkg_postrm() {
90 use python && python_mod_cleanup Hamlib.py
91 }

  ViewVC Help
Powered by ViewVC 1.1.20