summaryrefslogtreecommitdiff
path: root/media-gfx
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-11-21 12:52:10 +0100
committerLars Wendler <polynomial-c@gentoo.org>2016-11-21 12:52:10 +0100
commit119036dec5d2379576f0037aa02fa102f5906408 (patch)
tree9d7b8bb0428da134c78d72fd55b9c7f6eba81eb4 /media-gfx
parent256854eea2c7f903d0609bca9e1e8e8342284e95 (diff)
downloadgentoo-119036dec5d2379576f0037aa02fa102f5906408.tar.gz
gentoo-119036dec5d2379576f0037aa02fa102f5906408.tar.xz
media-gfx/graphite2: Bump to version 1.3.9
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/graphite2/Manifest1
-rw-r--r--media-gfx/graphite2/graphite2-1.3.9.ebuild120
2 files changed, 121 insertions, 0 deletions
diff --git a/media-gfx/graphite2/Manifest b/media-gfx/graphite2/Manifest
index b034b4fcfdd..ea97524ecdb 100644
--- a/media-gfx/graphite2/Manifest
+++ b/media-gfx/graphite2/Manifest
@@ -1,3 +1,4 @@
DIST graphite2-1.3.5.tgz 3880214 SHA256 f4712626eda0a1804367133460770560b545bbe75b1c4aab480c9b8e4e1c64bd SHA512 70e85ff44d63dcca6beb55aa68966888453610c4ec1fca0d0986910a8f396ad64fd0b9f393270fd403c93e7e5d45cdc134c3965f47761cd40cd659b92b8abcec WHIRLPOOL 90f5e9858c63f9c452b8457dc5dac9cb78d319dd2bfd13207bbe7e73b60dbfa701be5c17cabe4e11ce2d1be8e0054c23186834425f40d614a1002c3eff2bdcc5
DIST graphite2-1.3.7.tgz 3883666 SHA256 4d5b7ad6ae137f0c57e4ab3da4e438b7922c6c6e083cc05a3a28bd8774235586 SHA512 163ac1455003398690b173f2ce56509bba1ae1e480585635888e3b061fef1ff8493c86f4647efde65ea10cd82b4048fcc8e882ea56811a8169956ad27bd10b8f WHIRLPOOL 32c0e857c3a632e599c6057f655f3d22f2272325f1a3fd6de5d4dad754ccb750687e3c76b5a6b3af037b561c34bc8b9b081b9c5f15e14551a67cb152c23d9a3a
DIST graphite2-1.3.8.tgz 3885841 SHA256 9f3f25b3a8495ce0782e77f69075c0dd9b7c054847b9bf9ff130bec38f4c8cc2 SHA512 df8a3a7b67b356092fe8d4f62b7cd6d45ee7fe2b614699b0f8b29dc2441e00675021fdaec24cef4629c5294b33d6b269d596bc869fae8257f8f2e935c9db3639 WHIRLPOOL 88420608db053bd4d66b852a54eeb19359910c786ef1785e303e68f0d0d5b840b4a5cdcb7e17ae6c2064563d02b03a7be43ae203184218a8ac4d9dd40c17c56f
+DIST graphite2-1.3.9.tgz 3889102 SHA256 ec0185b663059553fd46e8c4a4f0dede60a02f13a7a1fefc2ce70332ea814567 SHA512 6585a2b69b8226d6e9ba9ef67d94497b24f09b7ca64357c5455c276cf6f0dd3eb7fc05f5fbc79d0bb5e62ecd44e9e19bc4f4c20f7a1d9d6eeb2f89f67af5f1ac WHIRLPOOL b0ca8ca8b79319cf8806c4e0ee4bf61b240c6537c66cd57d191d74e2001b2eeb91ab19db3bf28aaddb9ab916e3f073fefd51bba3cb96f6b2ebde5a28c0bf3ea1
diff --git a/media-gfx/graphite2/graphite2-1.3.9.ebuild b/media-gfx/graphite2/graphite2-1.3.9.ebuild
new file mode 100644
index 00000000000..8330984e082
--- /dev/null
+++ b/media-gfx/graphite2/graphite2-1.3.9.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+GENTOO_DEPEND_ON_PERL="no"
+inherit eutils perl-module python-any-r1 cmake-multilib
+
+DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems"
+HOMEPAGE="http://graphite.sil.org/"
+SRC_URI="mirror://sourceforge/silgraphite/${PN}/${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="perl test"
+
+RDEPEND="
+ perl? ( dev-lang/perl:= )
+"
+DEPEND="${RDEPEND}
+ perl? (
+ dev-perl/Module-Build
+ dev-perl/Locale-Maketext-Lexicon
+ )
+ test? (
+ dev-libs/glib:2
+ media-libs/fontconfig
+ media-libs/silgraphite
+ $(python_gen_any_dep '
+ dev-python/fonttools[${PYTHON_USEDEP}]
+ ')
+ ${PYTHON_DEPS}
+ perl? ( virtual/perl-Test-Simple )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch"
+)
+
+pkg_setup() {
+ use perl && perl_set_version
+ use test && python-any-r1_pkg_setup
+}
+
+python_check_deps() {
+ has_version "dev-python/fonttools[${PYTHON_USEDEP}]"
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # make tests optional
+ if ! use test; then
+ sed -i \
+ -e '/tests/d' \
+ CMakeLists.txt || die
+ fi
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ "-DVM_MACHINE_TYPE=direct"
+ # https://sourceforge.net/p/silgraphite/bugs/49/
+ $([[ ${CHOST} == powerpc*-apple* ]] && \
+ echo "-DGRAPHITE2_NSEGCACHE:BOOL=ON")
+ )
+
+ cmake-utils_src_configure
+
+ # fix perl linking
+ if multilib_is_native_abi && use perl; then
+ # we rely on the fact that cmake-utils_src_configure sets BUILD_DIR
+ sed -i \
+ -e "s:@BUILD_DIR@:\"${BUILD_DIR}/src\":" \
+ "${S}"/contrib/perl/Build.PL || die
+ fi
+}
+
+src_compile() {
+ cmake-multilib_src_compile
+ if use perl; then
+ cd contrib/perl || die
+ perl-module_src_configure
+ perl-module_src_compile
+ fi
+}
+
+multilib_src_test() {
+ if multilib_is_native_abi; then
+ cmake-utils_src_test
+ else
+ einfo Cannot test since python is not multilib.
+ fi
+}
+
+src_test() {
+ cmake-multilib_src_test
+ if use perl; then
+ cd contrib/perl || die
+ # SRC_TEST=do
+ # Perl tests fail due to missing POD coverage...
+ perl-module_src_test
+ fi
+}
+
+src_install() {
+ cmake-multilib_src_install
+ if use perl; then
+ cd contrib/perl || die
+ perl-module_src_install
+ perl_delete_localpod
+ fi
+
+ prune_libtool_files --all
+}