Fixed #558714
authorSławomir Lis <slis@gentoo.org>
Fri, 28 Aug 2015 06:29:22 +0000 (08:29 +0200)
committerSławomir Lis <slis@gentoo.org>
Fri, 28 Aug 2015 06:29:22 +0000 (08:29 +0200)
Added 'examples' USE flag and conditional depend on sys-cluster/mpich2

Package-Manager: portage-2.2.20.1

sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild

index cb6d7b6c66e47798be42aa52150e1c3234c5d3f0..0f2d29fa16e23e9391c6fa5a941a20c2f20661d0 100644 (file)
@@ -13,16 +13,20 @@ SRC_URI="http://www.libgeodecomp.org/archive/${P}.tar.bz2"
 SLOT="0"
 LICENSE="Boost-1.0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="doc"
+IUSE="doc examples"
 
 RDEPEND=">=dev-libs/boost-1.48"
 DEPEND="${RDEPEND}
-       dev-libs/libflatarray"
+       dev-libs/libflatarray
+       examples? ( !sys-cluster/mpich2 )"
 
 S="${WORKDIR}/${P}/src"
 
 src_prepare() {
        epatch "${FILESDIR}/libflatarray.patch"
+       if ! use examples ; then
+               sed -i 's/examples//g' CMakeLists.txt
+       fi
 }
 
 src_compile() {