Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
ref: #6837
  • Loading branch information
jhheider committed Jul 29, 2024
1 parent 314252b commit f6ea5b8
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 4 deletions.
57 changes: 57 additions & 0 deletions projects/bunkus.org/mkvtoolnix/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
distributable:
url: https://mkvtoolnix.download/sources/mkvtoolnix-{{version.raw}}.tar.xz
strip-components: 1

versions:
url: https://mkvtoolnix.download/sources/
match: /mkvtoolnix-\d+(\.\d+)+\.tar\.xz/
strip:
- /^mkvtoolnix-/
- /.tar.xz$/

dependencies:
boost.org: 1
xiph.org/flac: 1
xiph.org/ogg: 1
xiph.org/vorbis: 1
fmt.dev: 11
gnu.org/gettext: 0
gnu.org/gmp: 6
pugixml.org: 1
github.com/nemtrif/utfcpp: 4
zlib.net: 1
# TODO:
qt.io: '>=6.2' # https://github.com/Homebrew/homebrew-core/blob/master/Formula/q/qt.rb
# libebml: https://github.com/Homebrew/homebrew-core/blob/master/Formula/lib/libebml.rb
# libmatroska: https://github.com/Homebrew/homebrew-core/blob/master/Formula/lib/libmatroska.rb

build: # https://github.com/Homebrew/homebrew-core/blob/master/Formula/m/mkvtoolnix.rb
dependencies:
ruby-lang.org: '*'
docbook.org/xsl: '*'
gnome.org/libxslt: '*'
script:
- ./configure $ARGS
- rake -j {{ hw.concurrency }}
- rake install
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-debug
- --with-boost={{deps.boost.org.prefix}}
- --with-docbook-xsl-root
- --disable-gui

provides:
- bin/foo
# ^^ specify the binaries or pkgx shell integration won’t work

test:
dependencies:
foo.com: '*' # asterisk means “any version, usually the latest”
script:
test "$(foo --version)" = {{version}}
# if it’s a tool check the version matches
# you should run the tool to check it works!
# if it's a library then you should *use* the library
# don’t forget to check other package.ymls in the pantry for examples!
22 changes: 18 additions & 4 deletions projects/qt.io/package.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
distributable:
url: https://download.qt.io/official_releases/qt/{{version.marketing}}/{{version}}/single/qt-everywhere-opensource-src-{{version}}.tar.xz
strip-components: 1
- url: https://download.qt.io/official_releases/qt/{{version.marketing}}/{{version}}/single/qt-everywhere-src-{{version}}.tar.xz
strip-components: 1
- url: https://download.qt.io/official_releases/qt/{{version.marketing}}/{{version}}/single/qt-everywhere-opensource-src-{{version}}.tar.xz
strip-components: 1

versions:
- 5.15.10
- url: https://download.qt.io/official_releases/qt/5.15/
match: /5\.15\.\d+/
- url: https://download.qt.io/official_releases/qt/6.5/
match: /6\.5\.\d+/
- url: https://download.qt.io/official_releases/qt/6.6/
match: /6\.6\.\d+/
- url: https://download.qt.io/official_releases/qt/6.7/
match: /6\.7\.\d+/
# - 5.15.10

dependencies:
freetype.org: '*'
gnome.org/glib: '*'
Expand Down Expand Up @@ -106,6 +118,7 @@ build:
darwin/aarch64:
ARGS:
- -no-assimp

provides:
linux:
- bin/assistant
Expand Down Expand Up @@ -204,6 +217,7 @@ provides:
- bin/uic
- bin/xmlpatterns
- bin/xmlpatternsvalidator

test:
dependencies:
linux:
Expand All @@ -216,4 +230,4 @@ test:
if: darwin
- run: ldd hello
if: linux
- ./hello
- ./hello

0 comments on commit f6ea5b8

Please sign in to comment.