mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
* Update buildsystems, update jq, add jq to core for arm. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Only report build options if they exist. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix overeager sed replacement. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * workflow debugging Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add logging for build errors. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Revert to function in each package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update jq since it needs gcc14 to build. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to buildsystems * remove deprecated gfbgraph Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix git tag for gnome_maps Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update llvm20 package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update gnome_maps deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Abstract out buildsystems_methods reporting. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Keep LIBC_VERSION const from being empty. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update crew_profile_base and libxml2 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * clarify Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update libarchive Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update libavif Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add libxml2 build comment. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add build comment to libarchive. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Don't warn for missing directory during package removal. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
55 lines
2.9 KiB
Ruby
55 lines
2.9 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class A2png < Autotools
|
|
description 'Converts plain ASCII text into PNG bitmap images.'
|
|
homepage 'https://sourceforge.net/projects/a2png/'
|
|
version '0.1.5'
|
|
license 'GPL-2'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url "https://sourceforge.net/projects/a2png/files/a2png/#{version}/a2png-#{version}.tar.bz2"
|
|
source_sha256 'd3ae1c771f5180d93f35cded76d9bb4c4cc2023dbe65613e78add3eeb43f736b'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'f08ed7619fe7e0f1ab628959841c2797ff2b30627f04bd9929d85e20805fb760',
|
|
armv7l: 'f08ed7619fe7e0f1ab628959841c2797ff2b30627f04bd9929d85e20805fb760',
|
|
x86_64: '7cab7b02b7f62682bf382d64b3dfc8b5ca01ca94036da5828e5f6d4aa91e4e77'
|
|
})
|
|
|
|
depends_on 'cairo'
|
|
depends_on 'harfbuzz' # R
|
|
depends_on 'glibc' # R
|
|
|
|
def self.patch
|
|
# Replace hardcoded /tmp path with CREW_PREFIX/tmp
|
|
system "sed -i 's,/tmp,#{File.join(CREW_PREFIX, 'tmp')},g' test/Makefile.in"
|
|
Dir.chdir 'src' do
|
|
patches = [
|
|
# FreeBSD patch to avoid -Wimplicit-function-declaration errors.
|
|
['https://raw.githubusercontent.com/freebsd/freebsd-ports/06dfcbd2cbebaf3b3b81744ed8adaa903f1b24b7/graphics/a2png/files/patch-src_image.h',
|
|
'86d2cb207854649c486485d215ffc6758a4af6ab9b1acd5f6b266dd793f5c80e'],
|
|
# FreeBSD patch to avoid C99 inline semantics.
|
|
['https://raw.githubusercontent.com/freebsd/freebsd-ports/06dfcbd2cbebaf3b3b81744ed8adaa903f1b24b7/graphics/a2png/files/patch-src_image.c',
|
|
'fece9703dbc73447135bbb9bc2fd4d3af6052f8025e516fff0592257aa1377e0'],
|
|
['https://raw.githubusercontent.com/freebsd/freebsd-ports/06dfcbd2cbebaf3b3b81744ed8adaa903f1b24b7/graphics/a2png/files/patch-src_parse.c',
|
|
'65d0bf84b659381b18536498bf82d83386fc347ac80b374f1393eaf1dc5d80b2']
|
|
]
|
|
ConvenienceFunctions.patch(patches)
|
|
end
|
|
end
|
|
|
|
# We use the lib64 directory on 64-bit systems, even though we don't have multilib support.
|
|
# This is unnecessary under FHS 3.0, but is mandatory under FHS 2.3.
|
|
# FHS 3.0: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s10.html#idm236092711120
|
|
# FHS 2.3: https://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#LIB64
|
|
# In regards to buildsystems, this is the default behaviour for CMake and Meson, but not for Autotools.
|
|
# CMake: https://gitlab.kitware.com/cmake/cmake/-/blob/v3.29.3/Modules/GNUInstallDirs.cmake?ref_type=tags#L231-236
|
|
# Meson: https://github.com/mesonbuild/meson/blob/1.4.0/mesonbuild/utils/universal.py#L1029-L1030
|
|
# Autotools: https://www.gnu.org/software/automake/manual/1.16.5/html_node/Standard-Directory-Variables.html
|
|
# a2png expects cairo to be in $prefix/lib and $prefix/include/cairo, but we sometimes have it in $prefix/lib64.
|
|
# As a result, we have to pass both directories rather than just --with-cairo-prefix=#{CREW_PREFIX}.
|
|
autotools_configure_options "--with-cairo-lib=#{CREW_LIB_PREFIX} --with-cairo-include=#{CREW_PREFIX}/include/cairo"
|
|
|
|
run_tests
|
|
end
|