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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71d5e02b9d2c7e751e3e046bff5a5cab0b801205
4
- data.tar.gz: 950e6e0bd986163153440ecbdeab69a90443d451
3
+ metadata.gz: 5c1829683ca2a057c1fdd45002f7d49b55fe9d39
4
+ data.tar.gz: d13c26d90f5f89ca5302dd20fbbe07e70ab24c66
5
5
  SHA512:
6
- metadata.gz: 26159396937c6b780319b92ab240106bc680c9b5bbafcfde778c03d277dfc4cf15de5045ef1568e9a2a4c654baa9381dbd803b18153d7e13ebc07db011184072
7
- data.tar.gz: fd3c51d12751b9d06645e471e9e10f6775195f922f58d3dc3f54ec87ddf088065a0cd61dae0ef3b1ef7b39c92d9d5b5073622ae3c61fa355d9ed8db8f7291bff
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
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Declare version number
3
3
  module PkgForge
4
- VERSION = '0.6.9'.freeze
4
+ VERSION = '0.6.10'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkgforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker