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
6f1c4f43
Commit
6f1c4f43
authored
Mar 26, 2018
by
Ed Reel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add colordiff package
Add perl dependency Add execute perms to cdiff.sh
parent
d884cb3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
packages/colordiff.rb
packages/colordiff.rb
+30
-0
No files found.
packages/colordiff.rb
0 → 100644
View file @
6f1c4f43
require
'package'
class
Colordiff
<
Package
description
"The Perl script colordiff is a wrapper for 'diff' and produces the same output but with pretty 'syntax' highlighting."
homepage
'https://www.colordiff.org/'
version
'1.0.18'
source_url
'https://www.colordiff.org/colordiff-1.0.18.tar.gz'
source_sha256
'29cfecd8854d6e19c96182ee13706b84622d7b256077df19fbd6a5452c30d6e0'
binary_url
({
})
binary_sha256
({
})
depends_on
'perl'
def
self
.
install
system
"sed -i 's,/etc,
#{
CREW_PREFIX
}
/etc,g' colordiff.pl"
system
"sed -i 's,/usr/bin/perl,
#{
CREW_PREFIX
}
/bin/perl,' colordiff.pl"
system
"install -Dm755 colordiff.pl
#{
CREW_DEST_PREFIX
}
/bin/colordiff"
system
"install -Dm755 cdiff.sh
#{
CREW_DEST_PREFIX
}
/bin/cdiff"
system
"gzip -9 cdiff.1 colordiff.1"
system
"install -Dm644 cdiff.1.gz
#{
CREW_DEST_PREFIX
}
/man/man1/cdiff.1.gz"
system
"install -Dm644 colordiff.1.gz
#{
CREW_DEST_PREFIX
}
/man/man1/colordiff.1.gz"
system
"install -Dm644 colordiffrc
#{
CREW_DEST_PREFIX
}
/etc/colordiffrc"
system
"mkdir -p
#{
CREW_DEST_DIR
}
/$HOME"
system
"ln -s
#{
CREW_PREFIX
}
/etc/colordiffrc
#{
CREW_DEST_DIR
}
/$HOME/.colordiffrc"
system
"ln -sf
#{
CREW_PREFIX
}
/etc/colordiffrc $HOME/.colordiffrc"
end
end
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