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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 5 21:40:26 2009 UTC (9 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.13/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20