--- libftdi-9999.1.0.ebuild 2013-02-06 04:38:33.358386634 +0100 +++ libftdi-9999.1.0.ebuild 2013-02-06 05:17:36.698084349 +0100 @@ -6,11 +6,14 @@ inherit cmake-utils +MY_PN="${PN}1" +S="${WORKDIR}/${MY_PN}-${PV}" + if [[ ${PV} == 9999* ]] ; then EGIT_REPO_URI="git://developer.intra2net.com/${PN}-${PV#9999.}" inherit git-2 autotools else - SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${P}.tar.gz" + SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${MY_PN}-${PV}.tar.bz2" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" fi @@ -18,12 +21,13 @@ HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" LICENSE="LGPL-2" -SLOT="0" -IUSE="cxx doc examples python" +SLOT="1" +IUSE="cxx doc examples python utils" RDEPEND="virtual/libusb:0 cxx? ( dev-libs/boost ) - python? ( dev-lang/python )" + python? ( dev-lang/python ) + utils? ( !dev-embedded/ftdi_eeprom )" DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" @@ -40,6 +44,12 @@ src_install() { cmake-utils_src_install + if use utils ; then + newdoc ftdi_eeprom/example.conf ftdi_eeprom.example.conf + else + rm "${D}/usr/bin/ftdi_eeprom" + fi + dodoc ChangeLog README if use doc ; then