2012-10-08 10:40:49 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-10 23:59:40 +03:00
|
|
|
# $Id$
|
2012-10-08 10:40:49 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
ESVN_PROJECT=g15tools/trunk
|
|
|
|
ESVN_REPO_URI="https://g15tools.svn.sourceforge.net/svnroot/${ESVN_PROJECT}/${PN}"
|
|
|
|
|
|
|
|
inherit subversion base eutils autotools
|
|
|
|
|
|
|
|
DESCRIPTION="The libg15 library gives low-level access to the Logitech G15 keyboard"
|
|
|
|
HOMEPAGE="http://g15tools.sourceforge.net/"
|
2012-10-13 15:28:55 +04:00
|
|
|
[[ $PV = *9999* ]] || SRC_URI="mirror://sourceforge/g15tools/${P}.tar.bz2"
|
2012-10-08 10:40:49 +04:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2012-10-13 15:28:55 +04:00
|
|
|
KEYWORDS=""
|
2012-10-08 10:40:49 +04:00
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="=virtual/libusb-0*"
|
|
|
|
RDEPEND=${DEPEND}
|
|
|
|
|
|
|
|
DOCS=( AUTHORS README ChangeLog )
|
|
|
|
|
2012-10-13 15:28:55 +04:00
|
|
|
PATCHES=( "${FILESDIR}"/g15tools.patch )
|
|
|
|
|
2012-10-08 10:40:49 +04:00
|
|
|
src_unpack() {
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
subversion_src_unpack
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
subversion_wc_info
|
|
|
|
fi
|
|
|
|
base_src_prepare
|
|
|
|
if [[ ${PV} = *9999* ]]; then
|
|
|
|
eautoreconf
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
--disable-static
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
|
|
|
}
|