Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pcre: add rbuild

  • Loading branch information...
commit e3cc04eb5ca08048e032133f1ecf31ce0dbd45cf 1 parent cebdd0a
@meh meh authored
View
4 library/development/pcre/pcre-8.30.rbuild
@@ -0,0 +1,4 @@
+arch '~x86', '~amd64'
+kernel 'linux'
+compiler 'gcc'
+libc 'glibc'
View
34 library/development/libpcre/libpcre.rbuild → library/development/pcre/pcre.rbuild
@@ -1,11 +1,13 @@
maintainer 'meh. <meh@paranoici.org>'
-name 'libpcre'
+name 'pcre'
tags 'library', 'development'
description 'Perl-Compatible Regular Expression library'
homepage 'http://www.pcre.org'
-licene 'BSD'
+license 'BSD'
+
+source 'ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-#{version}.tar.bz2'
flavor {
needs 'vanilla || static || shared'
@@ -31,19 +33,41 @@ flavor {
}
features {
- cxx { enabled!
+ bits { enabled!; default_value '8,16'
before :configure do |conf|
- conf.enable 'cpp', enabled?
+ next unless enabled?
+
+ conf.enable 'pcre8', value.split(',').include?('8')
+ conf.enable 'pcre16', value.split(',').include?('16')
+ end
+ }
+
+ recursion_limit { enabled!; default_value '8192'
+ before :configure do |conf|
+ conf.with 'match-limit-recursion', value if enabled?
end
}
unicode { enabled!
before :configure do |conf|
- conf.enable 'utf8', enabled?
+ conf.enable 'utf', enabled?
conf.enable 'unicode-properties', enabled?
end
}
+ jit { enabled!
+ before :configure do |conf|
+ conf.enable 'jit', enabled?
+ conf.enable 'pcregrep-jit', enabled?
+ end
+ }
+
+ cxx { enabled!
+ before :configure do |conf|
+ conf.enable 'cpp', enabled?
+ end
+ }
+
zlib {
describe 'Add zlib support to pcregrep'
Please sign in to comment.
Something went wrong with that request. Please try again.