mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user