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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Aug 7 18:41:58 2012 UTC (6 years, 4 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.13.ebuild,v 1.4 2012/05/04 12:13:53 tomjbe 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="~alpha ~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 )"
25
26 DEPEND=" ${RDEPEND}
27 virtual/pkgconfig
28 dev-lang/swig
29 >=sys-devel/libtool-2.2
30 doc? ( app-doc/doxygen )"
31
32 pkg_setup() {
33 if use python; then
34 python_set_active_version 2
35 python_pkg_setup
36 fi
37 }
38
39 src_prepare() {
40 # fix hardcoded libdir paths
41 sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
42 -e "s#fix}/include#fix}/include/hamlib#" \
43 hamlib.pc.in || die "sed failed"
44
45 # fix tcl lib path
46 epatch "${FILESDIR}"/${PN}-1.2.11-bindings.diff
47
48 eautoreconf
49 }
50
51 src_configure() {
52 econf \
53 --libdir=/usr/$(get_libdir)/hamlib \
54 --disable-static \
55 --with-rpc-backends \
56 --without-perl-binding \
57 $(use_with python python-binding) \
58 $(use_enable tcl tcl-binding)
59 }
60
61 src_compile() {
62 emake || die "emake failed"
63
64 if use doc ; then
65 cd doc && make doc || die "make doc failed"
66 fi
67 }
68
69 src_install() {
70 emake DESTDIR="${D}" install || die "emake install failed"
71 remove_libtool_files all
72
73 dodoc AUTHORS NEWS PLAN README README.betatester \
74 README.developer TODO || die "dodoc failed"
75
76 if use doc; then
77 dohtml doc/html/* || die "dohtml failed"
78 fi
79
80 insinto /usr/$(get_libdir)/pkgconfig
81 doins hamlib.pc || die "doins failed"
82
83 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
84 doenvd "${T}"/73hamlib || die "doenvd failed"
85 }
86
87 pkg_postinst() {
88 use python && python_mod_optimize Hamlib.py
89 }
90
91 pkg_postrm() {
92 use python && python_mod_cleanup Hamlib.py
93 }

  ViewVC Help
Powered by ViewVC 1.1.20