Add prebuild function to package.rb (#4217)

Clean up comments in package.rb

Bump crew version

Update template.rb.template
This commit is contained in:
Ed Reel
2020-08-24 15:34:32 -05:00
committed by GitHub
parent 292c0b9974
commit c588617567
3 changed files with 36 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
# Defines common constants used in different parts of crew
CREW_VERSION = '1.4.2'
CREW_VERSION = '1.4.3'
ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end

View File

@@ -69,13 +69,13 @@ class Package
@is_fake
end
# Function to perform pre-install operations prior to build from source.
def self.preinstall
# Function to perform patch operations prior to build from source.
def self.patch
end
# Function to perform patch operations prior to build from source.
def self.patch
# Function to perform pre-build operations prior to build from source.
def self.prebuild
end
@@ -84,22 +84,27 @@ class Package
end
# Function to perform check from source build.
# This executes only during `crew build`.
def self.check
end
# Function to perform pre-install operations prior to install.
def self.preinstall
end
# Function to perform install from source build.
def self.install
end
# Function to perform post-install for both source build and binary distribution
# Function to perform post-install for both source build and binary distribution.
def self.postinstall
end
# Function to perform check from source build.
# This is execute if and only if `crew build`.
def self.check
end
def self.system(*args)
# add "-j#" argument to "make" at compile-time, if necessary

View File

@@ -31,24 +31,37 @@ class Template < Package
#
# Function to perform pre-install operations prior to build from source.
def self.preinstall
end
# Function to perform patch operations prior to build from source.
def self.patch
end
# Function to perform pre-build operations prior to build from source.
def self.prebuild
end
# Function to perform build from source.
def self.build
end
# Function to perform check from source build.
# This executes only during `crew build`.
def self.check
end
# Function to perform pre-install operations prior to install.
def self.preinstall
end
# Function to perform install from source build.
def self.install
@@ -61,11 +74,4 @@ class Template < Package
end
# Function to perform check from source build.
# This is execute if and only if `crew build`.
def self.check
end
end