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
1c7f1119
Commit
1c7f1119
authored
May 31, 2017
by
lyxell
Committed by
GitHub
May 31, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into add-package-descriptions
parents
d599ae5c
92b671b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
14 deletions
+40
-14
packages/mlocate.rb
packages/mlocate.rb
+3
-1
packages/perl.rb
packages/perl.rb
+37
-13
No files found.
packages/mlocate.rb
View file @
1c7f1119
...
...
@@ -8,7 +8,9 @@ class Mlocate < Package
source_sha1
'c6e6d81b25359c51c545f4b8ba0f3b469227fcbc'
# source tarball sha1 sum
def
self
.
build
# self.build contains commands needed to build the software from source
system
"sed -i 's/groupname = mlocate/groupname = chronos/g' Makefile.*"
# change groupname in all Makefiles
system
"mkdir -p /usr/local/db/mlocate"
# create dbdir directory where mlocate.db will be generated
system
"sed -i 's,
\$
(localstatedir)/,/usr/local/db/,g' Makefile.*"
# change from /var (symlinked from /usr/local/var) to /usr/local/db
system
"sed -i
\"
s/groupname = mlocate/groupname = $(whoami)/g
\"
Makefile.*"
# change groupname in all Makefiles to avoid permission issues
system
"./configure"
system
"make"
# ordered chronologically
end
...
...
packages/perl.rb
View file @
1c7f1119
...
...
@@ -3,19 +3,43 @@ require 'package'
class
Perl
<
Package
description
'Perl 5 is a highly capable, feature-rich programming language with over 29 years of development.'
homepage
'https://www.perl.org/'
version
'5.24.1'
version
'5.24.1
-1
'
source_url
'http://www.cpan.org/src/5.0/perl-5.24.1.tar.gz'
source_sha1
'19b218bbc3a63a8408ed56b93928fd9a4c1b5c83'
binary_url
({
aarch64:
'https://github.com/jam7/chromebrew/releases/download/binaries/perl-5.24.1-chromeos-armv7l.tar.xz'
,
armv7l:
'https://github.com/jam7/chromebrew/releases/download/binaries/perl-5.24.1-chromeos-armv7l.tar.xz'
,
i686:
'https://github.com/jam7/chromebrew/releases/download/binaries/perl-5.24.1-chromeos-i686.tar.xz'
,
x86_64:
'https://github.com/jam7/chromebrew/releases/download/binaries/perl-5.24.1-chromeos-x86_64.tar.xz'
,
})
binary_sha1
({
aarch64:
'3352e1cb829062bf91da51802304b702aaa072d8'
,
armv7l:
'3352e1cb829062bf91da51802304b702aaa072d8'
,
i686:
'2929f609a1d4d098eef649432af7feb2b8762e4f'
,
x86_64:
'5406a1b1a2d32392e44de48e9a7ea17d76918389'
,
})
depends_on
'patch'
=>
:build
def
self
.
build
# Use system zlib and bzip2
# Create shared library
system
"BUILD_ZLIB=False BUILD_BZIP2=0 ./Configure -de -Duseshrplib"
system
"make"
system
"find . -name '*.so' -print | xargs strip -S"
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install-strip"
end
def
self
.
check
# having strange error as explained at https://patchwork.openembedded.org/patch/95795/
# so, apply patch from https://github.com/habitat-sh/core-plans/blob/master/perl/skip-wide-character-test.patch
# to ignore this single test
system
'patch -p1 << EOF
diff -ur perl-5.22.1.orig/t/lib/warnings/regexec perl-5.22.1/t/lib/warnings/regexec
--- perl-5.22.1.orig/t/lib/warnings/regexec 2015-10-30 21:14:29.000000000 +0000
+++ perl-5.22.1/t/lib/warnings/regexec 2016-01-19 05:05:50.218474114 +0000
@@ -188,6 +188,7 @@
########
# NAME \b{} in UTF-8 locale
require \'../loc_tools.pl\';
+print("SKIPPED\n# This test causes a failure in the test suite\n"),exit;
unless (locales_enabled()) {
print("SKIPPED\n# locales not available\n"),exit;
}
EOF'
# test
system
"make test"
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