diff options
author | Pascal Terjan <pterjan@mageia.org> | 2020-04-14 20:01:06 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2020-04-14 20:05:50 +0000 |
commit | 7f2df584007b3c48d427aa636fa6919bb04d2d91 (patch) | |
tree | 50f5e44231219a3aa2a815cb333e16fbd7803156 | |
parent | f70768e3503c880bbeeef5d9240943ad7dd613f6 (diff) | |
download | autobuild-7f2df584007b3c48d427aa636fa6919bb04d2d91.tar autobuild-7f2df584007b3c48d427aa636fa6919bb04d2d91.tar.gz autobuild-7f2df584007b3c48d427aa636fa6919bb04d2d91.tar.bz2 autobuild-7f2df584007b3c48d427aa636fa6919bb04d2d91.tar.xz autobuild-7f2df584007b3c48d427aa636fa6919bb04d2d91.zip |
Drop a lot of parenthesis
-rwxr-xr-x | autobuild.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/autobuild.rb b/autobuild.rb index 9471278..a58ca97 100755 --- a/autobuild.rb +++ b/autobuild.rb @@ -48,16 +48,16 @@ def find_attributes(build_dir) next end name = $1 - if name =~ /^((bwbasic)|(yabasic)|(mono-basic))$/ then + if name =~ /^(bwbasic|yabasic|mono-basic)$/ then attr[:lang_basic] = true end if name =~ /^mono$/ then attr[:lang_dotnet] = true end - if name =~ /^(erlang)-compiler$/ then + if name =~ /^erlang-compiler$/ then attr[:lang_erlang] = true end - if name =~ /^gcc-g(fortran)$/ then + if name =~ /^gcc-gfortran$/ then attr[:lang_fortran] = true end if name =~ /^golang$/ then @@ -69,10 +69,10 @@ def find_attributes(build_dir) if name =~ /^ghc$/ then attr[:lang_haskell] = true end - if name =~ /^(java)|(gcc-java)/ then + if name =~ /^(java|gcc-java)/ then attr[:lang_java] = true end - if name =~ /^c(lisp)-devel$/ then + if name =~ /^clisp-devel$/ then attr[:lang_lisp] = true end if name =~ /^lib(64)?lua-devel$/ then @@ -84,7 +84,7 @@ def find_attributes(build_dir) if name =~ /^(ocaml)-compiler$/ then attr[:lang_ocaml] = true end - if name =~ /^(nodejs)|(uglify-js)|(slimit)|(yuicompressor)$/ then + if name =~ /^(nodejs|uglify-js|slimit|yuicompressor)$/ then attr[:lang_javascript] = true end if name =~ /^fpc(-src)?$/ then @@ -97,17 +97,17 @@ def find_attributes(build_dir) # too many false positives: # perl-libintl-perl # perl-WWW-Curl (required by openssl) - if name !~ /^((perl)|(perl-base)|(perl-Config-IniFiles)|(perl-Exporter-Tiny)|(perl-File-Slurp)|(perl-File-Sync)|(perl-Filesys-Df)|(perl-IO-stringy)|(perl-JSON)|(perl-libintl-perl)|(perl-List-MoreUtils)|(perl-List-MoreUtils-XS)|(perl-Locale-gettext)|(perl-MDK-Common)|(perl-MDV-Distribconf)|(perl-MDV-Packdrakeng)|(perl-Module-ScanDeps)|(perl-srpm-macros)|(perl-Time-ZoneInfo)|(perl-URPM)|(perl-WWW-Curl)|(perl-XML-LibXML)|(perl-XML-NamespaceSupport)|(perl-XML-SAX)|(perl-XML-SAX-Base)|(perl-YAML)|(perl-YAML-Tiny))$/ then + if name !~ /^(perl|perl-base|perl-Config-IniFiles|perl-Exporter-Tiny|perl-File-Slurp|perl-File-Sync|perl-Filesys-Df|perl-IO-stringy|perl-JSON|perl-libintl-perl|perl-List-MoreUtils|perl-List-MoreUtils-XS|perl-Locale-gettext|perl-MDK-Common|perl-MDV-Distribconf|perl-MDV-Packdrakeng|perl-Module-ScanDeps|perl-srpm-macros|perl-Time-ZoneInfo|perl-URPM|perl-WWW-Curl|perl-XML-LibXML|perl-XML-NamespaceSupport|perl-XML-SAX|perl-XML-SAX-Base|perl-YAML|perl-YAML-Tiny)$/ then attr[:lang_perl] = true end end - if name =~ /^((php)-devel)|(lib(64)?php_common)/ then + if name =~ /^(php-devel|lib(64)?php_common)/ then attr[:lang_php] = true end - if name =~ /^((python3?-setuptools)|(lib(64)?python3?-devel))$/ then + if name =~ /^(python3?-setuptools|lib(64)?python3?-devel)$/ then attr[:lang_python] = true end - if name =~ /^((ruby)-devel)|(lib(64)?ruby[0-9])/ then + if name =~ /^(ruby-devel|lib(64)?ruby[0-9])/ then attr[:lang_ruby] = true end if name =~ /^tcl$/ then |