Commit 068d4abb authored by James Larrowe's avatar James Larrowe Committed by Ed Reel

Allow for custom #{CREW_PREFIX} (#3089)

via. environment variable

Depends on #3088

Bump minor version, new features added
parent ecd33731
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.0.6' CREW_VERSION = '1.1.0'
ARCH = `uname -m`.strip ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
CREW_PREFIX = '/usr/local' if ENV['CREW_PREFIX'].to_s == ''
CREW_PREFIX = '/usr/local'
else
CREW_PREFIX = ENV['CREW_PREFIX']
@pkg.build_from_source = true
end
CREW_LIB_PREFIX = CREW_PREFIX + '/' + ARCH_LIB CREW_LIB_PREFIX = CREW_PREFIX + '/' + ARCH_LIB
CREW_LIB_PATH = CREW_PREFIX + '/lib/crew/' CREW_LIB_PATH = CREW_PREFIX + '/lib/crew/'
...@@ -15,6 +20,7 @@ CREW_DEST_DIR = CREW_BREW_DIR + 'dest' ...@@ -15,6 +20,7 @@ CREW_DEST_DIR = CREW_BREW_DIR + 'dest'
CREW_DEST_PREFIX = CREW_DEST_DIR + CREW_PREFIX CREW_DEST_PREFIX = CREW_DEST_DIR + CREW_PREFIX
CREW_DEST_LIB_PREFIX = CREW_DEST_DIR + CREW_LIB_PREFIX CREW_DEST_LIB_PREFIX = CREW_DEST_DIR + CREW_LIB_PREFIX
CREW_DEST_HOME = CREW_DEST_DIR + ENV['HOME'] CREW_DEST_HOME = CREW_DEST_DIR + ENV['HOME']
HOME = ENV['HOME']
# Set CREW_NPROC from environment variable or `nproc` # Set CREW_NPROC from environment variable or `nproc`
if ENV["CREW_NPROC"].to_s == '' if ENV["CREW_NPROC"].to_s == ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment