mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* python3.10ize mypaint * python3.10ize oci_cli * python3.10ize py3_agate * python3.10ize py3_agate_dfb * python3.10ize py3_agate_excel * python3.10ize py3_agate_sql * python3.10ize py3_alabaster * python3.10ize py3_appdirs * python3.10ize py3_argcomplete * python3.10ize py3_arrow * python3.10ize py3_attrs * python3.10ize py3_babel * python3.10ize py3_beautifulsoup4 * python3.10ize py3_certifi * python3.10ize py3_cffi * python3.10ize py3_chardet * python3.10ize py3_click * python3.10ize py3_colorama * python3.10ize py3_configparser * python3.10ize py3_cryptography * python3.10ize py3_cssselect * python3.10ize py3_cython * python3.10ize py3_dateutil * python3.10ize py3_dbfread * python3.10ize py3_decorator * python3.10ize py3_dicttoxml * python3.10ize py3_distlib * python3.10ize py3_dnspython * python3.10ize py3_docutils * python3.10ize py3_docx2txt * python3.10ize py3_ebooklib * python3.10ize py3_et_xmlfile * python3.10ize py3_extract_msg * python3.10ize py3_fasteners * python3.10ize py3_filelock * python3.10ize py3_flask * python3.10ize py3_future * python3.10ize py3_greenlet * python3.10ize py3_idna * python3.10ize py3_imagesize * python3.10ize py3_imapclient * python3.10ize py3_impacket * python3.10ize py3_importlib_metadata * python3.10ize py3_iniconfig * python3.10ize py3_isodate * python3.10ize py3_itsdangerous * python3.10ize py3_jeepney * python3.10ize py3_jinja2 * python3.10ize py3_jmespath * python3.10ize py3_json2xml * python3.10ize py3_keyring * python3.10ize py3_ldap3 * python3.10ize py3_ldapdomaindump * python3.10ize py3_leather * python3.10ize py3_libevdev * python3.10ize py3_libxml2 * python3.10ize py3_lxml * python3.10ize py3_magic * python3.10ize py3_mako * python3.10ize py3_markdown * python3.10ize py3_markupsafe * python3.10ize py3_minidb * python3.10ize py3_nuitka * python3.10ize py3_numpy * python3.10ize py3_oci * python3.10ize py3_olefile * python3.10ize py3_openpyxl * python3.10ize py3_parsedatetime * python3.10ize py3_pathspec * python3.10ize py3_pdfminer_six * python3.10ize py3_pillow * python3.10ize py3_pipdeptree * python3.10ize py3_pluggy * python3.10ize py3_ply * python3.10ize py3_pptx * python3.10ize py3_psutil * python3.10ize py3_py * python3.10ize py3_pyasn1 * python3.10ize py3_pycairo * python3.10ize py3_pycryptodome * python3.10ize py3_pycryptodomex * python3.10ize py3_pyelftools * python3.10ize py3_pygments * python3.10ize py3_pyicu * python3.10ize py3_pyopenssl * python3.10ize py3_pyparsing * python3.10ize py3_pystemmer * python3.10ize py3_pyte * python3.10ize py3_pytest * python3.10ize py3_pytimeparse * python3.10ize py3_pytz * python3.10ize py3_pyudev * python3.10ize py3_pyyaml * python3.10ize py3_requests * python3.10ize py3_retrying * python3.10ize py3_secretstorage * python3.10ize py3_semantic_version * python3.10ize py3_setuptools * python3.10ize py3_setuptools_rust * python3.10ize py3_six * python3.10ize py3_slugify * python3.10ize py3_smartypants * python3.10ize py3_snowballstemmer * python3.10ize py3_sortedcontainers * python3.10ize py3_speechrecognition * python3.10ize py3_sphinxcontrib_applehelp * python3.10ize py3_sphinxcontrib_devhelp * python3.10ize py3_sphinxcontrib_htmlhelp * python3.10ize py3_sphinxcontrib_jsmath * python3.10ize py3_sphinxcontrib_qthelp * python3.10ize py3_sphinxcontrib_serializinghtml * python3.10ize py3_sqlalchemy * python3.10ize py3_terminaltables * python3.10ize py3_text_unidecode * python3.10ize py3_toml * python3.10ize py3_tox * python3.10ize py3_typogrify * python3.10ize py3_tzlocal * python3.10ize py3_urllib3 * python3.10ize py3_urwid * python3.10ize py3_virtualenv * python3.10ize py3_wcwidth * python3.10ize py3_werkzeug * python3.10ize py3_wheel * python3.10ize py3_xlrd * python3.10ize py3_xlsxwriter * python3.10ize py3_xmltodict * python3.10ize py3_yamllint * python3.10ize py3_zipp * python3.10ize pygobject * python3.10ize s3cmd * python3.10ize speedtest_cli * python3.10ize sphinx * python3.10ize sshuttle * python3.10ize textract * python3.10ize thefuck * python3.10ize urlwatch * python3.10ize xcb_proto * python3.10ize youtube_dl * python3.10ize youtubedl * Add initial x86_64 packages * Add armv7l binaries * fix duplicity version * add x86_64 and armv7l binaries * Add x86_64 llvm builds (note stage1 is needed to build main package). * cairo libffi rebuild * Add pygobject and wayland binary with version bump * Add py3_libxml2 * add cairo builds * add more binaries * Add armv7l llvm_stage1 binaries * llvm binaries for armv7l * add more binaries * add more libffi-ed x86_64 binaries * Add more binaries * add gjs * add more armv7l builds * add gnome libffi deps * Add armv7l binaries * update binaries for libffi, itstool, py3_pygments * i686 test * add more i686 binaries * add llvm i686 patch * Add i686 llvm binaries * more i686 builds * add more i686 builds * add more i686 builds * more i686 * Add i686 tesseract * fix llvm for i686 * Add i686 ffmpeg * replace i686 binary for glib * add more gnutls builds * Add armv7l gnutls * add binaries * Add meson 0.60.0 * Add i686 binary for gsettings_desktop_schemas * Fix youtube_dl version number * initial add of openmp (removed from llvm) * fix openmp package * update llvm and openmp * mpv -> 0.34.0 * glib -> 2.70.1 * meson -> 0.60.1 * Update llvm for x86, armv7l building... * Add new armv7l llvm build * Add new i686 llvm build * i686 llvm_stage1 rebuild * vulkan -> 1.2.200 * add vulkan binaries * glib -> 2.70.2 * pre-rebuild of wireshark which depends upon libffi * add mesa and vulkan updates * libcurl -> 7.80.0 * update binaries for c_ares libmaxminddb * update libdrm * update llvm, add new binaries for wireshark, libdrm * add more fixed i686 binaries * add llvm x86_64 binary * update gtk4, add llvm build for i686 * rebuilds and i686 additions * more i686 builds * update cairo and add i686 build * update libx11 * add llvm armv7l binary * update mesa i686 binaey * more i686 rebuilds * update xorg_server builds * update glib * add glib dep to wireshark * add i686 binary for libxcvt * updates to remove iconv dep * update ffmpeg * add x86_64 rebuilds * working ffmpeg 4.4.1 * add armv7l builds * Add python abimap (needed by libssh) * add binaries for py3_abimap * add libx11 binaries * add new builds * add builds * add i686 binaries * add numpy armv7l binaries * Add mypaint binaries * use cmake for c_ares * update xorg_cf_files * fix curl for i686 * add libxcb binaries * add armv7l oci_cli binaries * add asciinema binaries * add mutter comment about compat * add mpv binary * add armv7l binary * Add more binaries * add binaries for youtube_dl * add note about gsd compatibility * update xcb packages with armv7l binaries * update packages, python -> 3.10.1 * Add explanation to curl postinstall Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@umich.edu>
104 lines
3.4 KiB
Ruby
104 lines
3.4 KiB
Ruby
require 'package'
|
|
|
|
class Mpv < Package
|
|
description 'Video player based on MPlayer/mplayer2'
|
|
homepage 'https://mpv.io/'
|
|
@_ver = '0.34.0'
|
|
version @_ver
|
|
license 'LGPL-2.1+, GPL-2+, BSD, ISC and GPL-3+'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/mpv-player/mpv.git'
|
|
git_hashtag "v#{@_ver}"
|
|
|
|
binary_url({
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mpv/0.34.0_i686/mpv-0.34.0-chromeos-i686.tpxz',
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mpv/0.34.0_armv7l/mpv-0.34.0-chromeos-armv7l.tpxz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mpv/0.34.0_armv7l/mpv-0.34.0-chromeos-armv7l.tpxz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/mpv/0.34.0_x86_64/mpv-0.34.0-chromeos-x86_64.tpxz'
|
|
})
|
|
binary_sha256({
|
|
i686: 'f74ba4cade2a5bbf454d4541f868022e135fc83771aadb74e73744374c73f1f6',
|
|
aarch64: '02e091134eedd1a0d468ce9a1032048e1e39d4310df919d41ce15a2ec5995c97',
|
|
armv7l: '02e091134eedd1a0d468ce9a1032048e1e39d4310df919d41ce15a2ec5995c97',
|
|
x86_64: '5cfe927d93d12fa456828b62afebff35d182b7105052f6186aef820a40436ebc'
|
|
})
|
|
|
|
depends_on 'py3_docutils' => :build
|
|
depends_on 'vulkan_headers' => :build
|
|
depends_on 'alsa_lib' # R
|
|
depends_on 'ffmpeg' # R
|
|
depends_on 'jack' # R
|
|
depends_on 'lcms' # R
|
|
depends_on 'libarchive' # R
|
|
depends_on 'libass' # R
|
|
depends_on 'libbluray' # R
|
|
depends_on 'libcaca' # R
|
|
depends_on 'libcdio_paranoia' # R
|
|
depends_on 'libcdio' # R
|
|
depends_on 'libdrm' # R
|
|
depends_on 'libdvdnav' # R
|
|
depends_on 'libdvdread' # R
|
|
depends_on 'libjpeg' # R
|
|
depends_on 'libsdl2' # R
|
|
depends_on 'libva' # R
|
|
depends_on 'libvdpau' # R
|
|
depends_on 'libx11' # R
|
|
depends_on 'libxext' # R
|
|
depends_on 'libxinerama' # R
|
|
depends_on 'libxkbcommon' # R
|
|
depends_on 'libxrandr' # R
|
|
depends_on 'libxss' # R
|
|
depends_on 'libxv' # R
|
|
depends_on 'openmp' # R
|
|
depends_on 'luajit' # R
|
|
depends_on 'mesa' # R
|
|
depends_on 'mujs' # R
|
|
depends_on 'pipewire' # R
|
|
depends_on 'pulseaudio' # R
|
|
depends_on 'rubberband' # R
|
|
depends_on 'shaderc' # R
|
|
depends_on 'wayland' # R
|
|
depends_on 'zimg' # R
|
|
depends_on 'xdg_base' # L
|
|
depends_on 'vulkan_icd_loader' # L
|
|
depends_on 'sommelier' # L
|
|
|
|
def self.build
|
|
system './bootstrap.py'
|
|
system "#{CREW_ENV_OPTIONS} \
|
|
./waf \
|
|
configure \
|
|
--confdir=#{CREW_PREFIX}/etc/mpv \
|
|
--enable-cdda \
|
|
--enable-dvdnav \
|
|
--enable-gl-x11 \
|
|
--enable-libarchive \
|
|
--enable-libmpv-shared \
|
|
--enable-sdl2 \
|
|
#{CREW_OPTIONS.sub(/--build=.*/, '')}"
|
|
system "./waf -j#{CREW_NPROC}"
|
|
# mpv conf file
|
|
File.write 'mpv.conf', <<~MPVCONF
|
|
hwdec=auto-safe
|
|
hwdec-codecs=all
|
|
fs=yes
|
|
MPVCONF
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX
|
|
system './waf', "--destdir=#{CREW_DEST_DIR}", 'install'
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/mpv"
|
|
FileUtils.install 'mpv.conf', "#{CREW_DEST_PREFIX}/etc/mpv/mpv.conf", mode: 0o644
|
|
end
|
|
|
|
def self.postinstall
|
|
# Use XDG_CONFIG_HOME location for config file stub
|
|
# @xdg_config_home = ENV['XDG_CONFIG_HOME']
|
|
# FileUtils.mkdir_p @xdg_config_home
|
|
# system "touch #{@xdg_config_home}/mpv"
|
|
system "#{CREW_PREFIX}/bin/gtk-update-icon-cache -ft #{CREW_PREFIX}/share/icons/* || true"
|
|
system "#{CREW_PREFIX}/bin/gtk4-update-icon-cache -ft #{CREW_PREFIX}/share/icons/* || true"
|
|
end
|
|
end
|