public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [ITA] fontconfig
@ 2008-11-04  6:12 Yaakov (Cygwin Ports)
  2008-11-04  7:52 ` Jari Aalto
  2008-11-04 11:23 ` Dr. Volker Zell
  0 siblings, 2 replies; 14+ messages in thread
From: Yaakov (Cygwin Ports) @ 2008-11-04  6:12 UTC (permalink / raw)
  To: cygwin-apps

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jan,

As part of the X11 transition, I would like your permission to take over
the fontconfig package.  fontconfig is used by the fonts, which I will
be maintaining as part of X11 and are being relocated.  It is also
dependency-sandwiched between my freetype2 package and libXft.

I would immediately update fontconfig to 2.6.0 at the time of the X11
transition.

I appreciate your consideration,


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkkP54MACgkQpiWmPGlmQSOrRACgiTluekpZLO2kx/LnN3K43fiK
QmoAoJ/WrQufoTDT4BHZZFeLygM+rpXw
=WAqm
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [ITA] fontconfig
@ 2024-02-22 10:40 Takashi Yano
  2024-02-22 10:53 ` Takashi Yano
  2024-02-22 15:19 ` Brian.Inglis
  0 siblings, 2 replies; 14+ messages in thread
From: Takashi Yano @ 2024-02-22 10:40 UTC (permalink / raw)
  To: cygwin-apps; +Cc: Brian.Inglis

[-- 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-03-02  4:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04  6:12 [ITA] fontconfig 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)
2024-02-22 10:40 Takashi Yano
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

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).