summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile46
1 files changed, 29 insertions, 17 deletions
diff --git a/Rakefile b/Rakefile
index f94ba83..54e0fe9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -27,8 +27,7 @@ task :dmd do
homepage: 'https://dlang.org'
write_info package,
- download: [uri.to_s],
- md5sum: [checksum[:dmd]]
+ downloads: [Download.new(uri.to_s, checksum[:dmd])]
update_slackbuild_version 'development/dmd', version
commit 'development/dmd', version
@@ -52,17 +51,11 @@ task :dmd do
requires: ['dmd']
write_info package,
- download: [
- hosted_sources("/d-tools/dub-#{dub_version}.tar.gz"),
- hosted_sources("/d-tools/tools-#{version}.tar.gz"),
- hosted_sources("/d-tools/D-Scanner-#{dscanner_version}.tar.xz"),
- hosted_sources("/d-tools/DCD-#{dcd_version}.tar.xz")
- ],
- md5sum: [
- checksum[:dub],
- checksum[:tools],
- checksum[:dscanner],
- checksum[:dcd]
+ downloads: [
+ Download.new(hosted_sources("/d-tools/dub-#{dub_version}.tar.gz"), checksum[:dub]),
+ Download.new(hosted_sources("/d-tools/tools-#{version}.tar.gz"), checksum[:tools]),
+ Download.new(hosted_sources("/d-tools/D-Scanner-#{dscanner_version}.tar.xz"), checksum[:dscanner]),
+ Download.new(hosted_sources("/d-tools/DCD-#{dcd_version}.tar.xz"), checksum[:dcd])
]
slackbuild_filename = 'slackbuilds/development/d-tools/d-tools.SlackBuild'
@@ -89,8 +82,7 @@ task :composer do
uri = URI "https://getcomposer.org/download/#{version}/composer.phar"
checksum = download uri, 'slackbuilds/development/composer/composer.phar'
write_info package,
- download: ["https://getcomposer.org/download/#{version}/composer.phar"],
- md5sum: [checksum.hexdigest]
+ downloads: [Download.new("https://getcomposer.org/download/#{version}/composer.phar", checksum.hexdigest)]
update_slackbuild_version 'development/composer', version
commit 'development/composer', version
@@ -116,10 +108,10 @@ task 'universal-ctags' do
package = Package.new 'development/universal-ctags',
version: version,
homepage: 'https://ctags.io/'
+ download = "https://download.dlackware.com/hosted-sources/universal-ctags/ctags-#{ENV['COMMIT']}.tar.xz"
write_info package,
- download: ["https://download.dlackware.com/hosted-sources/universal-ctags/ctags-#{ENV['COMMIT']}.tar.xz"],
- md5sum: [checksum.hexdigest]
+ downloads: [Download.new(download, checksum.hexdigest)]
update_slackbuild_version 'development/universal-ctags', version
sh 'sed',
'-i',
@@ -128,3 +120,23 @@ task 'universal-ctags' do
commit 'development/universal-ctags', version
end
+
+task :hhvm do
+ version = '4.104.1'
+ checksum = {}
+
+ checksum[:hhvm] = clone 'https://github.com/facebook/hhvm.git',
+ "development/hhvm/hhvm-#{version}.tar.xz", 'HHVM-'
+
+ package = Package.new 'development/hhvm',
+ version: version,
+ homepage: 'https://hhvm.com/',
+ requires: %w[tbb glog libdwarf libmemcached dobule-conversion]
+
+ write_info package,
+ downloads: [
+ Download.new(hosted_sources("/hhvm/hhvm-#{version}.tar.xz"), checksum[:hhvm], is64: true)
+ ]
+
+ update_slackbuild_version 'development/hhvm', version
+end