mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
+freetype+fontconfig+cairo+gobj-intr (#79)
This commit is contained in:
parent
9249d0d7db
commit
974af85f68
4 changed files with 83 additions and 7 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -43,10 +43,12 @@ jobs:
|
||||||
rm -rf /opt/tea.xyz/var/pantry
|
rm -rf /opt/tea.xyz/var/pantry
|
||||||
ln -s $GITHUB_WORKSPACE/pantry /opt/tea.xyz/var/pantry
|
ln -s $GITHUB_WORKSPACE/pantry /opt/tea.xyz/var/pantry
|
||||||
mkdir .git # no git in our image
|
mkdir .git # no git in our image
|
||||||
echo "--insecure" >> ~/.curlrc # our curl is broke somehow for rust bootstrap
|
|
||||||
apt-get --yes install ca-certificates
|
|
||||||
;;
|
;;
|
||||||
macos-11)
|
macos-11)
|
||||||
|
# screws up a lot of build scripts
|
||||||
|
# TODO stop using GHA images or chroot or something
|
||||||
|
sudo rm -rf /usr/local/*
|
||||||
|
|
||||||
sudo mkdir -p /opt/tea.xyz/var
|
sudo mkdir -p /opt/tea.xyz/var
|
||||||
sudo chown -R $(whoami):staff /opt
|
sudo chown -R $(whoami):staff /opt
|
||||||
ln -s $GITHUB_WORKSPACE/pantry /opt/tea.xyz/var/pantry
|
ln -s $GITHUB_WORKSPACE/pantry /opt/tea.xyz/var/pantry
|
||||||
|
|
35
projects/freedesktop.org/fontconfig/package.yml
Normal file
35
projects/freedesktop.org/fontconfig/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
distributable:
|
||||||
|
url: https://www.freedesktop.org/software/fontconfig/release/fontconfig-{{ version }}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: freedesktop/fontconfig/tags
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
sourceware.org/bzip2: 1
|
||||||
|
freetype.org: 2
|
||||||
|
zlib.net: 1
|
||||||
|
gnome.org/libxml2: 2
|
||||||
|
libexpat.github.io: 2
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
freedesktop.org/pkg-config: ^0.29
|
||||||
|
gnu.org/gperf: 3
|
||||||
|
python.org: 3
|
||||||
|
script: |
|
||||||
|
./configure --prefix={{ prefix }}
|
||||||
|
make --jobs {{ hw.concurrency }} install RUN_FC_CACHE_TEST=false
|
||||||
|
|
||||||
|
test:
|
||||||
|
fc-list
|
||||||
|
|
||||||
|
#TODO
|
||||||
|
# font_dirs = %w[
|
||||||
|
# /System/Library/Fonts
|
||||||
|
# /Library/Fonts
|
||||||
|
# ~/Library/Fonts
|
||||||
|
# ]
|
||||||
|
# font_dirs << Dir["/System/Library/Assets{,V2}/com_apple_MobileAsset_Font*"].max if MacOS.version >= :sierra
|
40
projects/freetype.org/package.yml
Normal file
40
projects/freetype.org/package.yml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
distributable:
|
||||||
|
url: https://download.savannah.gnu.org/releases/freetype/freetype-{{ version }}.tar.xz
|
||||||
|
#FIXME our linux docker image TLS doesn’t like this URL
|
||||||
|
# url: https://downloads.sourceforge.net/project/freetype/freetype{{ version.major }}/{{ version }}/freetype-{{ version }}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
- 2.12.1
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
libpng.org: 1
|
||||||
|
zlib.net: 1
|
||||||
|
sourceware.org/bzip2: 1
|
||||||
|
|
||||||
|
#FIXME the freetype-config script contains fullpaths to libpng
|
||||||
|
# not sure of a portable way to fix that, probs best is using png-config
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
freedesktop.org/pkg-config: ^0.29
|
||||||
|
#NOTE cmake ∵ autoconf failed on Linux due to not creating the .so files
|
||||||
|
cmake.org: '*'
|
||||||
|
working-directory: build
|
||||||
|
script: |
|
||||||
|
cmake .. $ARGS
|
||||||
|
make --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -DBUILD_SHARED_LIBS=true
|
||||||
|
- -DCMAKE_INSTALL_PREFIX="{{ prefix }}"
|
||||||
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
# CC: clang
|
||||||
|
# CFLAGS: -fuse-ld=lld
|
||||||
|
# VERBOSE: 1
|
||||||
|
# CMAKE_PREFIX_PATH: /opt/libpng.org/v1:/opt/sourceware.org/bzip2/v1:/opt/zlib.net/v1
|
||||||
|
|
||||||
|
#FIXME
|
||||||
|
test: true
|
|
@ -72,11 +72,10 @@ function get_deps() {
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
function attempt(obj: PlainObject) {
|
function attempt(obj: PlainObject) {
|
||||||
if (isPlainObject(obj)) {
|
if (isPlainObject(obj))
|
||||||
for (const [project, constraint] of Object.entries(obj)) {
|
for (const [project, constraint] of Object.entries(obj)) {
|
||||||
const pkg = validatePackageRequirement({ project, constraint })
|
const pkg = validatePackageRequirement({ project, constraint })
|
||||||
if (pkg) rv.push(pkg)
|
if (pkg) rv.push(pkg)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue