From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin-apps@cygwin.com
Cc: Brian.Inglis@SystematicSw.ab.ca
Subject: [ITA] fontconfig
Date: Thu, 22 Feb 2024 19:40:36 +0900 [thread overview]
Message-ID: <20240222194036.7f47cc9c424e8e67545a9881@nifty.ne.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 243 bytes --]
CC: Brian,
I would like to adopt fontconfig package.
Brian, by any chance, do you also want to adopt fontconfig
package? I'm asking because I noticed that your commits exist
in playground branch.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
[-- Attachment #2: fontconfig.cygport --]
[-- Type: text/plain, Size: 3491 bytes --]
NAME="fontconfig"
VERSION=2.15.0
RELEASE=1
LICENSE="MIT AND Unicode-DFS-2016"
CATEGORY="Libs"
SUMMARY="Font configuration library"
DESCRIPTION="Fontconfig is a library designed to provide system-wide font
configuration, customization and application access."
HOMEPAGE="https://www.freedesktop.org/wiki/Software/fontconfig"
SRC_URI="https://www.freedesktop.org/software/fontconfig/release/${NAME}-${VERSION}.tar.xz"
BUILD_REQUIRES="libxml2-devel libfreetype-devel gettext-devel libiconv-devel libintl-devel libuuid-devel libexpat-devel libjson-c-devel gperf"
PKG_NAMES="${NAME} ${NAME}-doc lib${NAME}1 lib${NAME}-common lib${NAME}-devel"
fontconfig_CATEGORY="X11"
fontconfig_SUMMARY="${SUMMARY% *} utilities"
fontconfig_CONTENTS="
usr/bin/fc-*
usr/share/man/man1/
"
fontconfig_doc_CATEGORY="Doc"
fontconfig_doc_SUMMARY="${SUMMARY} (API documentation)"
fontconfig_doc_CONTENTS="usr/share/doc/${NAME}/fontconfig-[du]* usr/share/man/man3/"
# at least one font is needed at runtime and dejavu seems to be the best choice
libfontconfig1_REQUIRES="dejavu-fonts libfontconfig-common"
libfontconfig1_CONTENTS="
etc/postinstall/zp_${NAME}_cache_1.sh
etc/preremove/lib${NAME}1.sh
usr/bin/cygfontconfig-1.dll
usr/libexec/fc-cache-1.exe
"
libfontconfig_common_CONTENTS="
--exclude=html --exclude=fontconfig-devel* --exclude=fontconfig-user*
etc/fonts/
etc/postinstall/zp_${NAME}_dtd.dash
etc/preremove/lib${NAME}-common.sh
usr/share/doc/
usr/share/${NAME}
usr/share/locale/*/*/fontconfig*.mo
usr/share/man/man5/
usr/share/xml/
var/cache/${NAME}/
"
libfontconfig_devel_CONTENTS="
usr/include/fontconfig/
usr/lib/libfontconfig.dll.a
usr/lib/pkgconfig/fontconfig.pc
usr/share/gettext/its/fontconfig.*
"
PKG_IGNORE="usr/lib/fontconfig.def"
DISTCLEANFILES="src/fcobjshash.gperf src/fcobjshash.h"
CYGCONF_ARGS="
--enable-docs
--with-docdir=/usr/share/doc/${NAME}
--with-default-fonts=/usr/share/fonts
--with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/share/ghostscript/fonts,/usr/local/share/fonts
"
src_install() {
local f cachesuf
local msfontsdir=/usr/share/fonts/microsoft
local dtddir=/usr/share/xml/fontconfig
cd ${B}
cyginstall
exeinto /usr/libexec
newexe ${D}/usr/bin/fc-cache.exe fc-cache-1.exe
cd ${S}
doman fc-*/fc-*.1
doman doc/*.3
doman doc/*.5
dodoc doc/*.txt
keepdir /var/cache/${NAME}
cachesuf=$(strings ${D}/usr/bin/cygfontconfig-1.dll | grep -F '.cache-')
dodir /etc/postinstall /etc/preremove
cat > ${D}/etc/postinstall/zp_fontconfig_cache_1.sh <<_EOF
mkdir -p $msfontsdir
# remove any broken links (-L -type l together)
/usr/bin/find -L $msfontsdir -type l -delete
/usr/bin/find "\`cygpath -W\`"/Fonts/ -name '*.ttf' -exec grep -FlZ 'Microsoft Corp' '{}' + | \
while read -d $'\0' f
do
if [ ! -e "$msfontsdir/\${f##*/}" ]
then
ln -s "\$f" $msfontsdir/
fi
done
/usr/libexec/fc-cache-1 -s || :
_EOF
cat > ${D}/etc/preremove/libfontconfig1.sh <<_EOF
rm -f /var/cache/fontconfig/*${cachesuf}
_EOF
cat > ${D}/etc/postinstall/zp_fontconfig_dtd.dash <<_EOF
if [ -x /usr/bin/xmlcatalog ] ; then
/usr/bin/xmlcatalog --noout --add "system" "fonts.dtd" ${dtddir}/fonts.dtd /etc/xml/catalog
fi
_EOF
cat > ${D}/etc/preremove/libfontconfig-common.sh <<_EOF
if [ -x /usr/bin/xmlcatalog ] ; then
/usr/bin/xmlcatalog --noout --del ${dtddir}/fonts.dtd /etc/xml/catalog
fi
_EOF
}
SCALLYWAG=deploy
next reply other threads:[~2024-02-22 10:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 10:40 Takashi Yano [this message]
2024-02-22 10:53 ` Takashi Yano
2024-02-23 2:18 ` Marco Atzeri
2024-03-01 13:22 ` Takashi Yano
2024-03-01 14:38 ` marco atzeri
2024-03-02 4:43 ` Takashi Yano
2024-02-22 15:19 ` Brian.Inglis
-- strict thread matches above, loose matches on Subject: below --
2008-11-04 6:12 Yaakov (Cygwin Ports)
2008-11-04 7:52 ` Jari Aalto
2008-11-04 13:01 ` Jari Aalto
2008-11-04 11:23 ` Dr. Volker Zell
2008-11-04 15:47 ` Yaakov (Cygwin Ports)
2008-11-04 19:02 ` Dr. Volker Zell
2008-11-04 20:04 ` Yaakov (Cygwin Ports)
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=20240222194036.7f47cc9c424e8e67545a9881@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=Brian.Inglis@SystematicSw.ab.ca \
--cc=cygwin-apps@cygwin.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).