pango/cairo: move to extra

This commit is contained in:
Dylan Araps 2019-08-05 02:12:55 +03:00
parent 6ed0d229e7
commit b64b6c88ec
11 changed files with 44 additions and 14 deletions

11
extra/cairo/build Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
./configure \
--prefix=/usr \
--disable-static \
--enable-tee \
--enable-gl \
--enable-egl
make
make DESTDIR="$1" install

1
extra/cairo/checksums Normal file
View File

@ -0,0 +1 @@
5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331 cairo-1.16.0.tar.xz

7
extra/cairo/depends Normal file
View File

@ -0,0 +1,7 @@
libX11
libXext
libffi
libpng
mesa
pixman
fontconfig

1
extra/cairo/sources Normal file
View File

@ -0,0 +1 @@
https://cairographics.org/releases/cairo-1.16.0.tar.xz

1
extra/cairo/version Normal file
View File

@ -0,0 +1 @@
1.16.0 1

14
extra/pango/build Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh -e
meson \
--prefix=/usr \
-Dgir=false \
-Dgtk_doc=false \
. build
ninja -C build
DESTDIR="$1" ninja -C build install
# Remove unneeded tests
rm -rf "$1/usr/share/installed-tests"
rm -rf "$1/usr/libexec/installed-tests"

1
extra/pango/checksums Normal file
View File

@ -0,0 +1 @@
1d2b74cd63e8bd41961f2f8d952355aa0f9be6002b52c8aa7699d9f5da597c9d pango-1.42.4.tar.xz

6
extra/pango/depends Normal file
View File

@ -0,0 +1,6 @@
glib
freetype-harfbuzz
fontconfig
fribidi
cairo
meson make

1
extra/pango/sources Normal file
View File

@ -0,0 +1 @@
https://download.gnome.org/sources/pango/1.42/pango-1.42.4.tar.xz

1
extra/pango/version Normal file
View File

@ -0,0 +1 @@
1.42.4 1

View File

@ -1,14 +0,0 @@
Reason: rustc_codegen_llvm attempts to link against the host's llvm without this patch
--- rustc-1.36.0-src/src/librustc_llvm/build.rs
+++ rustc-1.36.0-src/src/librustc_llvm/build.rs
@@ -224,8 +224,8 @@ fn main() {
println!("cargo:rustc-link-search=native={}", &lib[9..]);
} else if is_crossed {
if lib.starts_with("-L") {
- println!("cargo:rustc-link-search=native={}",
- lib[2..].replace(&host, &target));
+ println!("cargo:rustc-link-search=native={}{}",
+ env::var("XBPS_CROSS_BASE").unwrap(), &lib[2..]);
}
} else if lib.starts_with("-l") {
println!("cargo:rustc-link-lib={}", &lib[2..]);