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
7d121bdc
Commit
7d121bdc
authored
Jul 29, 2016
by
system_user
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making the correct files go into this branch
parent
58279643
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
69 deletions
+21
-69
packages/node.rb
packages/node.rb
+4
-6
packages/node_current.rb
packages/node_current.rb
+4
-7
packages/node_stable.rb
packages/node_stable.rb
+4
-7
packages/openssl_devel.rb
packages/openssl_devel.rb
+0
-36
packages/python27.rb
packages/python27.rb
+4
-3
packages/readline.rb
packages/readline.rb
+5
-10
No files found.
packages/node.rb
View file @
7d121bdc
require
'package'
class
Node
<
Package
version
'4.4.
7
'
source_url
'https://nodejs.org/dist/v4.4.
7/node-v4.4.7
.tar.xz'
source_sha1
'
a39d03d04a79af2220ca94a8735e7acbe180c4e5
'
version
'4.4.
5
'
source_url
'https://nodejs.org/dist/v4.4.
5/node-v4.4.5
.tar.xz'
source_sha1
'
be0af595facab8be2dd8fa64c051c4c5a7ec0c4a
'
depends_on
'buildessential'
depends_on
'python27'
depends_on
'openssl_devel'
def
self
.
build
system
"CC='gcc' python2.7 ./configure --without-snapshot"
...
...
@@ -17,7 +16,6 @@ class Node < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
#Fix Permissiongs for -g installs of node packages
system
"echo 'Now to get npm -g working you should type this'"
system
"echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
system
"sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
end
end
packages/node_current.rb
View file @
7d121bdc
require
'package'
class
Node_current
<
Package
version
'6.
3.1
'
source_url
'https://nodejs.org/dist/v6.
3.1/node-v6.3.1
.tar.xz'
source_sha1
'
7021da27637f0e099598f0a7e8ddaf07e8bb3a69
'
version
'6.
2.2
'
source_url
'https://nodejs.org/dist/v6.
2.2/node-v6.2.2
.tar.xz'
source_sha1
'
5014800813fa3682b8053637518b37a119c26e93
'
depends_on
'buildessential'
depends_on
'python27'
depends_on
'openssl_devel'
def
self
.
build
system
"CC='gcc' python2.7 ./configure --without-snapshot"
system
"make"
...
...
@@ -18,7 +16,6 @@ class Node_current < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
#Fix Permissiongs for -g installs of node packages
system
"echo 'Now to get npm -g working you should type this'"
system
"echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
system
"sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
end
end
packages/node_stable.rb
View file @
7d121bdc
require
'package'
class
Node_stable
<
Package
version
'6.
3.1
'
source_url
'https://nodejs.org/dist/v6.
3.1/node-v6.3.1
.tar.xz'
source_sha1
'
7021da27637f0e099598f0a7e8ddaf07e8bb3a69
'
version
'6.
2.2
'
source_url
'https://nodejs.org/dist/v6.
2.2/node-v6.2.2
.tar.xz'
source_sha1
'
5014800813FA3682B8053637518B37A119C26E93
'
depends_on
'buildessential'
depends_on
'python27'
...
...
@@ -16,9 +16,6 @@ class Node_stable < Package
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
#Fix Permissiongs for -g installs of node packages
system
"echo 'Now to get npm -g working you should type this'"
system
"echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
system
"echo 'also...'"
system
"echo 'node_stable has been depricated. Please install node_current to get the latest changes'"
system
"sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
end
end
packages/openssl_devel.rb
deleted
100644 → 0
View file @
58279643
require
'package'
#Installs JUST the headers to match the chromeos supplied libraries so that you can build things
# that link with openssl. Needs to be kept version-synced with chromeos releases
# Could detect current version and grab one of many different packages, compare to saved
# hashes and support multiple versions if needed
#grumble - package names in crew must conform to ruby variable name restrictions. For instance '-' is disallowed
class
Openssl_devel
<
Package
version
'1.0.2g'
# chromeos wget can't do proper ssl negotiation with this server
# source_url 'https://www.openssl.org/source/old/1.0.2/openssl-1.0.2f.tar.gz'
# so use their ftp server.
source_url
'ftp://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz'
source_sha1
'36af23887402a5ea4ebef91df8e61654906f58f2'
depends_on
'perl'
def
self
.
build
# only need to run config to get the headers set up right
system
'./config'
end
def
self
.
install
out
=
"
#{
CREW_DEST_DIR
}
/usr/local/include/openssl"
system
"mkdir -p
#{
out
}
"
`ls ./include/openssl`
.
split
(
' '
).
each
do
|
header
|
system
"cp"
,
"./include/openssl/
#{
header
}
"
,
out
end
#system "cp", "./include/openssl/*", "#{out}"
end
end
packages/python27.rb
View file @
7d121bdc
require
'package'
class
Python27
<
Package
version
'2.7.1
0
'
source_url
'https://www.python.org/ftp/python/2.7.1
0/Python-2.7.10.tg
z'
# software source tarball url
source_sha1
'
49089f1f6ab445dc8ace97beeb276095c4c8039b'
# source tarball sha1 sum
version
'2.7.1
2
'
source_url
'https://www.python.org/ftp/python/2.7.1
2/Python-2.7.12.tar.x
z'
# software source tarball url
source_sha1
'
05360b8ade117b35e266b2004a7f1f11250c6dcd'
# source tarball sha1 sum
depends_on
'bz2'
depends_on
'ncurses'
depends_on
'openssl_devel'
def
self
.
build
# self.build contains commands needed to build the software from source
system
"./configure --prefix=/usr/local CPPFLAGS=
\"
-I/usr/local/include -I/usr/local/include/ncurses
\"
LDFLAGS=
\"
-L/usr/local/lib
\"
CFLAGS=
\"
-fPIC
\"
"
...
...
packages/readline.rb
View file @
7d121bdc
require
'package'
class
Readline
<
Package
version
'6.2'
version
'6.3'
source_url
'http://ftp.gnu.org/gnu/readline/readline-6.3.tar.gz'
source_sha1
'017b92dc7fd4e636a2b5c9265a77ccc05798c9e1'
binary_url
({
x86_64:
"https://dl.dropboxusercontent.com/s/v8xva6e4u3tvkaw/readline-6.2-chromeos-x86_64.tar.gz?token_hash=AAHOv1kLiv7xzDkYEZCSB_3ShK0n_7B4m2dNGHPnn2fZIg&dl=1"
})
binary_sha1
({
x86_64:
'621c2538b452be33cca507110ccfd4144c61edd2'
})
depends_on
'buildessential'
#until binary for i686 provided
depends_on
'buildessential'
def
self
.
build
system
"./configure"
system
"
CC='gcc'
./configure"
system
"make"
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