From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/graphite2/
Date: Fri, 19 Sep 2025 19:10:34 +0000 (UTC) [thread overview]
Message-ID: <1758308814.f0401769638162847ba35b260b5e3dc831a2f086.sam@gentoo> (raw)
commit: f0401769638162847ba35b260b5e3dc831a2f086
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 19 19:06:54 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 19 19:06:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0401769
media-gfx/graphite2: use PERL_FEATURES
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../graphite2/graphite2-1.3.14_p20210810-r4.ebuild | 136 +++++++++++++++++++++
1 file changed, 136 insertions(+)
diff --git a/media-gfx/graphite2/graphite2-1.3.14_p20210810-r4.ebuild b/media-gfx/graphite2/graphite2-1.3.14_p20210810-r4.ebuild
new file mode 100644
index 000000000000..6088353a22ad
--- /dev/null
+++ b/media-gfx/graphite2/graphite2-1.3.14_p20210810-r4.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT=80c52493ef42e6fe605a69dcddd2a691cd8a1380
+GENTOO_DEPEND_ON_PERL="no"
+PYTHON_COMPAT=( python3_{11..13} )
+inherit flag-o-matic perl-module python-any-r1 cmake-multilib
+
+DESCRIPTION="Library providing rendering capabilities for complex non-Roman writing systems"
+HOMEPAGE="https://scripts.sil.org/cms/scripts/page.php?site_id=projects&item_id=graphite_home"
+SRC_URI="https://github.com/silnrsi/graphite/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/graphite-${COMMIT}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="perl test ${GENTOO_PERL_USESTRING}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ perl? (
+ ${GENTOO_PERL_DEPSTRING}
+ dev-lang/perl:=
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-libs/glib:2 )
+"
+BDEPEND="
+ perl? (
+ dev-lang/perl
+ dev-perl/Locale-Maketext-Lexicon
+ dev-perl/Module-Build
+ )
+ test? (
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/fonttools[${PYTHON_USEDEP}]')
+ media-libs/fontconfig
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.3.5-includes-libs-perl.patch"
+ "${FILESDIR}/${PN}-1.3.14-fix-cmake-files-libdir.patch"
+ "${FILESDIR}/${PN}-1.3.14-no-libtool-file.patch"
+ "${FILESDIR}/${PN}-1.3.14-fix-nodefaultlibs-deux.patch"
+ "${FILESDIR}/${PN}-1.3.14-fix-nodefaultlibs.patch"
+ "${FILESDIR}/${PN}-1.3.5-fix-gcc-linking.patch"
+ "${FILESDIR}/${PN}-1.3.14-gcc15.patch"
+ "${FILESDIR}/${P}-cmake4.patch" # bug 951367, PR#92 pending
+)
+
+pkg_setup() {
+ use perl && perl_set_version
+ use test && python-any-r1_pkg_setup
+}
+
+python_check_deps() {
+ python_has_version "dev-python/fonttools[${PYTHON_USEDEP}]"
+}
+
+src_prepare() {
+ cmake_src_prepare
+ use test || cmake_comment_add_subdirectory tests
+}
+
+multilib_src_configure() {
+ # ODR (bug #875224)
+ filter-lto
+
+ local mycmakeargs=(
+ # Renamed VM_MACHINE_TYPE to GRAPHITE2_VM_TYPE
+ -DGRAPHITE2_VM_TYPE=direct
+ )
+ # https://sourceforge.net/p/silgraphite/bugs/49/
+ [[ ${CHOST} == powerpc*-apple* ]] && mycmakeargs+=(
+ -DGRAPHITE2_NSEGCACHE:BOOL=ON
+ )
+
+ if use elibc_musl ; then
+ # bug #829690
+ if use ppc || use x86 ; then
+ sed -e 's:${GRAPHITE_LINK_FLAGS}:-lssp_nonshared &:' \
+ -i "${S}"/src/CMakeLists.txt || die
+ fi
+ fi
+
+ cmake_src_configure
+
+ # fix perl linking
+ if multilib_is_native_abi && use perl; then
+ # we rely on the fact that cmake_src_configure sets BUILD_DIR
+ sed -e "s:@BUILD_DIR@:\"${BUILD_DIR}/src\":" \
+ -i "${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() {
+ CMAKE_SKIP_TESTS=(
+ # https://github.com/silnrsi/graphite/pull/74
+ nametabletest
+ )
+
+ cmake_src_test
+}
+
+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
+}
next reply other threads:[~2025-09-19 19:10 UTC|newest]
Thread overview: 130+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 19:10 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-20 19:38 [gentoo-commits] repo/gentoo:master commit in: media-gfx/graphite2/ Sam James
2025-07-20 19:30 Sam James
2024-10-08 8:21 Sam James
2024-05-31 6:12 Andreas Sturmlechner
2024-03-25 10:01 Sam James
2024-03-14 0:30 Sam James
2023-06-10 9:39 Andreas Sturmlechner
2023-06-09 12:04 Arthur Zamarin
2023-06-09 9:54 Sam James
2023-06-09 9:54 Sam James
2023-06-09 6:53 Arthur Zamarin
2023-06-03 19:45 Arthur Zamarin
2023-06-02 16:13 Arthur Zamarin
2023-06-01 19:15 Arthur Zamarin
2023-06-01 19:15 Arthur Zamarin
2023-02-17 6:27 Sam James
2023-02-03 19:53 Sam James
2022-12-02 18:47 Arthur Zamarin
2022-11-23 2:26 Sam James
2022-11-21 20:43 Arthur Zamarin
2022-11-21 17:52 Arthur Zamarin
2022-11-21 17:52 Arthur Zamarin
2022-11-21 17:52 Arthur Zamarin
2022-11-21 17:50 Arthur Zamarin
2022-11-21 17:43 Arthur Zamarin
2022-09-16 23:50 Sam James
2022-09-13 19:12 Sam James
2022-06-07 11:34 Andreas Sturmlechner
2022-06-06 21:19 Jakov Smolić
2022-06-06 6:53 Jakov Smolić
2022-06-06 6:53 Jakov Smolić
2022-06-06 6:53 Jakov Smolić
2022-06-06 6:53 Jakov Smolić
2022-06-06 6:31 Jakov Smolić
2022-06-06 6:28 Jakov Smolić
2022-06-06 6:28 Jakov Smolić
2022-05-07 4:28 WANG Xuerui
2021-12-23 8:14 Sam James
2021-12-20 1:06 Sam James
2021-12-20 0:49 Sam James
2021-05-01 21:24 Andreas Sturmlechner
2021-01-06 14:07 Fabian Groffen
2020-06-06 17:48 Andreas Sturmlechner
2020-06-06 17:29 Agostino Sarubbo
2020-05-31 16:15 Mikle Kolyada
2020-05-31 16:07 Mikle Kolyada
2020-05-31 15:45 Mikle Kolyada
2020-05-31 15:40 Mikle Kolyada
2020-05-29 20:42 Sergei Trofimovich
2020-05-20 14:41 Mikle Kolyada
2020-05-20 13:35 Mikle Kolyada
2020-05-19 19:36 Mikle Kolyada
2020-04-04 1:08 Andreas Sturmlechner
2020-01-03 19:40 Andreas Sturmlechner
2019-12-25 21:20 Andreas Sturmlechner
2019-12-25 20:50 Sergei Trofimovich
2019-12-25 20:39 Sergei Trofimovich
2019-11-30 10:18 Sergei Trofimovich
2019-11-17 1:34 Andreas Sturmlechner
2019-05-06 15:25 Tobias Klausmann
2019-03-03 6:37 Mikle Kolyada
2019-03-03 6:36 Mikle Kolyada
2019-03-02 20:02 Matt Turner
2019-02-17 17:58 Mikle Kolyada
2019-02-17 16:05 Mart Raudsepp
2019-02-17 15:33 Mikle Kolyada
2019-01-09 11:52 Andreas Sturmlechner
2018-12-30 21:02 Andreas Sturmlechner
2018-12-30 21:02 Andreas Sturmlechner
2018-09-03 12:11 Lars Wendler
2018-09-03 9:42 Lars Wendler
2018-06-13 10:06 Mikle Kolyada
2018-03-21 21:08 Matt Turner
2018-03-07 16:55 Lars Wendler
2017-06-30 7:37 Sergei Trofimovich
2017-06-26 12:48 Alexis Ballier
2017-06-23 4:39 Markus Meier
2017-06-21 12:17 Agostino Sarubbo
2017-06-20 14:56 Tobias Klausmann
2017-06-16 14:10 Agostino Sarubbo
2017-06-10 21:15 Andreas Hüttel
2017-06-03 22:49 Andreas Sturmlechner
2017-05-12 14:55 Agostino Sarubbo
2017-05-11 19:27 Markus Meier
2017-05-10 12:02 Lars Wendler
2017-05-04 15:55 Agostino Sarubbo
2017-04-30 9:37 Agostino Sarubbo
2017-04-29 14:49 Agostino Sarubbo
2017-04-29 12:33 Jeroen Roovers
2017-04-28 20:42 Andreas Hüttel
2017-03-29 21:26 Michael Weber
2017-01-24 13:41 Agostino Sarubbo
2016-12-20 23:12 Kent Fredric
2016-11-21 11:54 Lars Wendler
2016-09-29 13:08 Agostino Sarubbo
2016-07-13 13:51 Jeroen Roovers
2016-07-13 6:35 Jeroen Roovers
2016-07-07 9:36 Agostino Sarubbo
2016-07-07 9:23 Agostino Sarubbo
2016-07-05 21:02 Markus Meier
2016-07-05 7:53 Tobias Klausmann
2016-07-04 9:19 Tobias Klausmann
2016-06-07 17:36 Tobias Klausmann
2016-05-20 12:46 Tobias Klausmann
2016-04-28 16:32 Tobias Klausmann
2016-04-11 10:39 Agostino Sarubbo
2016-04-07 13:40 Lars Wendler
2016-04-07 13:40 Lars Wendler
2016-03-30 18:30 Markus Meier
2016-03-27 10:16 Agostino Sarubbo
2016-03-26 9:25 Jeroen Roovers
2016-03-22 14:32 Agostino Sarubbo
2016-03-21 0:38 Andreas Hüttel
2016-03-20 12:24 Agostino Sarubbo
2016-03-19 12:28 Agostino Sarubbo
2016-03-18 7:16 Lars Wendler
2016-03-16 14:09 Agostino Sarubbo
2016-03-15 20:50 Tobias Klausmann
2016-03-11 16:38 Markus Meier
2016-03-07 3:17 Jeroen Roovers
2016-03-06 14:58 Jeroen Roovers
2016-03-06 8:33 Jeroen Roovers
2016-03-03 21:37 Andreas Hüttel
2016-03-02 13:58 Agostino Sarubbo
2016-02-29 12:59 Andreas Hüttel
2016-02-29 12:48 Andreas Hüttel
2016-02-29 12:48 Andreas Hüttel
2016-02-26 22:57 Andreas Hüttel
2016-01-30 8:16 Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1758308814.f0401769638162847ba35b260b5e3dc831a2f086.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox