From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/freetype/
Date: Wed, 31 Mar 2021 08:03:20 +0000 (UTC) [thread overview]
Message-ID: <1617177789.bbdae01a651d93acdf3c276511e8bdd58fcd7fdc.polynomial-c@gentoo> (raw)
commit: bbdae01a651d93acdf3c276511e8bdd58fcd7fdc
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 31 07:52:15 2021 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Mar 31 08:03:09 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbdae01a
media-libs/freetype: live ebuild fixes/improvements/adjustments
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
media-libs/freetype/freetype-9999.ebuild | 55 +++++++++++++++++---------------
1 file changed, 29 insertions(+), 26 deletions(-)
diff --git a/media-libs/freetype/freetype-9999.ebuild b/media-libs/freetype/freetype-9999.ebuild
index 91ed8bacd80..3cc2445891f 100644
--- a/media-libs/freetype/freetype-9999.ebuild
+++ b/media-libs/freetype/freetype-9999.ebuild
@@ -81,9 +81,9 @@ src_unpack() {
_egit_repo_handler ${EBUILD_PHASE}
if [[ "${PV}" == 9999 ]] ; then
- # Need to copy stuff from dlg submodule (#758902)
- local dlg_inc_dir="${S}/submodules/dlg/include/dlg"
- local dlg_src_dir="${S}/submodules/dlg/src/dlg"
+ # Need to copy stuff from dlg subproject (#758902)
+ local dlg_inc_dir="${S}/subprojects/dlg/include/dlg"
+ local dlg_src_dir="${S}/subprojects/dlg/src/dlg"
local dlg_dest_dir="${S}/include"
mkdir -p "${dlg_dest_dir}/dlg" || die
cp "${dlg_inc_dir}"/{dlg,output}.h "${dlg_dest_dir}/dlg" || die
@@ -93,14 +93,22 @@ src_unpack() {
src_prepare() {
if [[ "${PV}" == 9999 ]] ; then
+ # Do NOT automagically mess with submodules!!!
+ sed '/setup: copy_submodule/d' -i builds/toplevel.mk || die
# inspired by shipped autogen.sh script
- eval $(sed -nf version.sed include/freetype/freetype.h)
+ eval $(sed -n \
+ -e 's/^#define *\(FREETYPE_MAJOR\) *\([0-9][0-9]*\).*/\1=\2/p' \
+ -e 's/^#define *\(FREETYPE_MINOR\) *\([0-9][0-9]*\).*/\1=\2/p' \
+ -e 's/^#define *\(FREETYPE_PATCH\) *\([0-9][0-9]*\).*/\1=\2/p' \
+ include/freetype/freetype.h || die)
+ FREETYPE="${FREETYPE_MAJOR}.${FREETYPE_MINOR}"
+ [[ "${FREETYPE_PATCH}" != 0 ]] && FREETYPE+=".${FREETYPE_PATCH}"
pushd builds/unix &>/dev/null || die
- sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
+ sed -e "s;@VERSION@;${FREETYPE};" \
< configure.raw > configure.ac || die
# eautoheader produces broken ftconfig.in
AT_NOEAUTOHEADER="yes" AT_M4DIR="." eautoreconf
- unset freetype_major freetype_minor freetype_patch
+ unset FREETYPE_MAJOR FREETYPE_MINOR FREETYPE_PATCH FREETYPE
popd &>/dev/null || die
fi
@@ -124,11 +132,11 @@ src_prepare() {
# Will be the new default for >=freetype-2.7.0
disable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2"
- if use infinality && use cleartype-hinting; then
+ if use infinality && use cleartype-hinting ; then
enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 )"
- elif use infinality; then
+ elif use infinality ; then
enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 1"
- elif use cleartype-hinting; then
+ elif use cleartype-hinting ; then
enable_option "TT_CONFIG_OPTION_SUBPIXEL_HINTING 2"
fi
@@ -139,19 +147,19 @@ src_prepare() {
# See https://freetype.org/patents.html (expired!)
enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING
- if ! use adobe-cff; then
+ if ! use adobe-cff ; then
enable_option CFF_CONFIG_OPTION_OLD_ENGINE
fi
- if use debug; then
+ if use debug ; then
enable_option FT_DEBUG_LEVEL_TRACE
enable_option FT_DEBUG_MEMORY
fi
- if use utils; then
+ if use utils ; then
cd "${WORKDIR}/ft2demos-${PV}" || die
# Disable tests needing X11 when USE="-X". (bug #177597)
- if ! use X; then
+ if ! use X ; then
sed -i -e "/EXES\ +=\ ftdiff/ s:^:#:" Makefile || die
fi
cd "${S}" || die
@@ -198,7 +206,7 @@ multilib_src_configure() {
multilib_src_compile() {
default
- if multilib_is_native_abi && use utils; then
+ if multilib_is_native_abi && use utils ; then
einfo "Building utils"
# fix for Prefix, bug #339334
emake \
@@ -210,25 +218,20 @@ multilib_src_compile() {
multilib_src_install() {
default
- if multilib_is_native_abi && use utils; then
+ if multilib_is_native_abi && use utils ; then
einfo "Installing utils"
- rm "${WORKDIR}"/ft2demos-${PV}/bin/README || die
- dodir /usr/bin #654780
- local ft2demo
- for ft2demo in ../ft2demos-${PV}/bin/*; do
- ./libtool --mode=install $(type -P install) -m 755 "${ft2demo}" \
- "${ED}"/usr/bin || die
- done
+ emake DESTDIR="${D}" FT2DEMOS=1 \
+ TOP_DIR_2="${WORKDIR}/ft2demos-${PV}" install
fi
}
multilib_src_install_all() {
- if use fontforge; then
+ if use fontforge ; then
# Probably fontforge needs less but this way makes things simplier...
einfo "Installing internal headers required for fontforge"
local header
find src/truetype include/freetype/internal -name '*.h' | \
- while read header; do
+ while read header ; do
mkdir -p "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die
cp ${header} "${ED}/usr/include/freetype2/internal4fontforge/$(dirname ${header})" || die
done
@@ -240,8 +243,8 @@ multilib_src_install_all() {
dodoc -r docs/*
fi
- find "${ED}" -name '*.la' -delete || die
+ find "${ED}" -type f -name '*.la' -delete || die
if ! use static-libs ; then
- find "${ED}" -name '*.a' -delete || die
+ find "${ED}" -type f -name '*.a' -delete || die
fi
}
next reply other threads:[~2021-03-31 8:03 UTC|newest]
Thread overview: 185+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-31 8:03 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-12 19:34 [gentoo-commits] repo/gentoo:master commit in: media-libs/freetype/ Sam James
2023-12-01 14:40 Arthur Zamarin
2023-12-01 14:39 Arthur Zamarin
2023-10-27 15:20 Michał Górny
2023-09-28 6:17 Sam James
2023-09-28 4:21 Sam James
2023-09-28 0:21 Sam James
2023-09-28 0:21 Sam James
2023-09-27 4:52 Sam James
2023-09-27 4:52 Sam James
2023-08-26 1:44 Sam James
2023-08-15 5:18 Sam James
2023-06-25 4:48 Sam James
2023-06-25 4:48 Sam James
2023-05-01 10:32 Sam James
2023-04-25 6:10 Jakov Smolić
2023-04-25 3:55 Sam James
2023-04-25 3:55 Sam James
2023-04-25 3:55 Sam James
2023-04-25 3:55 Sam James
2023-04-25 3:55 Sam James
2023-04-25 3:55 Sam James
2023-04-25 3:55 Sam James
2023-03-04 13:51 Arthur Zamarin
2023-03-04 10:00 Arthur Zamarin
2023-03-04 8:09 Arthur Zamarin
2023-03-04 8:07 Arthur Zamarin
2023-03-04 7:37 Arthur Zamarin
2023-03-04 6:12 Arthur Zamarin
2023-03-04 5:33 Arthur Zamarin
2023-02-12 6:22 Sam James
2022-11-10 7:13 Sam James
2022-08-13 10:06 Arthur Zamarin
2022-08-12 10:49 Agostino Sarubbo
2022-08-12 10:32 Agostino Sarubbo
2022-08-10 8:04 Arthur Zamarin
2022-08-09 18:31 Arthur Zamarin
2022-08-09 17:58 Arthur Zamarin
2022-08-09 17:58 Arthur Zamarin
2022-08-09 17:20 Arthur Zamarin
2022-07-28 14:14 Sam James
2022-05-07 4:28 WANG Xuerui
2022-05-01 18:20 Lars Wendler
2022-05-01 18:20 Lars Wendler
2022-04-26 14:01 Arthur Zamarin
2022-04-25 19:23 Arthur Zamarin
2022-04-25 19:19 Arthur Zamarin
2022-04-24 17:47 Arthur Zamarin
2022-04-24 6:34 Agostino Sarubbo
2022-04-24 6:32 Agostino Sarubbo
2022-04-24 6:30 Agostino Sarubbo
2022-04-24 2:35 Sam James
2022-04-02 20:05 Arthur Zamarin
2022-04-02 20:04 Arthur Zamarin
2022-04-02 12:12 Arthur Zamarin
2022-04-02 8:17 Agostino Sarubbo
2022-04-02 7:33 Arthur Zamarin
2022-04-01 19:51 Jakov Smolić
2022-04-01 19:20 Jakov Smolić
2022-04-01 14:16 Arthur Zamarin
2022-01-07 21:28 Lars Wendler
2021-12-03 18:53 Sam James
2021-12-03 18:53 Sam James
2021-12-03 10:21 Lars Wendler
2021-12-03 10:21 Lars Wendler
2021-11-05 22:28 Sam James
2021-10-28 8:22 Lars Wendler
2021-09-07 0:00 Sam James
2021-09-05 20:07 Agostino Sarubbo
2021-09-05 20:04 Agostino Sarubbo
2021-09-04 21:39 Sam James
2021-09-04 21:29 Sam James
2021-09-04 15:45 Sam James
2021-09-03 6:34 Agostino Sarubbo
2021-08-21 7:50 Stephan Hartmann
2021-07-19 18:22 Lars Wendler
2021-07-19 18:22 Lars Wendler
2021-07-19 18:22 Lars Wendler
2021-07-19 18:16 Lars Wendler
2021-06-08 2:30 Mike Gilbert
2021-03-29 8:06 Lars Wendler
2021-03-29 8:06 Lars Wendler
2021-01-11 18:33 Lars Wendler
2021-01-11 18:33 Lars Wendler
2020-12-27 17:47 Fabian Groffen
2020-12-22 14:05 Lars Wendler
2020-12-07 13:56 Lars Wendler
2020-11-17 19:05 Agostino Sarubbo
2020-10-24 17:53 Sergei Trofimovich
2020-10-20 9:44 Sam James
2020-10-20 9:44 Sam James
2020-10-20 9:26 Joonas Niilola
2020-10-20 9:02 Sam James
2020-10-20 8:50 Sam James
2020-10-20 8:49 Sam James
2020-10-20 8:34 Sam James
2020-10-11 7:24 Lars Wendler
2020-08-05 14:06 Agostino Sarubbo
2020-07-30 19:39 Sam James
2020-07-29 23:41 Sam James
2020-07-27 18:36 Sergei Trofimovich
2020-07-25 11:16 Sam James
2020-07-25 8:42 Sergei Trofimovich
2020-07-24 23:12 Sam James
2020-07-24 16:13 Sam James
2020-07-24 11:54 Sam James
2020-05-10 10:02 Lars Wendler
2020-05-10 10:02 Lars Wendler
2020-05-09 20:29 Lars Wendler
2020-05-09 20:29 Lars Wendler
2019-07-02 10:47 Lars Wendler
2019-07-02 10:47 Lars Wendler
2019-06-13 8:56 Lars Wendler
2019-04-13 8:14 Lars Wendler
2019-03-15 17:14 Lars Wendler
2019-03-15 17:14 Lars Wendler
2018-12-05 14:13 Lars Wendler
2018-11-19 10:50 Lars Wendler
2018-06-14 19:07 Mikle Kolyada
2018-05-29 11:19 Lars Wendler
2018-05-29 10:44 Lars Wendler
2018-05-27 14:42 Mikle Kolyada
2018-05-25 4:18 Matt Turner
2018-05-25 3:48 Matt Turner
2018-05-18 8:00 Jeroen Roovers
2018-05-17 7:28 Lars Wendler
2018-05-14 19:21 Tobias Klausmann
2018-05-13 22:06 Thomas Deutschmann
2018-05-11 20:36 Mikle Kolyada
2018-05-11 19:21 Sergei Trofimovich
2018-05-11 19:11 Sergei Trofimovich
2018-05-11 8:38 Mart Raudsepp
2018-05-10 19:15 Lars Wendler
2018-05-04 6:53 Lars Wendler
2018-05-04 6:46 Lars Wendler
2018-05-03 8:17 Lars Wendler
2018-05-03 8:17 Lars Wendler
2018-05-03 8:17 Lars Wendler
2018-04-26 14:52 Lars Wendler
2018-03-13 20:31 Michał Górny
2018-03-02 18:09 Michał Górny
2018-01-09 8:13 Lars Wendler
2017-09-17 21:02 Lars Wendler
2017-08-19 15:02 Sergei Trofimovich
2017-06-20 12:37 Pacho Ramos
2017-05-26 18:30 Markus Meier
2017-05-22 13:25 Tobias Klausmann
2017-05-19 0:14 Michael Weber
2017-05-18 23:48 Michael Weber
2017-05-18 7:21 Jeroen Roovers
2017-05-16 12:57 Agostino Sarubbo
2017-05-16 12:25 Agostino Sarubbo
2017-05-13 21:39 Lars Wendler
2017-03-28 22:38 Michael Weber
2017-03-17 10:42 Agostino Sarubbo
2017-03-11 8:31 Jeroen Roovers
2017-03-10 14:26 Michael Weber
2017-03-10 13:09 Agostino Sarubbo
2017-03-10 13:09 Agostino Sarubbo
2017-02-25 15:03 Patrice Clement
2017-01-24 11:55 Lars Wendler
2017-01-24 11:55 Lars Wendler
2017-01-24 11:55 Lars Wendler
2017-01-17 17:29 Lars Wendler
2017-01-17 16:23 Lars Wendler
2016-12-31 14:23 Lars Wendler
2016-09-30 20:17 Mike Gilbert
2016-09-17 11:50 Lars Wendler
2016-07-12 19:04 Lars Wendler
2016-07-12 19:04 Lars Wendler
2016-06-08 19:31 Markus Meier
2016-06-01 15:10 Tobias Klausmann
2016-05-30 7:08 Lars Wendler
2016-05-27 12:46 Lars Wendler
2016-05-26 20:37 Lars Wendler
2016-05-26 12:29 Jeroen Roovers
2016-04-13 20:53 Lars Wendler
2016-02-11 9:17 Lars Wendler
2015-11-29 16:10 Lars Wendler
2015-11-29 16:10 Lars Wendler
2015-10-07 18:43 Mike Frysinger
2015-10-06 20:59 Mike Frysinger
2015-10-04 21:10 Lars Wendler
2015-09-01 2:11 Mike Gilbert
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=1617177789.bbdae01a651d93acdf3c276511e8bdd58fcd7fdc.polynomial-c@gentoo \
--to=polynomial-c@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