Commit 1c7f1119 authored by lyxell's avatar lyxell Committed by GitHub

Merge branch 'master' into add-package-descriptions

parents d599ae5c 92b671b7
......@@ -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
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment