-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fontconfig: update 2.10.2 -> 2.11.1. Closes #2050
- Loading branch information
Luca Bruno
committed
Oct 19, 2014
1 parent
b5fe0d3
commit d5726d0
Showing
8 changed files
with
132 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ stdenv, fetchurl, pkgconfig, freetype, expat }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "fontconfig-2.10.2"; | ||
|
||
src = fetchurl { | ||
url = "http://fontconfig.org/release/${name}.tar.bz2"; | ||
sha256 = "0llraqw86jmw4vzv7inskp3xxm2gc64my08iwq5mzncgfdbfza4f"; | ||
}; | ||
|
||
infinality_patch = | ||
let subvers = "1"; | ||
in fetchurl { | ||
url = http://www.infinality.net/fedora/linux/zips/fontconfig-infinality-1-20130104_1.tar.bz2; | ||
sha256 = "1fm5xx0mx2243jrq5rxk4v0ajw2nawpj23399h710bx6hd1rviq7"; | ||
} | ||
; | ||
|
||
propagatedBuildInputs = [ freetype ]; | ||
buildInputs = [ pkgconfig expat ]; | ||
|
||
configureFlags = [ | ||
"--sysconfdir=/etc" | ||
"--with-cache-dir=/var/cache/fontconfig" | ||
"--disable-docs" | ||
"--with-default-fonts=" | ||
]; | ||
|
||
# We should find a better way to access the arch reliably. | ||
crossArch = stdenv.cross.arch or null; | ||
|
||
preConfigure = '' | ||
if test -n "$crossConfig"; then | ||
configureFlags="$configureFlags --with-arch=$crossArch"; | ||
fi | ||
''; | ||
|
||
enableParallelBuilding = true; | ||
|
||
doCheck = true; | ||
|
||
# Don't try to write to /var/cache/fontconfig at install time. | ||
installFlags = "sysconfdir=$(out)/etc fc_cachedir=$(TMPDIR)/dummy RUN_FC_CACHE_TEST=false"; | ||
|
||
postInstall = '' | ||
cd "$out/etc/fonts" && tar xvf ${infinality_patch} | ||
''; | ||
|
||
passthru = { | ||
# Empty for backward compatibility, there was no versioning before 2.11 | ||
configVersion = ""; | ||
}; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A library for font customization and configuration"; | ||
homepage = http://fontconfig.org/; | ||
license = licenses.bsd2; # custom but very bsd-like | ||
platforms = platforms.all; | ||
maintainers = [ maintainers.vcunat ]; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters