summaryrefslogtreecommitdiff
path: root/media-gfx/graphite2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/graphite2
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/graphite2')
-rw-r--r--media-gfx/graphite2/Manifest6
-rw-r--r--media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch14
-rw-r--r--media-gfx/graphite2/graphite2-1.3.10.ebuild118
-rw-r--r--media-gfx/graphite2/metadata.xml11
4 files changed, 149 insertions, 0 deletions
diff --git a/media-gfx/graphite2/Manifest b/media-gfx/graphite2/Manifest
new file mode 100644
index 000000000000..0042469f1c0a
--- /dev/null
+++ b/media-gfx/graphite2/Manifest
@@ -0,0 +1,6 @@
+AUX graphite2-1.3.5-includes-libs-perl.patch 836 SHA256 050696b93d5a93b3f4631ed4ac73e5e43b3116bdf01dfcd76690b842794af4dc SHA512 26ab6dda13d758a5e4237c8b5d207d3c5111afbb11b2c3984cd742913c3c7932559b23b5ea9f774f1c6373eb0f761a9400dccc95876740b3cd06c44084a10965 WHIRLPOOL 2dac8975ed0a308c2a4f978b3ce07634c7ec11ae52a66c8e870cfca7e161468fd1027f67e2311f8ecca72ef8d9e345fe08d802ce8d69afb6b538e3910a323971
+DIST graphite2-1.3.10.tgz 3889647 SHA256 90fde3b2f9ea95d68ffb19278d07d9b8a7efa5ba0e413bebcea802ce05cda1ae SHA512 d6d578feaa2d9304dc9bcd3926958070b8c23b27437a9fcb801e08e62f33a5549b7a6aa9636c7f8eb80a2a2c6d5cac97d58050fb30fd102b9fd0f8c558f4252b WHIRLPOOL 8a10ae32a7f02ad9e64982ece9b4b5169355f52160f8b9f00d1a892f785bbe14c2fdde24f5e84f6b8cbd7012edaf91b639beeeba400a3f6432b2436278a5df06
+EBUILD graphite2-1.3.10.ebuild 2506 SHA256 0f0b81c7f14a12b593dba76e68cba3429eb50705cf4fd565dcbaedc8e8828cd7 SHA512 b1eabe9d6440f6547e356027df84ec18eac1e1967ba434d5ca06252f8a80b64a137e417f6c1e581f2e6bdf7da0fdc6afbc642ec395fac0e20c3cee949dac1800 WHIRLPOOL c0423101afe1c6ecbbdd44587d65e51a7b1b300b60b56ae7caeebe440b97dc68894275849ba298970e53bf7acd0640406d2de8ed0f7fbe173f966c820113233a
+MISC ChangeLog 10831 SHA256 16e3f38bad5eb2c147857735642f964ba2731a669e3115877fd49c0dc83262c6 SHA512 016774595ae72d6929b67782274de10fc36bec4cd5ef90080b49fb59b82107b9d99fd6accfbcb24494402de2c3a6035e7837fa4b8f1958b80ec36ca85cc01e94 WHIRLPOOL c773650de8d325230bd6b33eafcbab9be15ac577e2ebd6e9dfb86f40c269741f726623bf6f92726da374ec3b7922a5f73cfce94de71bfb206f71a294c8cceb10
+MISC ChangeLog-2015 12412 SHA256 c1184653e5384e3e5b5695241d530b0ced5d0b21200791707f1e7c838fd5f7f8 SHA512 80f2c1f075bd15154712d09c6955bf04b8d0416b51f63f1b10a4c8eb118f7a05edbbe6186d6e44509f107a9a9640f0bd0999b01d456d4d24d513b72fc19a57b7 WHIRLPOOL 21151e112ce1a2b71e8f96de1258a15d66afc3eaf39115211082b3d3bb08d5ec843d44e071766c04a112fe8f264a2210bc559df0301836319a2d31c00468cb4e
+MISC metadata.xml 336 SHA256 c76a3a8a9a4c6dd54355b3a2d116f35db6ce1d93a299d8924ed6484d099c9921 SHA512 ac8ae39ab005c1562818a97b64bfef48ab64e2a1993aa3eef4ee4b3066b32d9211787df1273e20cb767839e42364ed72b3e99c51bb65f0c88937564d5dbb5380 WHIRLPOOL 704eb87c7e1a01956485f13dca9986793955996192f1a984777c0acb87c1363c55e127e0170bd58d91765f527a3652a25c545cce09081f5ff87220c1da541373
diff --git a/media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch b/media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch
new file mode 100644
index 000000000000..b6168828dc26
--- /dev/null
+++ b/media-gfx/graphite2/files/graphite2-1.3.5-includes-libs-perl.patch
@@ -0,0 +1,14 @@
+diff -ruN graphite2-1.3.5.orig/contrib/perl/Build.PL graphite2-1.3.5/contrib/perl/Build.PL
+--- graphite2-1.3.5.orig/contrib/perl/Build.PL 2016-01-15 05:17:18.000000000 +0100
++++ graphite2-1.3.5/contrib/perl/Build.PL 2016-02-16 11:11:23.922397562 +0100
+@@ -8,8 +8,8 @@
+ dist_author => 'Simon Cozens <simon@cpan.org>',
+ dist_version_from => 'lib/Text/Gr2.pm',
+ extra_compiler_flags => $^O ne 'MSWin32' ? '-Wall -Wno-unused-variable' : '',
+- extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-lgraphite2',
+- include_dirs => ['.', '../include'],
++ extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-L @BUILD_DIR@ -lgraphite2',
++ include_dirs => ['.', '../include', '../../include'],
+ requires => {
+ 'Test::More' => 0,
+ },
diff --git a/media-gfx/graphite2/graphite2-1.3.10.ebuild b/media-gfx/graphite2/graphite2-1.3.10.ebuild
new file mode 100644
index 000000000000..68b22139c69e
--- /dev/null
+++ b/media-gfx/graphite2/graphite2-1.3.10.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 sparc 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
+ $(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
+ # Perl tests fail due to missing POD coverage...
+ perl_rm_files "contrib/perl/t/pod.t" "contrib/perl/t/pod-coverage.t"
+ cd contrib/perl || die
+ 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
+}
diff --git a/media-gfx/graphite2/metadata.xml b/media-gfx/graphite2/metadata.xml
new file mode 100644
index 000000000000..1d691cf5e290
--- /dev/null
+++ b/media-gfx/graphite2/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>office@gentoo.org</email>
+ <name>Gentoo Office project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">silgraphite</remote-id>
+ </upstream>
+</pkgmetadata>