1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 if [[ ${PV} = *9999* ]]; then
8 EGIT_REPO_URI="git://libdivecomputer.git.sourceforge.net/gitroot/libdivecomputer/libdivecomputer"
13 KEYWORDS="~amd64 ~x86"
16 AUTOTOOLS_IN_SOURCE_BUILD=1
17 inherit eutils autotools-utils ${GIT_ECLASS}
19 if [[ ${PV} = *9999* ]]; then
22 SRC_URI="http://www.divesoftware.org/libdc/releases/${P}.tar.gz"
25 DESCRIPTION="Library for communication with dive computers from various manufacturers"
26 HOMEPAGE="http://www.divesoftware.org/libdc"
30 IUSE="usb +static-libs -tools"
32 RDEPEND="usb? ( virtual/libusb:1 )"
37 if [[ -n ${AUTOTOOLIZE} ]]; then
38 autotools-utils_src_prepare
45 autotools-utils_src_configure
48 sed -i 's|examples||' Makefile || die "sed failed"
53 autotools-utils_src_compile
57 autotools-utils_src_install
60 einfo "prefixing tools with 'dctool_'"
63 mv "${file}" "dctool_${file}" || die "prefixing tools failed"
71 elog "The 'tools' USE flag has been enabled,"
72 elog "to avoid file collisions, all ${PN}"
73 elog "related tools have been prefixed with 'dctool_'"