2013-03-04 02:16:24 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-04-16 08:00:15 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-03-04 02:16:24 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/lensfun/lensfun-0.2.5_p153-r1.ebuild,v 1.3 2013/03/03 11:05:34 vapier Exp $
|
2012-04-16 08:00:15 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
inherit python multilib cmake-utils
|
|
|
|
|
|
|
|
DESCRIPTION="lensfun: A library for rectifying and simulating photographic lens distortions"
|
|
|
|
HOMEPAGE="http://lensfun.berlios.de/"
|
|
|
|
SRC_URI="http://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.xz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-3"
|
|
|
|
SLOT="0"
|
2013-03-04 02:16:24 +04:00
|
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
|
2012-04-16 08:00:15 +04:00
|
|
|
IUSE="doc"
|
|
|
|
|
|
|
|
RDEPEND=">=dev-libs/glib-2
|
|
|
|
>=media-libs/libpng-1.2"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
|
2012-05-11 09:53:47 +04:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${P}-build.patch"
|
|
|
|
"${FILESDIR}/${P}-pc.patch"
|
|
|
|
)
|
2012-04-16 08:00:15 +04:00
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
python_set_active_version 2
|
|
|
|
python_pkg_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
mycmakeargs=(
|
|
|
|
$(cmake-utils_use_build doc)
|
|
|
|
-DLIBDIR=$(get_libdir)
|
|
|
|
-DDOCDIR=/usr/share/doc/${P}
|
|
|
|
)
|
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|