pkgforge 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pkgforge/components/build.rb +20 -14
- 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: 72c1abcfafce529f4aad5bccacb4a98e6c7c383f
|
4
|
+
data.tar.gz: d00ae473da870e3f152fee5197bc08441a0e445c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdee56b36c133e4e9166c0a1c8575eb88df2884d410420740b611d306a734a628cce5015bdca8740dca013c4a3afc070a4f17affcf229b8a8bd8254f6c7c001f
|
7
|
+
data.tar.gz: 7ae4b42fc178032d2b3abec5d003f755e3e4e075ab92e88ea664c0e6ef94e77eeb15cf613879a60b11227015ffd489f7c58f74251d4701386f494f16da17819b
|
@@ -40,24 +40,19 @@ module PkgForge
|
|
40
40
|
@forge.run(*args)
|
41
41
|
end
|
42
42
|
|
43
|
-
Contract
|
44
|
-
def configure
|
45
|
-
|
46
|
-
'CC' => 'musl-gcc',
|
47
|
-
'CFLAGS' => @forge.cflags.join(' '),
|
48
|
-
'LIBS' => @forge.libs.join(' ')
|
49
|
-
}
|
50
|
-
run ['./configure'] + configure_flag_strings, env
|
43
|
+
Contract Maybe[HashOf[String => String]] => nil
|
44
|
+
def configure(env = {})
|
45
|
+
run ['./configure'] + configure_flag_strings, default_env.merge(env)
|
51
46
|
end
|
52
47
|
|
53
|
-
Contract
|
54
|
-
def make
|
55
|
-
run 'make'
|
48
|
+
Contract Maybe[HashOf[String => String]] => nil
|
49
|
+
def make(env = {})
|
50
|
+
run 'make', default_env.merge(env)
|
56
51
|
end
|
57
52
|
|
58
|
-
Contract
|
59
|
-
def install
|
60
|
-
run "make DESTDIR=#{@forge.releasedir} install"
|
53
|
+
Contract Maybe[HashOf[String => String]] => nil
|
54
|
+
def install(env = {})
|
55
|
+
run "make DESTDIR=#{@forge.releasedir} install", default_env.merge(env)
|
61
56
|
end
|
62
57
|
|
63
58
|
Contract Or[String, ArrayOf[String]] => nil
|
@@ -67,6 +62,17 @@ module PkgForge
|
|
67
62
|
FileUtils.rm_r paths
|
68
63
|
nil
|
69
64
|
end
|
65
|
+
|
66
|
+
private
|
67
|
+
|
68
|
+
Contract None => HashOf[String => String]
|
69
|
+
def default_env
|
70
|
+
{
|
71
|
+
'CC' => 'musl-gcc',
|
72
|
+
'CFLAGS' => @forge.cflags.join(' '),
|
73
|
+
'LIBS' => @forge.libs.join(' ')
|
74
|
+
}
|
75
|
+
end
|
70
76
|
end
|
71
77
|
end
|
72
78
|
end
|
data/lib/pkgforge/version.rb
CHANGED