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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Mar 21 19:53:05 2011 UTC (7 years, 4 months ago) by tomjbe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump. Remove old versions.

(Portage version: 2.1.9.44/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.12.ebuild,v 1.1 2010/09/10 18:47:21 tomjbe Exp $
4
5 PYTHON_DEPEND="2"
6 inherit autotools eutils multilib python
7
8 DESCRIPTION="Ham radio backend rig control libraries"
9 HOMEPAGE="http://sourceforge.net/apps/mediawiki/hamlib"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="LGPL-2 GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~x86-fbsd"
15 IUSE="doc python tcl"
16
17 RESTRICT="test"
18
19 RDEPEND="
20 =virtual/libusb-0*
21 dev-libs/libxml2
22 python? ( dev-lang/python )
23 tcl? ( dev-lang/tcl )"
24
25 DEPEND=" ${RDEPEND}
26 dev-util/pkgconfig
27 dev-lang/swig
28 >=sys-devel/libtool-2.2
29 doc? ( app-doc/doxygen )"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 # fix hardcoded libdir paths
36 sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
37 -e "s#fix}/include#fix}/include/hamlib#" \
38 hamlib.pc.in || die "sed failed"
39
40 # fix tcl lib path
41 epatch "${FILESDIR}"/${PN}-1.2.11-bindings.diff
42
43 eautoreconf
44 }
45
46 src_compile() {
47 econf \
48 --libdir=/usr/$(get_libdir)/hamlib \
49 --disable-static \
50 --with-rpc-backends \
51 --without-perl-binding \
52 $(use_with python python-binding) \
53 $(use_enable tcl tcl-binding)
54
55 emake || die "emake failed"
56
57 if use doc ; then
58 cd doc && make doc || die "make doc failed"
59 fi
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install || die "emake install failed"
64
65 dodoc AUTHORS PLAN README README.betatester \
66 README.developer NEWS TODO || die "dodoc failed"
67
68 if use doc; then
69 dohtml doc/html/* || die "dohtml failed"
70 fi
71
72 insinto /usr/$(get_libdir)/pkgconfig
73 doins hamlib.pc || die "doins failed"
74
75 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
76 doenvd "${T}"/73hamlib || die "doenvd failed"
77 }

  ViewVC Help
Powered by ViewVC 1.1.20