1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
9 GENTOO_DEPEND_ON_PERL="no"
10 inherit eutils perl-module python-any-r1 cmake-multilib
12 DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems"
13 HOMEPAGE="http://graphite.sil.org/"
14 SRC_URI="mirror://sourceforge/silgraphite/${PN}/${P}.tgz"
18 KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
22 perl? ( dev-lang/perl:= )
27 dev-perl/Locale-Maketext-Lexicon
32 media-libs/silgraphite
34 perl? ( virtual/perl-Test-Simple )
39 "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch"
42 # tests fail, especially on multilib systems, fixed in 1.3.5-r1 but needs additional dependencies
46 use perl && perl_set_version
47 use test && python-any-r1_pkg_setup
51 cmake-utils_src_prepare
61 multilib_src_configure() {
63 "-DVM_MACHINE_TYPE=direct"
64 # http://sourceforge.net/p/silgraphite/bugs/49/
65 $([[ ${CHOST} == powerpc*-apple* ]] && \
66 echo "-DGRAPHITE2_NSEGCACHE:BOOL=ON")
69 cmake-utils_src_configure
72 if multilib_is_native_abi && use perl; then
73 _cmake_check_build_dir init
75 -e "s:@BUILD_DIR@:\"${BUILD_DIR}/src\":" \
76 "${S}"/contrib/perl/Build.PL || die
81 cmake-multilib_src_compile
83 cd contrib/perl || die
84 perl-module_src_configure
85 perl-module_src_compile
90 cmake-multilib_src_test
92 cd contrib/perl || die
98 cmake-multilib_src_install
100 cd contrib/perl || die
101 perl-module_src_install
105 prune_libtool_files --all