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
2769c00e
Commit
2769c00e
authored
Nov 14, 2018
by
Chris Thurber
Committed by
GitHub
Nov 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2871 from uberhacker/add-scite-package
Add scite package
parents
a2a9c72c
c6e6c71d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
packages/scite.rb
packages/scite.rb
+51
-0
No files found.
packages/scite.rb
0 → 100644
View file @
2769c00e
require
'package'
class
Scite
<
Package
description
'A free source code editing component for Win32, GTK+, and OS X'
homepage
'https://www.scintilla.org/'
version
'4.1.2'
source_url
'https://www.scintilla.org/scite412.tgz'
source_sha256
'01eceecb4cfe80415bd1488900ada32340850cf3bba80f25f004da4811e3fcc8'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/scite-4.1.2-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/scite-4.1.2-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/scite-4.1.2-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/scite-4.1.2-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'552468f6e1649d044e96ef8023c8bba8b04fd0fd5deec9c3e2c174427bf8c345'
,
armv7l:
'552468f6e1649d044e96ef8023c8bba8b04fd0fd5deec9c3e2c174427bf8c345'
,
i686:
'69d69f86e272e0855cf91748a02449beb7db7e0ef5adf04230402d8d7f17bef8'
,
x86_64:
'a8c9d0bd57906313ba42997e72d377d69113ba3e88bb6add6df20f07f508961a'
,
})
depends_on
'gtk3'
depends_on
'hicolor_icon_theme'
depends_on
'shared_mime_info'
depends_on
'sommelier'
def
self
.
build
system
'wget https://www.scintilla.org/scintilla412.tgz'
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
'scintilla412.tgz'
)
)
==
'8c54787600fbefa5240ff3c4ac1c84fa186a445091377dde8194a4f1e1471d52'
system
'tar xvf scintilla412.tgz'
Dir
.
chdir
'scintilla/gtk'
do
system
"make"
,
"GTK3=1"
,
"prefix=
#{
CREW_PREFIX
}
"
end
Dir
.
chdir
'scite/gtk'
do
system
"make"
,
"GTK3=1"
,
"prefix=
#{
CREW_PREFIX
}
"
end
end
def
self
.
install
Dir
.
chdir
'scite/gtk'
do
system
"make"
,
"GTK3=1"
,
"prefix=
#{
CREW_PREFIX
}
"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
end
Dir
.
chdir
"
#{
CREW_DEST_PREFIX
}
/bin"
do
system
'mv SciTE scite'
end
Dir
.
chdir
"
#{
CREW_DEST_PREFIX
}
/share/applications"
do
system
"sed -i 's,Exec=SciTE,Exec=scite,' SciTE.desktop"
end
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