diff options
Diffstat (limited to 'dev-embedded/libftdi/libftdi-9999.1.0.ebuild')
-rw-r--r-- | dev-embedded/libftdi/libftdi-9999.1.0.ebuild | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/dev-embedded/libftdi/libftdi-9999.1.0.ebuild b/dev-embedded/libftdi/libftdi-9999.1.0.ebuild index 6ba8212b7ee7..bf044e8abacb 100644 --- a/dev-embedded/libftdi/libftdi-9999.1.0.ebuild +++ b/dev-embedded/libftdi/libftdi-9999.1.0.ebuild @@ -1,9 +1,11 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-9999.1.0.ebuild,v 1.5 2011/10/20 15:40:57 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/libftdi/libftdi-9999.1.0.ebuild,v 1.6 2012/03/30 03:45:50 vapier Exp $ EAPI="2" +inherit cmake-utils + if [[ ${PV} == 9999* ]] ; then EGIT_REPO_URI="git://developer.intra2net.com/${PN}-${PV#9999.}" inherit git-2 autotools @@ -17,34 +19,27 @@ HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" LICENSE="LGPL-2" SLOT="0" -IUSE="cxx doc examples python static-libs" +IUSE="cxx doc examples python" -RDEPEND="virtual/libusb:1 +RDEPEND="virtual/libusb:0 cxx? ( dev-libs/boost ) python? ( dev-lang/python )" DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" -src_prepare() { - if [[ ${PV} == 9999* ]] ; then - mkdir -p m4 - eautoreconf - fi -} - src_configure() { - econf \ - --with-async-mode \ - $(use_enable cxx libftdipp) \ - $(use_with doc docs) \ - $(use_with examples) \ - $(use_enable python python-binding) \ - $(use_enable static-libs static) + mycmakeargs=( + $(cmake-utils_use cxx FTDIPP) + $(cmake-utils_use doc DOCUMENTATION) + $(cmake-utils_use examples EXAMPLES) + $(cmake-utils_use python PYTHON_BINDINGS) + -DCMAKE_SKIP_BUILD_RPATH=ON + ) + cmake-utils_src_configure } src_install() { - emake DESTDIR="${D}" install || die - use static-libs || find "${D}" -name '*.la' -delete + cmake-utils_src_install dodoc ChangeLog README if use doc ; then |