Update Xterm and add some X app deps and utils (#7907)

* updste xterm + deps

* add binaries

* add ncompress to packages.yaml

* add xorg_xlsfonts

* add ncompress binaries

* Create patch section for xterm
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2023-02-08 18:49:27 -05:00
committed by GitHub
parent 84a1b73fb0
commit 9c79a898e3
6 changed files with 186 additions and 50 deletions

View File

@@ -3,23 +3,23 @@ require 'package'
class Libx11 < Package
description 'C interface to the X window system'
homepage 'https://x.org'
version '1.8.2'
version '1.8.4'
license 'X11'
compatibility 'all'
source_url 'https://gitlab.freedesktop.org/xorg/lib/libx11.git'
git_hashtag "libX11-#{version}"
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.2_armv7l/libx11-1.8.2-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.2_armv7l/libx11-1.8.2-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.2_i686/libx11-1.8.2-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.2_x86_64/libx11-1.8.2-chromeos-x86_64.tar.zst'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.4_armv7l/libx11-1.8.4-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.4_armv7l/libx11-1.8.4-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.4_i686/libx11-1.8.4-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libx11/1.8.4_x86_64/libx11-1.8.4-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'd2b730b028358c1954c91b395e16df9458bd11470f33d3763f8bc66614ff4586',
armv7l: 'd2b730b028358c1954c91b395e16df9458bd11470f33d3763f8bc66614ff4586',
i686: '57d1124f8242759a79a13f9055cd04cc6e048aa8d857d29316f36deb9e2aade2',
x86_64: '245e743d40b645bc08fc46d01d94eec907acfd4361af4022cfc2105aea747140'
aarch64: '68489f184757df334f516f130f0bc304e1652577ea645d17ee545e98627ba3ce',
armv7l: '68489f184757df334f516f130f0bc304e1652577ea645d17ee545e98627ba3ce',
i686: '8c5de7d7bc568a66ae1f52f9c0beda5f53ddd8b31b5ae9ec80574ce6b189e808',
x86_64: '70456b24c640dea2012d0ca1b278a18f4fd8dfa6d664b54562552ce1b52c7ef4'
})
depends_on 'glibc' # R

View File

@@ -3,31 +3,39 @@ require 'package'
class Libxpm < Package
description 'X.org X Pixmap Library'
homepage 'https://www.x.org'
version '3.5.12'
version '3.5.15'
license 'custom'
compatibility 'all'
source_url 'https://www.x.org/archive//individual/lib/libXpm-3.5.12.tar.gz'
source_sha256 '2523acc780eac01db5163267b36f5b94374bfb0de26fc0b5a7bee76649fd8501'
source_url 'https://www.x.org/archive/individual/lib/libXpm-3.5.15.tar.gz'
source_sha256 '2a9bd419e31270593e59e744136ee2375ae817322447928d2abb6225560776f9'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.12_armv7l/libxpm-3.5.12-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.12_armv7l/libxpm-3.5.12-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.12_i686/libxpm-3.5.12-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.12_x86_64/libxpm-3.5.12-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.15_armv7l/libxpm-3.5.15-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.15_armv7l/libxpm-3.5.15-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.15_i686/libxpm-3.5.15-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxpm/3.5.15_x86_64/libxpm-3.5.15-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'c38c518e3fd530ad13fd27dc67d5a14f5eb06b2a5259c38a321e80e02541a9e8',
armv7l: 'c38c518e3fd530ad13fd27dc67d5a14f5eb06b2a5259c38a321e80e02541a9e8',
i686: '2ea376f91f067e0191dafb7aad088ad1ed7408997e3384e8c820344fc2c0373f',
x86_64: '8690186c140efb01a93ed7f0142a12d7e591ad7a336494ae0e9df44b754af239'
aarch64: 'dda20cb64733b2ad86fd1073547056006b0e4214f86a0fcf72cebfa309d5bc29',
armv7l: 'dda20cb64733b2ad86fd1073547056006b0e4214f86a0fcf72cebfa309d5bc29',
i686: '6b1e51fbcf3ae2ea5a21ffa84ea8815f0dee3db6a0c8fd89bccd8792f8388a3c',
x86_64: 'c154aa0ff14f8fffd52031e56362e48dbdf6217c84a99e5bf9e0bc4598a8a661'
})
depends_on 'libx11'
depends_on 'util_macros'
depends_on 'gettext'
depends_on 'glibc' # R
depends_on 'libbsd' # R
depends_on 'libmd' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxdmcp' # R
depends_on 'ncompress' => :build
depends_on 'gcc' # R
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "./configure #{CREW_OPTIONS}"
system 'make'
end

38
packages/ncompress.rb Normal file
View File

@@ -0,0 +1,38 @@
# Adapted from Arch Linux ncompress PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/ncompress/trunk/PKGBUILD
require 'package'
class Ncompress < Package
description 'a fast, simple LZW file compressor'
homepage 'https://github.com/vapier/ncompress'
version '5.0'
license 'PublicDomain'
compatibility 'all'
source_url 'https://github.com/vapier/ncompress/archive/v5.0.tar.gz'
source_sha256 '96ec931d06ab827fccad377839bfb91955274568392ddecf809e443443aead46'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ncompress/5.0_armv7l/ncompress-5.0-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ncompress/5.0_armv7l/ncompress-5.0-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ncompress/5.0_i686/ncompress-5.0-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ncompress/5.0_x86_64/ncompress-5.0-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'a3e3069054eccfc3011cc705f49123bb08fdb5de39e2848749a584be0a406d35',
armv7l: 'a3e3069054eccfc3011cc705f49123bb08fdb5de39e2848749a584be0a406d35',
i686: 'a0e95bd06aa844286d5b4a92ef5d65073d152a82ab63384a3dcd3b3c4f1d0ad7',
x86_64: 'a84ba675a89c4184c1e2495b0a016f964ff75f2b0f2a977552cf7fd94be136b4'
})
depends_on 'glibc'
def self.build
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} PREFIX=#{CREW_PREFIX} install_core"
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/uncompress", "#{CREW_DEST_PREFIX}/bin/uncompress.real"
end
end

40
packages/xorg_xlsfonts.rb Normal file
View File

@@ -0,0 +1,40 @@
# Adapted from Arch Linux xorg-xlsfonts PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/xorg-xlsfonts/trunk/PKGBUILD
require 'package'
class Xorg_xlsfonts < Package
description 'List available X fonts'
homepage 'https://xorg.freedesktop.org/'
version '1.0.7'
license 'X11'
compatibility 'all'
source_url 'https://xorg.freedesktop.org/archive/individual/app/xlsfonts-1.0.7.tar.xz'
source_sha256 '7b726945a967b44c35cddee5edd74802907a239ce2e2e515730b8a32c8e50465'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xorg_xlsfonts/1.0.7_armv7l/xorg_xlsfonts-1.0.7-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xorg_xlsfonts/1.0.7_armv7l/xorg_xlsfonts-1.0.7-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xorg_xlsfonts/1.0.7_i686/xorg_xlsfonts-1.0.7-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xorg_xlsfonts/1.0.7_x86_64/xorg_xlsfonts-1.0.7-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'a86a0ffa9e86dee2df9711303b9b3464773af0684b912e3487cf361de854ccea',
armv7l: 'a86a0ffa9e86dee2df9711303b9b3464773af0684b912e3487cf361de854ccea',
i686: '4e168d3d8176c920a769cc8f7840a73dcfca3b85974678310422d9f4c6a96110',
x86_64: 'cc8c7063814815f5752fc70ad12b61dc5891db6b2c0196eea937dde69096d9c5'
})
depends_on 'glibc' # R
depends_on 'libx11' # R
depends_on 'util_macros' => ':build'
def self.build
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end

View File

@@ -3,46 +3,86 @@ require 'package'
class Xterm < Package
description 'The xterm program is a terminal emulator for the X Window System.'
homepage 'https://invisible-island.net/xterm/'
version '362'
version '378c'
license 'MIT'
compatibility 'all'
source_url 'https://invisible-mirror.net/archives/xterm/xterm-362.tgz'
source_sha256 '1d4ffe226fa8f021859bbc3007788ff63a46a31242d9bd9a7bd7ebe24e81aca2'
source_url 'https://github.com/ThomasDickey/xterm-snapshots.git'
git_hashtag "xterm-#{version}"
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/362_armv7l/xterm-362-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/362_armv7l/xterm-362-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/362_i686/xterm-362-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/362_x86_64/xterm-362-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/378c_armv7l/xterm-378c-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/378c_armv7l/xterm-378c-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/378c_i686/xterm-378c-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xterm/378c_x86_64/xterm-378c-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'e61f8a1bfc06e700ec42b0d3f7e97b9b1e0f8120a33fbfc6efeba3eabda24126',
armv7l: 'e61f8a1bfc06e700ec42b0d3f7e97b9b1e0f8120a33fbfc6efeba3eabda24126',
i686: '7912500763cca0d85c1f6d84ec4cce6cbd5b4c9a70090dfe49cc94a395b7b84b',
x86_64: 'c6dd0a0eebbe9a84af571c79ad1ecb925b1a16333bb6e75280f5818c86faedb5'
aarch64: 'a8302b75325cda9acbf59929ecaf791281e2710b1c9e128354844145aa9c2d40',
armv7l: 'a8302b75325cda9acbf59929ecaf791281e2710b1c9e128354844145aa9c2d40',
i686: '235f5938788fbc494bac5bac66a15259795ddad186b081ace5a21092f995942c',
x86_64: '88353d7c42d3a91c5d7f1440d78808c6625cbf5cb9a186ebe10a8a2caeda37af'
})
depends_on 'pcre'
depends_on 'libxaw' => :build
depends_on 'sommelier'
depends_on 'freetype' # R
depends_on 'glibc' # R
depends_on 'harfbuzz' # R
depends_on 'libice' # R
depends_on 'libutempter' # R
depends_on 'libx11' # R
depends_on 'libxaw' # R
depends_on 'libxext' # R
depends_on 'libxft' # R
depends_on 'libxinerama' # R
depends_on 'libxmu' # R
depends_on 'libxpm' # R
depends_on 'libxt' # R
depends_on 'luit' => :build
depends_on 'ncurses' # R
depends_on 'pcre' # R
no_env_options
def self.patch
system "sed -i '/^LDFLAGS/ s/$/ -DUSE_TERMINFO=1 -ltinfo/' Makefile.in"
end
def self.build
system './configure',
'--with-x',
'--with-pcre',
'--with-xinerama',
'--enable-dabbrev',
'--enable-toolbar',
'--with-pkg-config',
'--enable-exec-xterm',
'--enable-16bit-chars',
'--enable-dec-locator',
'--enable-double-buffer',
'--enable-readline-mouse',
'--enable-regis-graphics',
'--enable-sixel-graphics',
"--prefix=#{CREW_PREFIX}",
"--with-xpm=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}"
system "./configure #{CREW_OPTIONS} \
--disable-imake \
--enable-16bit-chars \
--enable-256-color \
--enable-88-color \
--enable-ansi-color \
--enable-broken-osc \
--enable-broken-st \
--enable-dabbrev \
--enable-dec-locator \
--enable-double-buffer \
--enable-doublechars \
--enable-exec-xterm \
--enable-freetype \
--enable-i18n \
--enable-load-vt-fonts \
--enable-logging \
--enable-luit \
--enable-mini-luit \
--enable-narrowproto \
--enable-readline-mouse \
--enable-regis-graphics \
--enable-sixel-graphics \
--enable-tcap-query \
--enable-toolbar \
--enable-warnings \
--enable-wide-chars \
--with-app-defaults=#{CREW_PREFIX}/share/X11/app-defaults/ \
--with-pcre \
--with-pkg-config \
--with-tty-group=tty \
--with-utempter \
--with-x \
--with-xinerama \
--with-xpm=#{CREW_PREFIX}"
system 'make'
end

View File

@@ -5636,6 +5636,11 @@ url: http://ftp.ncftp.com/ncftp
activity: none
---
kind: url
name: ncompress
url: https://github.com/vapier/ncompress/releases
activity: low
---
kind: url
name: nconvert
url: https://download.xnview.com/
activity: low
@@ -8736,6 +8741,11 @@ url: https://gitlab.freedesktop.org/xorg/app/xeyes/-/tags
activity: low
---
kind: url
name: xorg_xlsfonts
url: https://gitlab.freedesktop.org/xorg/app/xlsfonts/-/tags
activity: low
---
kind: url
name: xorg_xset
url: https://gitlab.freedesktop.org/xorg/app/xset/-/tags
activity: low