From 8605d241734c3374cd6c4251bc4e2eb1e5a48e03 Mon Sep 17 00:00:00 2001 From: David Dobrinskiy Date: Mon, 6 Mar 2023 18:01:33 +0500 Subject: [PATCH 1/4] +quarto.org quarto.org is a framework to render scientific documents from markdown docs or jupyter in python, julia and other languages --- projects/quarto.org/package.yml | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 projects/quarto.org/package.yml diff --git a/projects/quarto.org/package.yml b/projects/quarto.org/package.yml new file mode 100644 index 0000000000..58025da83b --- /dev/null +++ b/projects/quarto.org/package.yml @@ -0,0 +1,59 @@ +# 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}} + 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 + +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 From e6f3fd914a087d89399d6c2b181718b772562cd9 Mon Sep 17 00:00:00 2001 From: David Dobrinskiy Date: Mon, 6 Mar 2023 18:18:04 +0500 Subject: [PATCH 2/4] fix url remove init comments --- projects/quarto.org/package.yml | 46 ++++----------------------------- 1 file changed, 5 insertions(+), 41 deletions(-) diff --git a/projects/quarto.org/package.yml b/projects/quarto.org/package.yml index 58025da83b..61bfcb433c 100644 --- a/projects/quarto.org/package.yml +++ b/projects/quarto.org/package.yml @@ -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 From 847c59d19633447c48fcc64d8c53789e7d943b19 Mon Sep 17 00:00:00 2001 From: David Dobrinskiy Date: Mon, 6 Mar 2023 18:20:30 +0500 Subject: [PATCH 3/4] add dependencies --- projects/quarto.org/package.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/quarto.org/package.yml b/projects/quarto.org/package.yml index 61bfcb433c..56118cbc72 100644 --- a/projects/quarto.org/package.yml +++ b/projects/quarto.org/package.yml @@ -10,6 +10,9 @@ dependencies: lua.org: '*' build: + dependencies: + curl.se: '*' + info-zip.org/unzip: '*' script: | ./configure.sh # ^FIXME configure to create relocatable symlinks, not write to /usr/bin From 2afb3cc65eecd9b81e215a8f3eb6c680a7462d71 Mon Sep 17 00:00:00 2001 From: David Dobrinskiy Date: Mon, 6 Mar 2023 18:26:11 +0500 Subject: [PATCH 4/4] configure root folder --- projects/quarto.org/package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/quarto.org/package.yml b/projects/quarto.org/package.yml index 56118cbc72..8879bffa60 100644 --- a/projects/quarto.org/package.yml +++ b/projects/quarto.org/package.yml @@ -16,6 +16,8 @@ build: script: | ./configure.sh # ^FIXME configure to create relocatable symlinks, not write to /usr/bin + env: + - QUARTO_ROOT=${{prefix}} provides: - bin/quarto