mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Adjust gnu sources to not use ftpmirror. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * ed => 1.22.5 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Mark packages from successful builds as automatically buildable. * gnu_avoid_ftpmirror: Package File Update Run on linux/386 container. * gnu_avoid_ftpmirror: Package File Update Run on linux/amd64 container. * gnu_avoid_ftpmirror: Package File Update Run on linux/arm/v7 container. * Truncate PR Title length as per GitHub requirements. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust gnuastro compatibility. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Ed Reel <edreel@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
60 lines
2.6 KiB
Ruby
60 lines
2.6 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class Gettext < Autotools
|
|
description 'GNU gettext utilities are a set of tools that provides a framework to help other GNU packages produce multi-lingual messages.'
|
|
homepage 'https://gnu.org/s/gettext/'
|
|
version '1.0-1'
|
|
license 'GPL-3+ and LGPL-2.1+'
|
|
compatibility 'all'
|
|
# source_url 'https://github.com/autotools-mirror/gettext.git'
|
|
# git_hashtag "v#{version.split('-')[0]}"
|
|
source_url "https://ftp.gnu.org/gnu/gnu/gettext/gettext-#{version.split('-')[0]}.tar.lz"
|
|
source_sha256 'd6342cbe1411a2fe7d139bfed80c2d63b1babc92acfedc72501cc105184f61ee'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '9704567e8c727eedfa605236c11f9910b7a751b57e2118741d3c4ef0c619d901',
|
|
armv7l: '9704567e8c727eedfa605236c11f9910b7a751b57e2118741d3c4ef0c619d901',
|
|
i686: 'cc15e500550a2b5c0376dbad660e8d689e3a9f342edcb8870707ce9b333d0687',
|
|
x86_64: '51a3ac85d367f61ebb115acb4dfdfa592e1cdd2910245322c2ceedacd0fd4b86'
|
|
})
|
|
|
|
depends_on 'acl' # R
|
|
depends_on 'attr' # R
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'gperf' => :build
|
|
depends_on 'libunistring' # R
|
|
depends_on 'libxml2' # R
|
|
depends_on 'ncurses' # R
|
|
depends_on 'openjdk8' => :build
|
|
depends_on 'wget2' => :build
|
|
|
|
def self.patch
|
|
# patches = [
|
|
# # See https://savannah.gnu.org/bugs/?67999
|
|
# ['https://github.com/autotools-mirror/gettext/commit/633b7fdef68b660802ce190f1cf0ab64eb8c3e5e.patch', '64b4d9506988c71c1a703cd731bfac204d1221e75ed794ee43109d47d9a19d7c']
|
|
# ]
|
|
# ConvenienceFunctions.patch(patches) if version.split('-')[0] == '1.0'
|
|
# See https://savannah.gnu.org/bugs/?67999
|
|
system "sed -i '/patch $@ < $(srcdir)\\/po-fetch.1.diff/d' gettext-tools/man/Makefile.am" if version.split('-')[0] == '1.0'
|
|
end
|
|
|
|
# --without-git is needed as per https://github.com/autotools-mirror/gettext/blob/master/PACKAGING
|
|
# to make sure $prefix/share/gettext/archive.dir.tar.* is installed.
|
|
autotools_configure_options '--disable-static \
|
|
--enable-shared \
|
|
--with-pic \
|
|
--with-xz \
|
|
--without-git \
|
|
--without-included-gettext'
|
|
|
|
autotools_install_extras do
|
|
# This fixes a missing archive message from autopoint.
|
|
# #{CREW_DEST_PREFIX}/share/gettext/archive.dir.tar.xz from our
|
|
# build keeps getting corrupted for some reason.
|
|
downloader "https://github.com/autotools-mirror/gettext/raw/refs/tags/v#{version.split('-')[0]}/gettext-tools/autotools/archive.dir.tar", 'e32c5de9b39a70092e9a82e83ebffb4c0a8c698cf3acbdcbb4902dfebdf767f8', "#{CREW_DEST_PREFIX}/share/gettext/archive.dir.tar"
|
|
system "xz -v -f #{CREW_DEST_PREFIX}/share/gettext/archive.dir.tar", chdir: "#{CREW_DEST_PREFIX}/share/gettext"
|
|
end
|
|
end
|