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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Jun 10 14:45:12 2008 UTC (10 years, 4 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump from Sunrise's portage-review. Remove unnecessary USE flag X and gd, since rigmatrix doesn't get built. Thanks to Thomas Beierlein wrt #219057.
(Portage version: 2.1.5.4)

1 # Copyright 1999-2007 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.5.ebuild,v 1.4 2007/04/11 19:14:28 phreak Exp $
4
5 inherit eutils multilib
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="GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
14 IUSE="doc gd python tk X"
15
16 RESTRICT="test"
17
18 RDEPEND="virtual/libc
19 gd? ( media-libs/gd )
20 python? ( dev-lang/python
21 dev-lang/tcl )
22 tk? ( dev-lang/tk )"
23 DEPEND=">=sys-devel/libtool-1.5
24 >=sys-devel/autoconf-2.54
25 >=sys-devel/automake-1.7
26 >=dev-util/pkgconfig-0.15
27 >=dev-lang/swig-1.3.14
28 dev-libs/libxml2
29 doc? ( >=app-doc/doxygen-1.3.5 )"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 epatch "${FILESDIR}"/${PN}-pkgconfig-fix.diff || \
36 die "epatch failed"
37 }
38
39 src_compile() {
40 econf \
41 --libdir=/usr/$(get_libdir)/hamlib \
42 --disable-static \
43 --with-microtune \
44 --without-rpc-backends \
45 --without-perl-binding \
46 $(use_with python python-binding) \
47 $(use_with tk tcl-binding) \
48 $(use_with gd rigmatrix) \
49 $(use_with X x) \
50 || die "configure failed"
51
52 emake || die "emake failed"
53
54 if use doc ; then
55 cd doc && make doc || die "make doc failed"
56 fi
57 }
58
59 src_install() {
60 einstall \
61 libdir="${D}"/usr/$(get_libdir)/hamlib || \
62 die "einstall failed"
63
64 dodoc AUTHORS PLAN README README.betatester \
65 README.developer LICENSE NEWS TODO
66
67 if use doc; then
68 dohtml doc/html/*
69 doman doc/man/man3/*
70 fi
71
72 insinto /usr/$(get_libdir)/pkgconfig
73 doins hamlib.pc
74
75 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
76 doenvd "${T}"/73hamlib
77 }

  ViewVC Help
Powered by ViewVC 1.1.20