Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
af7d2cf7
Commit
af7d2cf7
authored
Nov 02, 2017
by
Casey Strouse
Committed by
GitHub
Nov 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1218 from uberhacker/add-preinstall-patch-functions
Add preinstall and patch functions to package.rb
parents
f030aa5f
25b689c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
crew
crew
+2
-0
lib/package.rb
lib/package.rb
+10
-0
No files found.
crew
View file @
af7d2cf7
...
@@ -370,6 +370,8 @@ def build_and_preconfigure (target_dir)
...
@@ -370,6 +370,8 @@ def build_and_preconfigure (target_dir)
Dir
.
chdir
target_dir
do
Dir
.
chdir
target_dir
do
puts
"Building from source, this may take a while..."
puts
"Building from source, this may take a while..."
@
pkg
.
in_build
=
true
@
pkg
.
in_build
=
true
@
pkg
.
preinstall
@
pkg
.
patch
@
pkg
.
build
@
pkg
.
build
@
pkg
.
in_build
=
false
@
pkg
.
in_build
=
false
system
"rm -rf #{CREW_DEST_DIR}/*"
#
wipe
crew
destdir
system
"rm -rf #{CREW_DEST_DIR}/*"
#
wipe
crew
destdir
...
...
lib/package.rb
View file @
af7d2cf7
...
@@ -69,6 +69,16 @@ class Package
...
@@ -69,6 +69,16 @@ class Package
@is_fake
@is_fake
end
end
# 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 build from source.
# Function to perform build from source.
def
self
.
build
def
self
.
build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment