fontconfig: added ultimate patchset

This commit is contained in:
Andrea Brancaleoni 2015-05-15 19:00:41 +02:00
parent df5008fd1f
commit 4a3908ad0a
1 changed files with 41 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template build file for 'fontconfig'.
pkgname=fontconfig
version=2.11.1
revision=4
revision=5
build_style=gnu-configure
configure_args="--disable-static --enable-docs --with-cache-dir=/var/cache/$pkgname"
hostmakedepends="pkg-config"
@ -11,13 +11,47 @@ short_desc="Library for configuring and customizing font access"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.fontconfig.org"
license="MIT"
distfiles="http://www.freedesktop.org/software/fontconfig/release/$pkgname-$version.tar.bz2"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/release/$pkgname-$version.tar.bz2"
checksum=dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99
build_options="ultimate"
desc_option_ultimate="Enable ultimate patchset"
if [ ${build_option_ultimate} ]; then
_ultimate_version="2015-04"
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}"
hostmakedepends+=" python-lxml gperf automake python"
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
checksum+=" e3bc9dd9c145156bd7bfa8e70c2328f47be6873da31c319bc594a5819afb8732"
conf_files+="
etc/fonts/conf.avail.infinality/combi/30-metric-aliases-combi.conf
etc/fonts/conf.avail.infinality/combi/37-repl-global-combi.conf
etc/fonts/conf.avail.infinality/combi/60-latin-combi.conf
etc/fonts/conf.avail.infinality/combi/65-non-latin-combi.conf
etc/fonts/conf.avail.infinality/combi/66-aliases-wine-combi.conf"
post_extract() {
msg_normal "Applying ultimate patchset"
cp -r ${_ultimate_wrksrc}/conf.d.infinality/ ${wrksrc}
for P in ${_ultimate_wrksrc}/${pkgname}_patches/*.patch; do
patch -p1 < $P
done
}
pre_configure() {
autoreconf -f
}
fi
post_install() {
if [ "$CROSS_BUILD" ]; then
sed -i 's,\(Cflags: -I${includedir}\).*,\1,g' ${DESTDIR}/usr/lib/pkgconfig/fontconfig.pc
fi
if [ ${build_option_ultimate} ]; then
vmkdir etc/fonts/conf.avail.infinality/
vcopy ${_ultimate_wrksrc}/${pkgname}_patches/combi etc/fonts/conf.avail.infinality/
vcopy ${_ultimate_wrksrc}/${pkgname}_patches/free etc/fonts/conf.avail.infinality/
vcopy ${_ultimate_wrksrc}/${pkgname}_patches/ms etc/fonts/conf.avail.infinality/
vbin ${_ultimate_wrksrc}/${pkgname}_patches/fc-presets
fi
}
fontconfig-devel_package() {
@ -29,5 +63,10 @@ fontconfig-devel_package() {
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/share/doc
if [ ${build_option_ultimate} ]; then
vmkdir usr/share/doc/fontconfig/fonts-settings
vcopy ${_ultimate_wrksrc}/fontconfig_patches/fonts-settings/*.conf usr/share/doc/fontconfig/fonts-settings
vcopy ${_ultimate_wrksrc}/doc/fontconfig-infinality-ultimate/* usr/share/doc/fontconfig/
fi
}
}