Gentoo Archives: gentoo-commits

From: "Thomas Beierlein (tomjbe)" <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/hamlib: ChangeLog hamlib-1.2.15.ebuild
Date: Mon, 06 Feb 2012 13:12:15
Message-Id: 20120206131206.486752004B@flycatcher.gentoo.org
1 tomjbe 12/02/06 13:12:06
2
3 Modified: ChangeLog
4 Added: hamlib-1.2.15.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.10.45/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.65 media-libs/hamlib/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/hamlib/ChangeLog?rev=1.65&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/hamlib/ChangeLog?rev=1.65&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/hamlib/ChangeLog?r1=1.64&r2=1.65
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v
20 retrieving revision 1.64
21 retrieving revision 1.65
22 diff -u -r1.64 -r1.65
23 --- ChangeLog 28 Jan 2012 15:35:37 -0000 1.64
24 +++ ChangeLog 6 Feb 2012 13:12:06 -0000 1.65
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/hamlib
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v 1.64 2012/01/28 15:35:37 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/ChangeLog,v 1.65 2012/02/06 13:12:06 tomjbe Exp $
30 +
31 +*hamlib-1.2.15 (06 Feb 2012)
32 +
33 + 06 Feb 2012; Thomas Beierlein <tomjbe@g.o> +hamlib-1.2.15.ebuild:
34 + Version bump
35
36 28 Jan 2012; Pawel Hajdan jr <phajdan.jr@g.o> hamlib-1.2.14.ebuild:
37 x86 stable wrt bug #400377
38
39
40
41 1.1 media-libs/hamlib/hamlib-1.2.15.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/hamlib/hamlib-1.2.15.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/hamlib/hamlib-1.2.15.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hamlib-1.2.15.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/hamlib/hamlib-1.2.15.ebuild,v 1.1 2012/02/06 13:12:06 tomjbe Exp $
51
52 EAPI="3"
53 PYTHON_DEPEND="python? 2"
54
55 inherit autotools-utils eutils multilib python
56
57 DESCRIPTION="Ham radio backend rig control libraries"
58 HOMEPAGE="http://sourceforge.net/apps/mediawiki/hamlib"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
60
61 LICENSE="LGPL-2 GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~x86 ~x86-fbsd"
64 IUSE="doc python tcl"
65
66 RESTRICT="test"
67
68 RDEPEND="
69 =virtual/libusb-0*
70 dev-libs/libxml2
71 tcl? ( dev-lang/tcl )"
72
73 DEPEND=" ${RDEPEND}
74 dev-util/pkgconfig
75 dev-lang/swig
76 >=sys-devel/libtool-2.2
77 doc? ( app-doc/doxygen )"
78
79 DOCS=(AUTHORS NEWS PLAN README README.betatester README.developer TODO)
80
81 pkg_setup() {
82 if use python; then
83 python_set_active_version 2
84 python_pkg_setup
85 fi
86 }
87
88 src_prepare() {
89 # fix hardcoded libdir paths
90 sed -i -e "s#fix}/lib#fix}/$(get_libdir)/hamlib#" \
91 -e "s#fix}/include#fix}/include/hamlib#" \
92 hamlib.pc.in || die "sed failed"
93
94 # make building of documentation compatible with autotools-utils
95 sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"
96
97 # fix tcl lib path
98 epatch "${FILESDIR}"/${PN}-1.2.11-bindings.diff
99
100 eautoreconf
101 }
102
103 src_configure() {
104 local myeconfargs=(
105 --libdir=/usr/$(get_libdir)/hamlib
106 --disable-static
107 --with-rpc-backends
108 --without-perl-binding
109 $(use_with python python-binding)
110 $(use_enable tcl tcl-binding)
111 )
112 autotools-utils_src_configure
113 }
114
115 src_compile() {
116 autotools-utils_src_compile
117 use doc && autotools-utils_src_compile html
118 }
119
120 src_install() {
121 use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/doc/html/")
122 autotools-utils_src_install
123
124 insinto /usr/$(get_libdir)/pkgconfig
125 doins "${AUTOTOOLS_BUILD_DIR}"/hamlib.pc || die "doins failed"
126
127 echo "LDPATH=/usr/$(get_libdir)/hamlib" > "${T}"/73hamlib
128 doenvd "${T}"/73hamlib || die "doenvd failed"
129 }
130
131 pkg_postinst() {
132 use python && python_mod_optimize Hamlib.py
133 }
134
135 pkg_postrm() {
136 use python && python_mod_cleanup Hamlib.py
137 }