-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
5 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,23 @@ | ||
# this is a basic template for packages we strongly recommend looking at the | ||
# contents of both: | ||
# | ||
# * https://github.com/teaxyz/pantry.core | ||
# * https://github.com/teaxyz/pantry.extra | ||
# | ||
# as a learning guide and reference. For example, if you are package a `go` | ||
# project, then browse the listings and find a go package. | ||
|
||
|
||
# this is the source tarball. Swap the version out for {{version}} or we won’t | ||
# be able to upgrade the package when it updates! | ||
distributable: | ||
url: https://github.com/quarto-dev/quarto-cli/releases/tag/v{{version}} | ||
url: https://github.com/quarto-dev/quarto-cli/archive/refs/tags/v{{version}}.tar.gz | ||
strip-components: 1 | ||
|
||
# if there’s a github then we can parse the versions | ||
versions: | ||
# if the repo has a github then we can parse versions | ||
# this should be one of these (remove the rest or the YAML won’t parse) | ||
# github: user/repo # reads github release *names* | ||
# github: quarto-dev/quarto-cli/tags # reads github tags from github | ||
github: quarto-dev/quarto-cli/releases/tags # reads github *releases* but uses the tags of those releases | ||
# ^^ REMOVE ALL BUT ONE! | ||
|
||
# often maintainers prepend or append junk, this can be an array of regexes | ||
strip: /^v/ | ||
|
||
dependencies: | ||
# to figure out dependencies you can read the project’s README | ||
# however it is often easier to read the [brew formula](https://formulae.brew.sh/formula/) | ||
# | ||
# see tea.xyz/+/ for the packages tea provides | ||
# if you need a package that isn’t there, you may need to build it! | ||
# we can help you: https://discord.tea.xyz | ||
# | ||
# see semver.org for version specifications | ||
lua.org: '*' | ||
|
||
build: | ||
dependencies: | ||
tea.xyz/gx/cc: c99 | ||
tea.xyz/gx/make: '*' | ||
# ^^ often packages need dependencies to build, it is very common for | ||
# packages to need a C compiler and make, the above provide those | ||
script: | | ||
./configure $ARGS | ||
# make --jobs {{ hw.concurrency }} install | ||
./configure | ||
# it’s extremely common for packages to require the above | ||
./configure.sh | ||
# ^FIXME configure to create relocatable symlinks, not write to /usr/bin | ||
|
||
provides: | ||
- bin/quarto | ||
|
||
test: | ||
script: | ||
test "$(foo --version)" = {{version}} | ||
# ^^ we prefer that you test the functionality of the package works, but | ||
# we know tests are tedious, so will (for now) accept a simple version check | ||
test "$(quarto --version)" = {{version}} | ||
# FIXME write a proper test rendering a QMD to HTML |