forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.2.27
- Loading branch information
Showing
3 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST hugin-2015.0.0.tar.bz2 10611519 SHA256 2cd93c110be95d439f9e68653f3738d059a26f5c28973f75475ef59cbaa2cbbd SHA512 bb2acf4dea80d43280778f67594dd1ddb0c2e186bcbaafe460fe47e0bd464ae2191b9b25344245e7267316e602ac2179cc838a0dcecb0d408c2206890a5ab6a2 WHIRLPOOL f9d47da7962a19894f323b85084fc7fda925ed5041188ffb1fbcea09ce7719baa7b26c95c66ec22139d24b683d6b1cba8b821949c166814e435efc5fc0e0a11e | ||
DIST hugin-2016.0.0_rc1.tar.bz2 10507908 SHA256 1be18902e70d541a8b2d2855cff7ccd8ce5bdc3836a6185a5d94262392b4f533 SHA512 cb3326513153a7ae3471286baba52ff37d10cd75c52c9c7852c097a3760f8c0aeb3643a039ddddf60f13b3aae4b31d782f8f3d17380328fdfee4c6b94953d488 WHIRLPOOL 096f2dda5a6af476052079d9fff398cddf6bda630f921612e086190482d077dd997b195a0f340cf652179c6e340e48141055b2a87ad329b5d06badaef97c5f49 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
WX_GTK_VER="3.0" | ||
PYTHON_COMPAT=( python{2_7,3_3,3_4} ) | ||
|
||
inherit python-single-r1 wxwidgets versionator cmake-utils | ||
|
||
DESCRIPTION="GUI for the creation & processing of panoramic images" | ||
HOMEPAGE="http://hugin.sf.net" | ||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" | ||
|
||
LICENSE="GPL-2 SIFT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc ~x86" | ||
|
||
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" | ||
IUSE="debug lapack python sift $(echo ${LANGS//\ /\ linguas_})" | ||
|
||
CDEPEND=" | ||
!!dev-util/cocom | ||
dev-db/sqlite:3 | ||
>=dev-libs/boost-1.49.0-r1:0= | ||
dev-libs/zthread | ||
>=media-gfx/enblend-4.0 | ||
media-gfx/exiv2:= | ||
media-libs/freeglut | ||
media-libs/glew:= | ||
>=media-libs/libpano13-2.9.19_beta1:0= | ||
media-libs/libpng:0= | ||
media-libs/openexr:= | ||
media-libs/tiff:0 | ||
>=media-libs/vigra-1.9.0[openexr] | ||
sci-libs/fftw:= | ||
sys-libs/zlib | ||
virtual/glu | ||
virtual/jpeg:0 | ||
virtual/opengl | ||
x11-libs/wxGTK:3.0=[X,opengl] | ||
lapack? ( virtual/blas virtual/lapack ) | ||
sift? ( media-gfx/autopano-sift-C )" | ||
RDEPEND="${CDEPEND} | ||
media-libs/exiftool" | ||
DEPEND="${CDEPEND} | ||
dev-cpp/tclap | ||
sys-devel/gettext | ||
virtual/pkgconfig | ||
python? ( ${PYTHON_DEPS} >=dev-lang/swig-2.0.4 )" | ||
|
||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" | ||
|
||
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() { | ||
sed \ | ||
-e 's:-O3::g' \ | ||
-i src/celeste/CMakeLists.txt || die | ||
rm CMakeModules/{FindLAPACK,FindPkgConfig}.cmake || die | ||
|
||
cmake-utils_src_prepare | ||
} | ||
|
||
src_install() { | ||
cmake-utils_src_install | ||
use python && python_optimize | ||
|
||
for lang in ${LANGS} ; do | ||
case ${lang} in | ||
ca@valencia) dir=ca_ES@valencia;; | ||
*) dir=${lang};; | ||
esac | ||
use linguas_${lang} || rm -r "${D}"/usr/share/locale/${dir} | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters