diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-09-18 12:02:41 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-11-06 19:11:41 +0100 |
commit | fd38427c4c5a3fb50e6110a9a1b4eed3141505ca (patch) | |
tree | 7f2dde9dd162f21a697c9d178859828e0eabbdb3 /media-gfx/hugin/hugin-9999.ebuild | |
parent | net-misc/x2goclient: Drop old (diff) | |
download | gentoo-fd38427c4c5a3fb50e6110a9a1b4eed3141505ca.tar.gz gentoo-fd38427c4c5a3fb50e6110a9a1b4eed3141505ca.tar.bz2 gentoo-fd38427c4c5a3fb50e6110a9a1b4eed3141505ca.zip |
media-gfx/hugin: Switch to EAPI 6, python3_5
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2354
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-gfx/hugin/hugin-9999.ebuild')
-rw-r--r-- | media-gfx/hugin/hugin-9999.ebuild | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/media-gfx/hugin/hugin-9999.ebuild b/media-gfx/hugin/hugin-9999.ebuild index b739963cb344..d40c3e79363d 100644 --- a/media-gfx/hugin/hugin-9999.ebuild +++ b/media-gfx/hugin/hugin-9999.ebuild @@ -2,10 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 WX_GTK_VER="3.0" -PYTHON_COMPAT=( python{2_7,3_4} ) +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) inherit mercurial python-single-r1 wxwidgets versionator cmake-utils @@ -25,7 +25,7 @@ IUSE="debug lapack python sift $(echo ${LANGS//\ /\ l10n_})" CDEPEND=" !!dev-util/cocom dev-db/sqlite:3 - >=dev-libs/boost-1.49.0-r1:0= + dev-libs/boost:= dev-libs/zthread >=media-gfx/enblend-4.0 media-gfx/exiv2:= @@ -36,7 +36,7 @@ CDEPEND=" media-libs/openexr:= media-libs/tiff:0 >=media-libs/vigra-1.9.0[openexr] - sci-libs/fftw:= + sci-libs/fftw:3.0= sys-libs/zlib virtual/glu virtual/jpeg:0 @@ -54,27 +54,32 @@ DEPEND="${CDEPEND} REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +DOCS=( authors.txt README TODO ) + S=${WORKDIR}/${PN}-$(get_version_component_range 1-3) pkg_setup() { - DOCS="authors.txt README TODO" - mycmakeargs=( - -DBUILD_HSI=$(usex python ON OFF) - -DENABLE_LAPACK=$(usex lapack ON OFF) - ) use python && python-single-r1_pkg_setup } src_prepare() { + cmake-utils_src_prepare rm CMakeModules/{FindLAPACK,FindPkgConfig}.cmake || die +} - cmake-utils_src_prepare +src_configure() { + local mycmakeargs=( + -DBUILD_HSI=$(usex python) + -DENABLE_LAPACK=$(usex lapack) + ) + cmake-utils_src_configure } src_install() { cmake-utils_src_install use python && python_optimize + local lang for lang in ${LANGS} ; do case ${lang} in ca) dir=ca_ES;; @@ -82,6 +87,8 @@ src_install() { cs) dir=cs_CZ;; *) dir=${lang/-/_};; esac - use l10n_${lang} || rm -r "${D}"/usr/share/locale/${dir} + if ! use l10n_${lang} ; then + rm -r "${ED%/}"/usr/share/locale/${dir} || die + fi done } |