yast-rake 0.2.20 → 0.2.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/VERSION +1 -1
- data/lib/tasks/install.rake +14 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e32c2714c552ec51fc64ea41cd07b27685f24299004a3a8854f07e9e01a170c
|
4
|
+
data.tar.gz: bc3ce3e434ff636a59627f9b2961b9a777cdd5679220493195b216140e15bb3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7581ed9468acca2bfee96fecf8ae2f9b5b82bb1dcdb89a989bb41da0819d05dcc3fcc6abf99d3a5195eec95bbabbc255dc2120ded5d3596b1cc7475fbac16977
|
7
|
+
data.tar.gz: b8dd826b7744e383ab23cbbf3c0266c8e564d507ca9049152ab6c4c9ba2a17af200d910daf8da4324e290e25d60eeebca9ddccbfaaed9a509484cfa285db3799
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.21
|
data/lib/tasks/install.rake
CHANGED
@@ -26,6 +26,7 @@ module Packaging
|
|
26
26
|
DESTDIR = ENV["DESTDIR"] || "/"
|
27
27
|
YAST_DIR = DESTDIR + "/usr/share/YaST2/"
|
28
28
|
YAST_LIB_DIR = DESTDIR + "/usr/lib/YaST2/"
|
29
|
+
YAST_ICON_BASE_DIR = DESTDIR + "/usr/share/YaST2/theme/current/icons"
|
29
30
|
YAST_DESKTOP_DIR = DESTDIR + "/usr/share/applications/YaST2/"
|
30
31
|
AUTOYAST_RNC_DIR = YAST_DIR + "schema/autoyast/rnc/"
|
31
32
|
|
@@ -34,16 +35,6 @@ module Packaging
|
|
34
35
|
DESTDIR + "/usr/share/doc/packages/#{package_name}/"
|
35
36
|
end
|
36
37
|
|
37
|
-
# @return [Array<String>] Possible fillup templates directories
|
38
|
-
FILLUP_DIRS = ["/usr/share/fillup-templates", "/var/adm/fillup-templates"].freeze
|
39
|
-
|
40
|
-
# @return [String] fillup-templates directory
|
41
|
-
def fillup_dir
|
42
|
-
found = FILLUP_DIRS.find { |d| Dir.exist?(d) }
|
43
|
-
reldir = found || FILLUP_DIRS.first
|
44
|
-
DESTDIR + reldir
|
45
|
-
end
|
46
|
-
|
47
38
|
# Gets installation locations. Hash contain glob as keys and target
|
48
39
|
# directory as values. Each found file/directory from glob is passed
|
49
40
|
# to FileUtils.cp_r as source and value as destination
|
@@ -60,9 +51,20 @@ module Packaging
|
|
60
51
|
"**/src/autoyast[_-]rnc/*" => AUTOYAST_RNC_DIR,
|
61
52
|
"**/src/fillup/*" => fillup_dir,
|
62
53
|
"**/src/desktop/*.desktop" => YAST_DESKTOP_DIR,
|
63
|
-
"{README*,COPYING,CONTRIBUTING.md}" => install_doc_dir
|
54
|
+
"{README*,COPYING,CONTRIBUTING.md}" => install_doc_dir,
|
55
|
+
"**/icons/*" => YAST_ICON_BASE_DIR
|
64
56
|
}
|
65
57
|
end
|
58
|
+
|
59
|
+
# Possible fillup templates directories
|
60
|
+
FILLUP_DIRS = ["/usr/share/fillup-templates", "/var/adm/fillup-templates"].freeze
|
61
|
+
|
62
|
+
# @return [String] fillup-templates directory
|
63
|
+
def fillup_dir
|
64
|
+
found = FILLUP_DIRS.find { |d| Dir.exist?(d) }
|
65
|
+
reldir = found || FILLUP_DIRS.first
|
66
|
+
DESTDIR + reldir
|
67
|
+
end
|
66
68
|
end
|
67
69
|
end
|
68
70
|
|
@@ -77,7 +79,7 @@ task :install do
|
|
77
79
|
# exists and we copy a symlink
|
78
80
|
sh "cp -r '#{source}' '#{install_to}'"
|
79
81
|
rescue => e
|
80
|
-
raise "Cannot
|
82
|
+
raise "Cannot install file #{source} to #{install_to}: #{e.message}"
|
81
83
|
end
|
82
84
|
end
|
83
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yast-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Reidinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- lib/tasks/version.rake
|
61
61
|
- lib/yast/rake.rb
|
62
62
|
- lib/yast/tasks.rb
|
63
|
-
homepage:
|
63
|
+
homepage: https://github.com/yast/yast-rake
|
64
64
|
licenses:
|
65
65
|
- LGPL v2.1
|
66
66
|
metadata: {}
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.7.3
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Rake tasks providing basic work-flow for Yast development
|