Archived
3
0

working directory now configurable

This commit is contained in:
Karchnu 2021-02-22 00:31:51 +01:00
parent 5ad65f00ec
commit 4decf96f10
2 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,9 @@ packages-directory: /usr/local/baguette/pkg/
# where to download sources # where to download sources
sources-directory: /usr/local/baguette/src/ sources-directory: /usr/local/baguette/src/
# where to build packages
working-directory: /tmp/packaging
# the slot we want for our packages # the slot we want for our packages
slotting: /usr/baguette slotting: /usr/baguette

View File

@ -43,7 +43,7 @@ def pkginfo(package)
end end
class Package::Context class Package::Context
property working_directory = "/tmp/package" property working_directory = "/tmp/packaging"
property sources_directory = Dir.current property sources_directory = Dir.current
property packages_directory = Dir.current property packages_directory = Dir.current
@ -60,7 +60,7 @@ class Package::Context
# prefixes for `packaging` running environment and child processes # prefixes for `packaging` running environment and child processes
# = where to search for binaries and libraries for the build # = where to search for binaries and libraries for the build
property prefixes = ["/usr", "/", "/usr/baguetteos"] property prefixes = ["/usr", "/", "/usr/baguette"]
# list of environment variables we want to have when building # list of environment variables we want to have when building
property environment = {} of String => String property environment = {} of String => String
@ -262,6 +262,8 @@ class Package::Context
@packages_directory = value.as_s @packages_directory = value.as_s
when "sources-directory" when "sources-directory"
@sources_directory = value.as_s @sources_directory = value.as_s
when "working-directory"
@working_directory = value.as_s
when "prefixes" when "prefixes"
# Prefixes during the build process. # Prefixes during the build process.
@prefixes = value.as_a_or_s @prefixes = value.as_a_or_s