Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libdivecomputer: libdivecomputer-9999.ebuild ChangeLog
Date: Thu, 28 Mar 2013 18:43:35
Message-Id: 20130328184329.C81EF2171D@flycatcher.gentoo.org
1 tomwij 13/03/28 18:43:29
2
3 Modified: ChangeLog
4 Added: libdivecomputer-9999.ebuild
5 Log:
6 Added live ebuild for testing purposes.
7
8 (Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.2 dev-libs/libdivecomputer/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libdivecomputer/ChangeLog?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libdivecomputer/ChangeLog?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libdivecomputer/ChangeLog?r1=1.1&r2=1.2
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/libdivecomputer/ChangeLog,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- ChangeLog 28 Mar 2013 18:32:41 -0000 1.1
24 +++ ChangeLog 28 Mar 2013 18:43:29 -0000 1.2
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/libdivecomputer
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdivecomputer/ChangeLog,v 1.1 2013/03/28 18:32:41 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdivecomputer/ChangeLog,v 1.2 2013/03/28 18:43:29 tomwij Exp $
30 +
31 +*libdivecomputer-9999 (28 Mar 2013)
32 +
33 + 28 Mar 2013; Tom Wijsman <TomWij@g.o> +libdivecomputer-9999.ebuild:
34 + Added live ebuild for testing purposes.
35
36 *libdivecomputer-0.3.0 (28 Mar 2013)
37
38
39
40
41 1.1 dev-libs/libdivecomputer/libdivecomputer-9999.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libdivecomputer-9999.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild,v 1.1 2013/03/28 18:43:29 tomwij Exp $
51
52 EAPI="5"
53
54 if [[ ${PV} = *9999* ]]; then
55 EGIT_REPO_URI="git://libdivecomputer.git.sourceforge.net/gitroot/libdivecomputer/libdivecomputer"
56 GIT_ECLASS="git-2"
57 AUTOTOOLIZE=yes
58 fi
59
60 inherit eutils autotools-utils ${GIT_ECLASS}
61
62 if [[ ${PV} = *9999* ]]; then
63 SRC_URI=""
64 else
65 SRC_URI="http://www.divesoftware.org/libdc/releases/${P}.tar.gz"
66 fi
67
68 DESCRIPTION="Library for communication with dive computers from various manufacturers."
69 HOMEPAGE="http://www.divesoftware.org/libdc"
70 LICENSE="LGPL-2.1"
71
72 KEYWORDS=""
73 SLOT="0"
74 IUSE="usb examples +static-libs"
75
76 RDEPEND="usb? ( virtual/libusb )"
77 DEPEND="${RDEPEND}
78 virtual/pkgconfig"
79
80 AUTOTOOLS_IN_SOURCE_BUILD=1
81
82 src_prepare() {
83 if [[ -n ${AUTOTOOLIZE} ]]; then
84 eautoreconf
85 fi
86 }
87
88 src_configure() {
89 autotools-utils_src_configure
90
91 if use usb ; then
92 sed -i 's|#define HAVE_LIBUSB 1||' config.h || die "sed failed"
93 fi
94
95 if use examples ; then
96 sed -i 's|examples||' Makefile || die "sed failed"
97 fi
98 }
99
100 src_compile() {
101 autotools-utils_src_compile
102 }
103
104 src_install() {
105 autotools-utils_src_install
106 }