Files
chromebrew/packages/asciidoc.rb
Satadru Pramanik, DO, MPH, MEng 8473668c0d Store perl/python/icu/ruby versions for packages as constants in const.rb (#10528)
* Adjust const.rb and packages to use generated version constants.

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

* Update gem binaries

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

* Update update scripts.

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

* Libxml2 => 2.13.4

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

* Adjust install.sh to handle new gem package versioning suffix.

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

* update openimageio

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

* update py3_ruff

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

* add pip binaries

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

* Move activesupport gem behind requre_gem function.

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

* Adjust file path in ruby_pry.

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

* lint

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

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-26 15:27:10 -05:00

38 lines
1.1 KiB
Ruby

require 'package'
class Asciidoc < Package
description 'AsciiDoc is a presentable text document format for writing articles, UNIX man pages and other small to medium sized documents.'
homepage 'https://asciidoc.org/'
@_ver = '10.2.0'
version "#{@_ver}-#{CREW_PY_VER}"
license 'GPL-2'
compatibility 'all'
source_url 'https://github.com/asciidoc-py/asciidoc-py.git'
git_hashtag @_ver
binary_compression 'tar.zst'
binary_sha256({
aarch64: '71b9fc4de0279a23adec68f88be4ef8df3bd02169b3a3396950926b429f9042a',
armv7l: '71b9fc4de0279a23adec68f88be4ef8df3bd02169b3a3396950926b429f9042a',
i686: 'cf2d072e56e52e07db5e796291b40cfcc8e7f545700a8c521792c9df468ee46f',
x86_64: '86d9dd8aa8b03b603649321ad5ca4e7dde3d4afc49900aa995f9e4458574d2a4'
})
depends_on 'python3'
def self.prebuild
system 'autoconf'
system "sed -i 's,/etc/vim,#{CREW_PREFIX}/etc/vim,g' Makefile.in"
end
def self.build
system "./configure #{CREW_CONFIGURE_OPTIONS}"
system 'make'
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/vim"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end