pkgforge 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pkgforge/components/deps.rb +21 -1
- data/lib/pkgforge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c1829683ca2a057c1fdd45002f7d49b55fe9d39
|
4
|
+
data.tar.gz: d13c26d90f5f89ca5302dd20fbbe07e70ab24c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 847d7fe5db0f9ec4bc6e519fad777324b7763b2c0d189158e3cba596beeed2cf9920a9b68a747d9b2d0305cdc1df8ddd099fb73c640e3d39f9cbb5500ee16a21
|
7
|
+
data.tar.gz: 319f474200e7190e43949249b800e8f14f45f5904888f8d74468bd7b45f6592546b896aa5e1267f6b68597b70d6e0743946a26b61a3794d1e4e2c4f5b6c3ad68
|
@@ -4,7 +4,7 @@ module PkgForge
|
|
4
4
|
##
|
5
5
|
# Add dep methods to Forge
|
6
6
|
class Forge
|
7
|
-
attr_writer :deps, :remove_linker_archives
|
7
|
+
attr_writer :deps, :remove_linker_archives, :remove_pkgconfig_files
|
8
8
|
|
9
9
|
Contract None => HashOf[Symbol => String]
|
10
10
|
def deps
|
@@ -16,12 +16,18 @@ module PkgForge
|
|
16
16
|
@remove_linker_archives ||= false
|
17
17
|
end
|
18
18
|
|
19
|
+
Contract None => Bool
|
20
|
+
def remove_pkgconfig_files?
|
21
|
+
@remove_pkgconfig_files ||= false
|
22
|
+
end
|
23
|
+
|
19
24
|
private
|
20
25
|
|
21
26
|
Contract None => nil
|
22
27
|
def prepare_deps!
|
23
28
|
download_deps!
|
24
29
|
remove_linker_archives! if remove_linker_archives?
|
30
|
+
remove_pkgconfig_files! if remove_pkgconfig_files?
|
25
31
|
end
|
26
32
|
|
27
33
|
Contract None => nil
|
@@ -41,6 +47,14 @@ module PkgForge
|
|
41
47
|
end
|
42
48
|
nil
|
43
49
|
end
|
50
|
+
|
51
|
+
Contract None => nil
|
52
|
+
def remove_pkgconfig_files!
|
53
|
+
deps.keys.each do |dep_name|
|
54
|
+
File.unlink(*Dir.glob("#{tmpdir(dep_name)}/**/*.pc"))
|
55
|
+
end
|
56
|
+
nil
|
57
|
+
end
|
44
58
|
end
|
45
59
|
|
46
60
|
module DSL
|
@@ -58,6 +72,12 @@ module PkgForge
|
|
58
72
|
@forge.remove_linker_archives = value
|
59
73
|
nil
|
60
74
|
end
|
75
|
+
|
76
|
+
Contract Bool => nil
|
77
|
+
def remove_pkgconfig_files(value = true)
|
78
|
+
@forge.remove_pkgconfig_files = value
|
79
|
+
nil
|
80
|
+
end
|
61
81
|
end
|
62
82
|
end
|
63
83
|
end
|
data/lib/pkgforge/version.rb
CHANGED