Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Add about: metadata for cairo, pango and their deps
Browse files Browse the repository at this point in the history
Also build libxml2 python module since gtk-doc needs it and
I had to regenerate glib's configure script and that wasn't
possible without this module.

Resync with the latest anaconda versions.
  • Loading branch information
mingwandroid committed Dec 19, 2016
1 parent f9496f0 commit ce62ca7
Show file tree
Hide file tree
Showing 18 changed files with 179 additions and 77 deletions.
3 changes: 2 additions & 1 deletion automake/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ test:
about:
home: http://www.gnu.org/software/automake/
license: GPL3
license_family: GPL3
license_file: COPYING
summary: Tool to automatically generate Makefile.in files
description: |
Automake automatically generates Makefile.in files compliant with
the GNU Coding Standards. Note: Automake requires the use of Autoconf.
doc_url: https://www.gnu.org/software/automake/#documentation

dev_url: http://savannah.gnu.org/git/?group=automake
2 changes: 1 addition & 1 deletion cairo/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

export CFLAGS="-I$PREFIX/include -L$PREFIX/lib"
export CFLAGS=$CFLAGS" -I$PREFIX/include -L$PREFIX/lib"

# As of Mac OS 10.8, X11 is no longer included by default
# (See https://support.apple.com/en-us/HT201341 for the details).
Expand Down
14 changes: 11 additions & 3 deletions cairo/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ source:
url: http://cairographics.org/releases/cairo-1.14.6.tar.xz
md5: 23a0b2f0235431d35238df1d3a517fdb

build: [win]
features: [win]
build:
features:
- vc9 [win and py27]
- vc10 [win and py34]
- vc14 [win and py35]
Expand All @@ -33,4 +33,12 @@ requirements:
about:
home: http://cairographics.org/
license: LGPL 2.1, MPL 1.1
summary: Cairo is a 2D graphics library with support for multiple output devices.
license_family: LGPL
license_file: COPYING
summary: A 2D graphics library with support for multiple output devices
description: |
Cairo is a 2D graphics library with support for multiple output devices.
It is designed to produce consistent output on all output media while
taking advantage of display hardware acceleration when available.
doc_url: http://cairographics.org/documentation/
dev_url: https://cgit.freedesktop.org/cairo/
2 changes: 1 addition & 1 deletion fontconfig/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ $(uname) == Darwin ]]; then
export DYLD_FALLBACK_LIBRARY_PATH=${PREFIX}/lib
fi

make V=1
make
make install

# Remove computed cache with local fonts
Expand Down
36 changes: 28 additions & 8 deletions fontconfig/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,35 @@ source:

requirements:
build:
- freetype >=2.5.2
- libxml2
- libpng
- freetype 2.5.*
- libxml2 2.9.*
- libpng 1.6.*
- libiconv 1.14.*
- pkg-config
run:
- freetype >=2.5.2
- libxml2
- libpng
- freetype 2.5.*
- libxml2 2.9.*
- libpng 1.6.*
- libiconv 1.14.*

test:
commands:
- fc-cache --help
- fc-cat --help
- fc-list --help
- fc-match --help
- fc-pattern --help
- fc-query --help
- fc-scan --help
- fc-validate --help

about:
home: http://www.freedesktop.org/wiki/Software/fontconfig/
license: BSD
home: http://www.freedesktop.org/wiki/Software/fontconfig/
license: BSD
license_file: COPYING
summary: A library for configuring and customizing font access
description: |
Fontconfig is a library designed to provide system-wide font configuration,
customization and application access.
doc_url: https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
dev_url: https://cgit.freedesktop.org/fontconfig/
9 changes: 8 additions & 1 deletion glib/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

declare -a _extra_config

Expand All @@ -17,3 +17,10 @@ make install || exit 1
cd $PREFIX
sed -i.bak 's|lib/../lib64|lib|g' lib/*.la lib/pkgconfig/*.pc
rm lib/*.la.bak lib/pkgconfig/*.pc.bak
# The glib build system compiles these.
# (meta.yaml must also refer to them in
# build/skip_compile_pyc)
rm -rf share/glib-2.0/codegen/*.pyc
rm -rf share/glib-2.0/*.pyc
rm -rf share/glib-2.0/gdb/*.pyc
rm -rf share/gdb/auto-load/*
17 changes: 15 additions & 2 deletions glib/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ source:

build:
detect_binary_files_with_prefix: true
skip_compile_pyc:
- share/glib-2.0/codegen/*.py
- share/glib-2.0/*.py
- share/glib-2.0/gdb/*.py

requirements:
build:
Expand All @@ -29,6 +33,15 @@ requirements:
- pcre >=8.39 1

about:
license: LGPL
home: https://developer.gnome.org/glib/
summary: "GLib provides the core application building blocks for libraries and applications written in C. "
license: LGPL
license_family: LGPL
summary: Core application building blocks for libraries and applications in C
description: |
GLib provides the core application building blocks for libraries and
applications written in C. It provides the core object system used in
GNOME, the main loop implementation, and a large set of utility functions
functions for strings and common data structures.
doc_url: https://developer.gnome.org/glib/unstable/
dev_url: https://git.gnome.org/browse/glib/

4 changes: 3 additions & 1 deletion libffi/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

./configure --prefix=$PREFIX || exit 1
make || exit 1
make install || exit 1

cd $PREFIX
rm -rf share
mv lib/libffi-*/include include
mv lib/libffi-*/include/* include/

if [[ $(uname -m) == x86_64 ]]; then
if [[ -d lib64 ]]; then
Expand Down
28 changes: 19 additions & 9 deletions libffi/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@ package:

source:
url: ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
sha1: 280c265b789e041c02e5c97815793dfc283fb1e6
md5: 83b89587607e3eb65c70d361f13bab43

build:
number: 1
features:
- vc9 [win and py27]
- vc10 [win and py34]
- vc14 [win and py35]

requirements:
build:
- python
- posix [win]
- jom [win]

about:
home: https://sourceware.org/libffi/
license: BSD
license_family: BSD
summary: Library supporting Foreign Function Interfaces
license: MIT
license_file: LICENSE
summary: portable foreign-function interface library
description: |
The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description
at run-time
dev_url: http://github.com/atgreen/libffi
The libffi library provides a portable, high level programming interface
to various calling conventions. This allows a programmer to call any
function specified by a call interface description at run-time.
doc_url: https://sourceware.org/libffi/
dev_url: https://github.com/libffi/libffi
7 changes: 5 additions & 2 deletions libxml2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ if [[ $(uname) == Darwin ]]; then
EXTRA_ARGS="--without-threads"
fi

./configure $EXTRA_ARGS --prefix=$PREFIX --without-python --with-iconv=$PREFIX --without-lzma
make -j${CPU_COUNT}
# Although lxml is recommended over libxml2, gtk-doc needs the
# libxml2 python module and it has been asked for it on github.
./configure ${EXTRA_ARGS} --prefix=${PREFIX} --with-python --with-iconv=${PREFIX} --without-lzma
make
make install
rm -rf ${PREFIX}/share/doc/libxml2-python-*
21 changes: 15 additions & 6 deletions libxml2/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,24 @@ test:

requirements:
build:
- libiconv [unix]
- gcc [linux]
- zlib [unix]
- python
- libiconv
- zlib 1.2.*
run:
- libiconv [unix]
- libgcc [linux]
- zlib [unix]
- python
- libiconv
- zlib 1.2.*

about:
home: http://xmlsoft.org/
license: MIT
license_family: MIT
license_file: COPYING
summary: The XML C parser and toolkit of Gnome
description: |
Libxml2 is the XML C parser and toolkit developed for the
Gnome project (but usable outside of the Gnome platform).
Though the library is written in C a variety of language
bindings make it available in other environments.
doc_url: http://xmlsoft.org/docs.html
dev_url: https://git.gnome.org/browse/libxml2/
2 changes: 1 addition & 1 deletion pango/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

./configure --prefix=$PREFIX || exit 1
make || exit 1
Expand Down
27 changes: 16 additions & 11 deletions pango/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,34 @@ source:
url: http://ftp.gnome.org/pub/GNOME/sources/pango/1.40/pango-1.40.3.tar.xz
md5: 17c26720f5a862a12f7e1745e2f1d966

build:
number: 3
detect_binary_files_with_prefix: true

requirements:
build:
- cairo 1.14.*
- fontconfig
- fontconfig 2.12.*
- freetype 2.5.*
- harfbuzz
- glib 2.50.*
- libffi [linux]
- libpng 1.6.*
- xz
run:
- cairo 1.14.*
- fontconfig
- fontconfig 2.12.*
- freetype 2.5.*
- harfbuzz
- harfbuzz 0.9.*
- glib 2.50.*
- libffi [linux]
- libpng 1.6.*

about:
license: LGPL
home: http://www.pango.org/
summary: "Pango is a lib for laying out and rendering of text with emphasis on i18n"
license: LGPL
license_family: LGPL
license_file: COPYING
summary: Text layout and rendering engine
description: |
Pango is a library for laying out and rendering of text, with an emphasis
on internationalization. Pango can be used anywhere that text layout is
needed, though most of the work on Pango so far has been done in the
context of the GTK+ widget toolkit. Pango forms the core of text and font
handling for GTK+-2.x.
doc_url: http://www.pango.org/Manual
dev_url: http://git.gnome.org/cgit/pango/
8 changes: 0 additions & 8 deletions pcre/conftest.c

This file was deleted.

11 changes: 10 additions & 1 deletion pcre/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ requirements:
- zlib 1.2.*

about:
home: http://www.pcre.org/
home: http://www.pcre.org/
license: 3-clause BSD License
license_family: BSD
summary: A set of functions that implement regular expression pattern matching
description: |
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl 5. PCRE has
its own native API, as well as a set of wrapper functions that correspond
to the POSIX regular expression API. The PCRE library is free, even for
building proprietary software.
doc_url: http://www.pcre.org/original/doc/html/
dev_url: http://vcs.pcre.org/pcre2/
16 changes: 12 additions & 4 deletions pixman/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ package:
source:
url: http://cairographics.org/releases/pixman-0.34.0.tar.gz
md5: e80ebae4da01e77f68744319f01d52a3
patches: [win]
patches:
- no_test.patch [win]

build: [win]
features: [win]
build:
features:
- vc9 [win and py27]
- vc10 [win and py34]
- vc14 [win and py35]
Expand All @@ -19,6 +19,14 @@ requirements:
- python [win]

about:
home: http://cgit.freedesktop.org/pixman/
home: http://www.pixman.org/
license: MIT
license_family: MIT
license_file: COPYING
summary: A low-level software library for pixel manipulation
description: |
Pixman is a low-level software library for pixel manipulation,
providing features such as image compositing and trapezoid
rasterization. Important users of pixman are the cairo graphics
library and the X server.
dev_url: https://cgit.freedesktop.org/pixman/
10 changes: 6 additions & 4 deletions readline/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

set -e
if [ `uname -m` == ppc64le ]; then
B="--build=ppc64le-linux"
fi

./configure --prefix=$PREFIX && \
make -j$(getconf _NPROCESSORS_ONLN) SHLIB_LIBS="-ltinfo -L$LD_RUN_PATH" && \
make install
./configure $B --prefix=$PREFIX --with-curses
make
make install

rm -rf $PREFIX/share/man
rm -rf $PREFIX/share/readline
Loading

0 comments on commit ce62ca7

Please sign in to comment.