media-libs/jasper: Update live ebuild
authorDavid Seifert <soap@gentoo.org>
Wed, 7 Dec 2016 19:35:12 +0000 (20:35 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 7 Dec 2016 19:58:51 +0000 (20:58 +0100)
Package-Manager: portage-2.3.3

media-libs/jasper/jasper-9999.ebuild

index 7c007cdc115fb71f80c16b64ec97e8a0565a9386..3ce95c921b70d34b192271966ae6a1207dfa9c21 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=6
 
-inherit autotools multilib-minimal
+inherit cmake-multilib
 
 DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
 HOMEPAGE="http://www.ece.uvic.ca/~mdadams/jasper/"
@@ -24,36 +24,36 @@ fi
 : ${JASPER_MEM_LIMIT:=134217728}
 
 LICENSE="JasPer2.0"
-SLOT="0/1"
-IUSE="jpeg opengl static-libs"
+SLOT="0"
+IUSE="doc jpeg opengl"
 
 RDEPEND="
        jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
        opengl? (
                >=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
                >=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
-               virtual/glu
+               virtual/glu[${MULTILIB_USEDEP}]
+               x11-libs/libXi[${MULTILIB_USEDEP}]
+               x11-libs/libXmu[${MULTILIB_USEDEP}]
        )"
 DEPEND="${RDEPEND}
-       app-arch/unzip"
-
-src_prepare() {
-       default
-       eautoreconf
-}
+       doc? ( app-doc/doxygen )"
 
 multilib_src_configure() {
-       ECONF_SOURCE="${S}" econf \
-               $(use_enable jpeg libjpeg) \
-               $(use_enable opengl) \
-               $(use_enable static-libs static) \
-               --enable-memory-limit="${JASPER_MEM_LIMIT}"
-}
-
-multilib_src_install_all() {
-       einstalldocs
-       dodoc -r doc/.
-
-       # package provides .pc files
-       find "${D}" -name '*.la' -delete || die
+       local mycmakeargs=(
+               -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
+               -DALLOW_IN_SOURCE_BUILD=OFF
+               -DBASH_PROGRAM="${EPREFIX}"/bin/bash
+               -DJAS_ENABLE_ASAN=OFF
+               -DJAS_ENABLE_LIBJPEG=$(usex jpeg)
+               -DJAS_ENABLE_LSAN=OFF
+               -DJAS_ENABLE_MSAN=OFF
+               -DJAS_ENABLE_OPENGL=$(usex opengl)
+               -DJAS_ENABLE_SHARED=ON
+               -DJAS_ENABLE_STRICT=ON
+               -DJAS_ENABLE_USAN=OFF
+               -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}
+               -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
+       )
+       cmake-utils_src_configure
 }