Files
chromebrew/packages/flex.rb
Satadru Pramanik, DO, MPH, MEng 3fbdb53c5f version.rb: Allow rust package version to be updated. — perl_libintl_perl → 1.35,ag → 2.2.0,autoconf → 2.72,brotli → 1.1.0,buildessential,bzip2 → 1.0.8-2,doxygen → 1.14.0,findutils → 4.10.0,flex → 2.6.4-2,gmp → 6.3.0,gnu_time → 1.9,intltool → 0.51.0-1,libunbound → 1.24.0,linuxheaders → 6.11,make → 4.4.1,mawk → 1.3.4-20250131,patch → 2.8,pcre → 8.45,perl_text_unidecode → 1.30,perl_unicode_eastasianwidth → 12.0,perl_xml_parser → 2.47,popt → 1.19,progress → 0.17,rdfind → 1.7.0,readline → 8.3,slang → 2.3.3,tar → 1.35,texinfo → 7.2,xdg_base → 0.8,zlib → 1.3.1-3 (#12860)
* version.rb: Allow rust package version to be updated.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update xdg_base package.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* perl_locale_messages => perl_libintl_perl

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* popt => 1.19

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* mawk => 1.3.4-20250131

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* rdfind => 1.7.0

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* doxygen => 1.14.0

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fixup anitya mappings and package versions.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* libunbound => 1.24.0

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* progress => 0.17

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update ag

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust packages.yml

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add gnu_time to essential packages since it is used in tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* suggested changes

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* more suggested changes

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2025-09-19 19:51:53 +00:00

38 lines
1.5 KiB
Ruby

require 'buildsystems/autotools'
class Flex < Autotools
description 'Flex (The Fast Lexical Analyzer) is a fast lexical analyser generator tool for generating programs that perform pattern-matching on text.'
homepage 'https://www.gnu.org/software/flex/'
version '2.6.4-2'
license 'BSD'
compatibility 'all'
source_url "https://github.com/westes/flex/releases/download/v#{version.split('-').first}/flex-#{version.split('-').first}.tar.gz"
source_sha256 'e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '7968e998075c49c0b49d0db6d9d2fc49f1e1e35a283a1cd450db8b149191cfcc',
armv7l: '7968e998075c49c0b49d0db6d9d2fc49f1e1e35a283a1cd450db8b149191cfcc',
i686: '9fd42095b66754a94d1b09b242966275efcd41b39f75ca0ba504b75125a38bf9',
x86_64: 'c2dc3fd71ce8109b2bd2d8fa233e0082a772d50d0dcf5629cc105f2c5d8be8b6'
})
depends_on 'bison' => :build
depends_on 'glibc' # R
depends_on 'm4' => :build
autotools_configure_options '--with-pic --disable-static --enable-shared'
def self.patch
downloader 'https://gitlab.archlinux.org/archlinux/packaging/packages/flex/-/raw/main/flex-pie.patch?ref_type=heads&inline=false',
'20f3cce6b0ea6ab67a902a46b89c292b959994dedcbe6ee5d187f9bba1408b0e', 'flex-pie.patch'
system 'patch -p1 -i flex-pie.patch'
system 'autoreconf -fiv'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_s "#{CREW_PREFIX}/bin/flex", "#{CREW_DEST_PREFIX}/bin/lex"
end
end