1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit cmake-utils python eutils
9 if [[ ${PV} == 9999* ]] ; then
10 EGIT_REPO_URI="git://developer.intra2net.com/${PN}"
13 SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${P}.tar.gz"
14 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
17 DESCRIPTION="Userspace access to FTDI USB interface chips"
18 HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/"
22 IUSE="cxx doc examples python"
24 RDEPEND="virtual/libusb:0
25 cxx? ( dev-libs/boost )
26 python? ( dev-lang/python )"
28 python? ( dev-lang/swig )
29 doc? ( app-doc/doxygen )"
33 -e "s:[$]{PYTHON_LIB_INSTALL}/../site-packages:$(python_get_sitedir):" \
34 bindings/CMakeLists.txt || die
36 -e '/SET(LIB_SUFFIX /d' \
39 epatch "${FILESDIR}"/${P}-cmake-{include,version}.patch
44 $(cmake-utils_use cxx FTDIPP)
45 $(cmake-utils_use doc DOCUMENTATION)
46 $(cmake-utils_use examples EXAMPLES)
47 $(cmake-utils_use python PYTHON_BINDINGS)
48 -DCMAKE_SKIP_BUILD_RPATH=ON
50 cmake-utils_src_configure
54 cmake-utils_src_install
55 dodoc ChangeLog README
58 # Clean up crap man pages. #356369
59 rm -vf "${CMAKE_BUILD_DIR}"/doc/man/man3/{_,usb_,deprecated}*
61 doman "${CMAKE_BUILD_DIR}"/doc/man/man3/*
62 dohtml "${CMAKE_BUILD_DIR}"/doc/html/*
64 if use examples ; then