You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.8 KiB
89 lines
1.8 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI="6"
|
||
|
|
||
8 years ago
|
PYTHON_COMPAT=( python2_7 python3_{3,4} )
|
||
|
DISTUTILS_OPTIONAL=1
|
||
|
|
||
8 years ago
|
inherit distutils-r1 eutils qmake-utils
|
||
8 years ago
|
|
||
|
DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
|
||
|
HOMEPAGE="http://www.gnupg.org/related_software/gpgme"
|
||
8 years ago
|
SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2"
|
||
8 years ago
|
|
||
|
LICENSE="GPL-2 LGPL-2.1"
|
||
|
SLOT="1/11" # subslot = soname major version
|
||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||
8 years ago
|
IUSE="common-lisp static-libs cxx python qt5"
|
||
8 years ago
|
|
||
|
RDEPEND="app-crypt/gnupg
|
||
|
>=dev-libs/libassuan-2.0.2
|
||
|
>=dev-libs/libgpg-error-1.11
|
||
8 years ago
|
qt5? (
|
||
|
dev-qt/qtcore:5
|
||
|
!kde-apps/gpgmepp:4
|
||
|
!kde-apps/kdepimlibs:4
|
||
|
)
|
||
|
python? ( ${PYTHON_DEPS} )"
|
||
8 years ago
|
#doc? ( app-doc/doxygen[dot] )
|
||
|
DEPEND="${RDEPEND}
|
||
8 years ago
|
python? ( dev-lang/swig )
|
||
8 years ago
|
qt5? ( dev-qt/qttest:5 )"
|
||
8 years ago
|
|
||
|
REQUIRED_USE="qt5? ( cxx )"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-1.1.8-et_EE.patch
|
||
|
)
|
||
|
|
||
8 years ago
|
do_python() {
|
||
|
if use python; then
|
||
|
pushd lang/python > /dev/null || die
|
||
|
distutils-r1_src_${EBUILD_PHASE}
|
||
|
popd > /dev/null
|
||
|
fi
|
||
|
}
|
||
|
|
||
8 years ago
|
src_prepare() {
|
||
|
default
|
||
8 years ago
|
do_python
|
||
8 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
8 years ago
|
local languages=()
|
||
|
use common-lisp && languages+=( "cl" )
|
||
8 years ago
|
use cxx && languages+=( "cpp" )
|
||
|
if use qt5; then
|
||
|
languages+=( "qt" )
|
||
|
#use doc ||
|
||
8 years ago
|
export DOXYGEN=true
|
||
8 years ago
|
export MOC="$(qt5_get_bindir)/moc"
|
||
8 years ago
|
fi
|
||
|
|
||
|
econf \
|
||
|
--enable-languages="${languages[*]}" \
|
||
|
$(use_enable static-libs static)
|
||
8 years ago
|
|
||
|
use python && make -C lang/python prepare
|
||
|
|
||
|
do_python
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
default
|
||
|
do_python
|
||
8 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
8 years ago
|
do_python
|
||
8 years ago
|
prune_libtool_files
|
||
8 years ago
|
|
||
|
# backward compatibility for gentoo
|
||
|
# in the past we had slots
|
||
|
dodir /usr/include/gpgme
|
||
|
dosym ../gpgme.h /usr/include/gpgme/gpgme.h
|
||
8 years ago
|
}
|