native-package-installer 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +8 -0
- data/lib/native-package-installer/platform/gentoo-linux.rb +47 -0
- data/lib/native-package-installer/platform/red-hat-enterprise-linux.rb +3 -1
- data/lib/native-package-installer/platform.rb +1 -0
- data/lib/native-package-installer/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dde9205f957efd76f9694fdc3b5226ebcd9b69ad9523f91d7a72708656a884fa
|
4
|
+
data.tar.gz: 205dd85c056fb1a3e2083d09a5a53f3d40782075029f9346728c7f121b07d2fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75bdfd03e2ef20211d7fb2edff8d46da46478bcaf14fd29f80f27acdc79ce563a990fabe20a40a990e7be289e2bcfcfb3fc555f0849649da47b61c2cb52cc68
|
7
|
+
data.tar.gz: cb25f859a69b0a43adfc617e2de87c03ae8299cbbe69197d4e2680583151a44ee2112aed9348a8b627a0f26d58c7147a2209beef0e47e22eb9526d47d1fb861b
|
data/doc/text/news.md
CHANGED
@@ -0,0 +1,47 @@
|
|
1
|
+
# Copyright (C) 2022 Ruby-GNOME Project Team
|
2
|
+
#
|
3
|
+
# This library is free software: you can redistribute it and/or modify
|
4
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
5
|
+
# the Free Software Foundation, either version 3 of the License, or
|
6
|
+
# (at your option) any later version.
|
7
|
+
#
|
8
|
+
# This program is distributed in the hope that it will be useful,
|
9
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11
|
+
# GNU Lesser General Public License for more details.
|
12
|
+
#
|
13
|
+
# You should have received a copy of the GNU Lesser General Public License
|
14
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
15
|
+
|
16
|
+
class NativePackageInstaller
|
17
|
+
module Platform
|
18
|
+
class GentooLinux
|
19
|
+
Platform.register(self)
|
20
|
+
|
21
|
+
class << self
|
22
|
+
def current_platform?
|
23
|
+
os_release = OSRelease.new
|
24
|
+
case os_release.id
|
25
|
+
when "gentoo"
|
26
|
+
return true
|
27
|
+
else
|
28
|
+
return true if os_release.id_like.include?("gentoo")
|
29
|
+
end
|
30
|
+
false
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def package(spec)
|
35
|
+
spec[:gentoo_linux]
|
36
|
+
end
|
37
|
+
|
38
|
+
def install_command
|
39
|
+
"emerge --getbinpkg --usepkg"
|
40
|
+
end
|
41
|
+
|
42
|
+
def need_super_user_priviledge?
|
43
|
+
true
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: native-package-installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Users need to install native packages to install an extension library
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- lib/native-package-installer/platform/debian.rb
|
40
40
|
- lib/native-package-installer/platform/fedora.rb
|
41
41
|
- lib/native-package-installer/platform/freebsd.rb
|
42
|
+
- lib/native-package-installer/platform/gentoo-linux.rb
|
42
43
|
- lib/native-package-installer/platform/homebrew.rb
|
43
44
|
- lib/native-package-installer/platform/macports.rb
|
44
45
|
- lib/native-package-installer/platform/msys2.rb
|