hugin-2016.0.0.ebuild 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. WX_GTK_VER="3.0"
  5. PYTHON_COMPAT=( python{2_7,3_4} )
  6. inherit python-single-r1 wxwidgets versionator cmake-utils
  7. DESCRIPTION="GUI for the creation & processing of panoramic images"
  8. HOMEPAGE="http://hugin.sf.net"
  9. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
  10. LICENSE="GPL-2 SIFT"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~ppc ~x86"
  13. LANGS=" ca@valencia ca_ES cs_CZ da de en_GB es eu fi fr hu it ja nl pl pt_BR ro ru sk sv zh_CN zh_TW"
  14. IUSE="debug lapack python sift $(echo ${LANGS//\ /\ linguas_})"
  15. CDEPEND="
  16. !!dev-util/cocom
  17. dev-db/sqlite:3
  18. >=dev-libs/boost-1.49.0-r1:0=
  19. dev-libs/zthread
  20. >=media-gfx/enblend-4.0
  21. media-gfx/exiv2:=
  22. media-libs/freeglut
  23. media-libs/glew:=
  24. >=media-libs/libpano13-2.9.19_beta1:0=
  25. media-libs/libpng:0=
  26. media-libs/openexr:=
  27. media-libs/tiff:0
  28. >=media-libs/vigra-1.9.0[openexr]
  29. sci-libs/fftw:=
  30. sys-libs/zlib
  31. virtual/glu
  32. virtual/jpeg:0
  33. virtual/opengl
  34. x11-libs/wxGTK:3.0=[X,opengl]
  35. lapack? ( virtual/blas virtual/lapack )
  36. sift? ( media-gfx/autopano-sift-C )"
  37. RDEPEND="${CDEPEND}
  38. media-libs/exiftool"
  39. DEPEND="${CDEPEND}
  40. dev-cpp/tclap
  41. sys-devel/gettext
  42. virtual/pkgconfig
  43. python? ( ${PYTHON_DEPS} >=dev-lang/swig-2.0.4 )"
  44. REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
  45. S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)
  46. pkg_setup() {
  47. DOCS="authors.txt README TODO"
  48. mycmakeargs=(
  49. -DBUILD_HSI=$(usex python ON OFF)
  50. -DENABLE_LAPACK=$(usex lapack ON OFF)
  51. )
  52. use python && python-single-r1_pkg_setup
  53. }
  54. src_prepare() {
  55. sed \
  56. -e 's:-O3::g' \
  57. -i src/celeste/CMakeLists.txt || die
  58. rm CMakeModules/{FindLAPACK,FindPkgConfig}.cmake || die
  59. cmake-utils_src_prepare
  60. }
  61. src_install() {
  62. cmake-utils_src_install
  63. use python && python_optimize
  64. for lang in ${LANGS} ; do
  65. case ${lang} in
  66. ca@valencia) dir=ca_ES@valencia;;
  67. *) dir=${lang};;
  68. esac
  69. use linguas_${lang} || rm -r "${D}"/usr/share/locale/${dir}
  70. done
  71. }