www-plugins/firefoxpwa: add 2.9.1

Signed-off-by: Filip Štamcar <projects@filips.si>
Signed-off-by: David Roman <davidroman96@gmail.com>
Closes: https://github.com/gentoo/guru/pull/122
This commit is contained in:
Filip Štamcar
2023-12-09 10:44:12 +00:00
committed by David Roman
parent eb16caacdd
commit 81bcfa084a
2 changed files with 443 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ DIST darling_core-0.20.3.crate 60281 BLAKE2B 82a09d050ea19834e5f1b38535797296627
DIST darling_macro-0.20.3.crate 1859 BLAKE2B fdfb3a14afba28c227f3e08aafccbfe5e48663a9ea593a493a61a471ec585df7183b33b5d7eff73f3b2d10401d8dfc8f2b6c669b16e21fad473b6225ee0fd167 SHA512 bcbf2567ebf674f9aca2bb887db82c5d87bcbda6ce6e526c4a1f503f23c4a1451b17aeb2f6ae8b8a0c93cb0737edf14d6d258d998f654662d67a9cd956d7850b
DIST data-url-0.2.0.crate 20553 BLAKE2B 45e2bd07e86b9b3e8c8c4545e6a436ebb65c4b5f1c69b2958185aac252c864c38089f869135ffe97282fabfa7637855cb40f88eca9271324906b53bd4fdf3d8b SHA512 d467554849093d731c273f997605e110fe6786203c950e3ea112361e14fdc4061a8e92427f16b1df0642b232ef17dddb0b6d4c6720f097416cd7a3ba6711c375
DIST data-url-0.3.0.crate 20750 BLAKE2B 3abdea4bcc43634ae8c16ed9a889205552235e815d90a3b5b51f201301891af030c63e9f7de0a780790029d1026129b62fbe9480f4336df0938afb84ab63b5ae SHA512 841b2e12219d9fdb0a576af456112d5c7486b9ff35cc3ed7aafc21526fe4f7f901602971627101fe1304da06ee315b0d543c2969ebc81f3e7666ae9c4f7e7301
DIST data-url-0.3.1.crate 21109 BLAKE2B 70c8616c6b3cf16da70a8fe3e8c6752bff3dc7d9e1aaf593617ddf191f31b1187b41ba6491581488b4dc9db1e2fc944035af9fb1acb6320de0ccb2ae7f13373f SHA512 cd13b3da27b20d5b16dff797b67323bb09f12f8582724ce9dbe18dc668a5c77b429ac9d9563be2112368f7067e7694653cbb2aae1c3aa897892c404822a079bb
DIST deflate-0.8.6.crate 62365 BLAKE2B 05b1f81e4c423f9fdd823bc33352d8421f2ca0c26d43cf0c5990db12f5e31c46ff7769f1baa3b971166b4146eb448ed0bd3ffe68f7c4aff5885b47826f77d847 SHA512 7e2e23205c56cc4c834ade2a6a22b056253c32e29346907558117714a18d8433882a712711413addb15da79f9f59e089a06dfd680b756ab2725b500a49dc16b2
DIST deranged-0.3.8.crate 15314 BLAKE2B 5452dd7309e64f52f06f0b4159a87678c95f5453516d9e29956806a8bce3e8aac717a094ba3f2b418336b6bcc611901d2b4c08abd7d838915e88c37d75896f9b SHA512 81577e7371b6850da0abec985f1268735169a4e9272a6bef2e1e46753457260b54ad76fedaa36280102daa0030f70dabd16d2b99fe9c67b2690e469df3c3154e
DIST deranged-0.3.9.crate 17080 BLAKE2B a1441d629cb5d8ed75c49c25a42c144ecf5f6d060612b01bc2c78cde577f59fc3aed35b8b5629be50433244975fb4f98004ea99bad1177862d15c8695951dda1 SHA512 63abb2a6aaa770596caf96672c764e2f65b867653f9cd3fc268b4d2137afee7b3fc0618d83ab29c80c313e03455fb717a5015cfb33a69f95adeeddce723003fd
@@ -126,6 +127,7 @@ DIST filetime-0.2.22.crate 15029 BLAKE2B 068f4a84388d04d900bc5518a94895985ecba9c
DIST firefoxpwa-2.7.3.tar.gz 475493 BLAKE2B 2f2739b7b5f1cdd8bb7b3bca1d0a3e1609845d3b96eb85b850e58805ad949783c30f109fe196cdc1fc33a5d9b5e8bf279a2c8c07714cfabae76b305f33fc84ac SHA512 7cfb74a2153dbe0588eaf2936174a137c5bde5b1270cca559f8a9caa2ee0f54a0f63d8be94f910d5462569bb43f01446adb5db5c24a312b32931fb9702da04f3
DIST firefoxpwa-2.8.0.tar.gz 479874 BLAKE2B 61d0994076b010794b09684ce607500706da6a63a2e75da34120049661364895137e8a1ce4ef80a41a415b5a13466cd1901f575e44886f651b5a00b4ac112599 SHA512 01ba10d1714f83f81b6242310afffb17882887b8776439206e16218a28e35035d3e96e19a1bc4fd5f15d6053665d0fab4adf2adf55e8bb47d77d1666e301dde4
DIST firefoxpwa-2.9.0.tar.gz 481518 BLAKE2B fa7e8e26f8a6173cde308b4dde2350cbe25b35888d0e2912872e4dfb308961aeae21729de4be429ac2f3aeb6266025a2a011906a569b6ae893458e15961046a9 SHA512 0071f206b9278386ec224f6c584143f122f5dab580b7e71e8146188cdad17bd7a4b787506cde25c44eae9dc852833c5a9d851c23a499755ccab8d93c4d15c78c
DIST firefoxpwa-2.9.1.tar.gz 481484 BLAKE2B d149f29da2454f07f58146f07b3e1b68eed4570cef01aed2cdd754c9f5953b86e5956a90bc563ddd2ff9e0d773b35fbd16996f092522686f8bd577012dbc651a SHA512 22f9b052890068422ceec3c257b7cfdae2b1604343914f33a4c529393ecb988b7b50c11edc2b3891a99f27a642319784ccfe2b7ef8cdb455c541b507eaa9a119
DIST flate2-1.0.26.crate 70832 BLAKE2B acbfad138abf2175822153867413dc89bafa9254494b4f13d958dcc6008a26fca6f934e8010b8c090367b8e25272a4ba3b26a31e59cec69c1359f83ca859d186 SHA512 a9f7b9e4adfd0a22fbf66e1cbcfe377cc03ec248c7fb7113097b839922b569cc96bf080089b8c800b35ec6f81b3f602a5860de55963b85f27ee6d75a9df88f3d
DIST flate2-1.0.27.crate 73460 BLAKE2B 5603848098ac02c9c83893df79ea9d9ad3df5b7e02ffa155ac74602bda7e28e14e6b7de2ff321b38d24fa3741ccea8a4c811abb47690cc295f90d4cf2bdd0bbf SHA512 e76e76444686433acabd16513e6e5860d4d6fa53a810f37266f36900f154acacac6dcd77b0373599a6d33a09175f5f02146d84726b982c59a78926950e19ff09
DIST flate2-1.0.28.crate 73690 BLAKE2B c9f141bde0eda6b9c42da0a3ed69322c12c6c29bc522131f51ad56f6e2758646aa5585382407409257a8301f5f07a1825d150838bbb55822f2d49037f6279aa8 SHA512 9db6f3ddc4e1e91960b07c08712beabd911b297d93db8be3ecb97a392a4262e608c75ed8e9e34d87d58c3e67d1b7987734e14ab3d45fd837a2767e8016380284
@@ -244,6 +246,7 @@ DIST once_cell-1.18.0.crate 32969 BLAKE2B a08d5beee50a7add28bd9e50b18709e7b34574
DIST openssl-0.10.55.crate 258750 BLAKE2B 288d8d0edd23415be5aacbdda538d43bf4b0f3dd12f2217f23e1b8a8a69ea4f731e93fabba70e07c29716faa8798437bcaaa893374df8523b8af3f36debbb76a SHA512 397a970f254eca152fd4d8166ad7554c1bae2593e27150132c4b8757fc439a2ec61e45b92440408a92334bd17c57e0adda64680ebd8084ea346ac713257454fb
DIST openssl-0.10.57.crate 262768 BLAKE2B a30b3b94cd72a45c948c0424e563fafb8905b726f2ec45a7a02509526596bcaac92775641a479d9da79c3abfc98b9f16b4c0176cb1b13e581c2ec76c8b1406e6 SHA512 26cae586d171a872881f70b846fae3fdd08ec473e05fd1fc0abc2f398717a7ae967a0f480933689b04e7ad139f88bc1ccf80a31c6205cf76ab2fa23c8352891b
DIST openssl-0.10.59.crate 264765 BLAKE2B e7b9bb03ee1a58aa519ca5a647b4e12d1ce748543667dc8a81905d72a4cebfc2f8c0f01ecd9e63dd691a245be29f37e7752fd820471cc27f2395995d57f22e41 SHA512 3f91a953612fbce7fe9f2d9f0b74cfc88ee45bc6cb8f3ec18536631ae786ec9a09d7afe0fbcf4d299e508997df804155156d80cfab6b3b7954391745f8629494
DIST openssl-0.10.61.crate 268171 BLAKE2B 43201c82ba7c78d3274495f922c644047999d212a10a50cd946ad2fc46e97e1c6e44d2c35f49cf9d78e23653fe2818a5293cd1aaf4933c90f037c8244e3d4cff SHA512 cef312670c936be2ff941ea3ed768433c155d060cf8da400540f1d6f5badf255dc20a45c1aedcdfded596c6d72a96feec410867e5b85d8fd04b4db06abfc9b2c
DIST openssl-macros-0.1.1.crate 5601 BLAKE2B 69dc1c1f3b7bc4f934cae0dce64c3efa501162e5279efd6af3b74f7a7716c04b6996b306b310f1c045cfa2eff2895314a47ecbb020a817e461c6d77d0bc11e92 SHA512 57e75c84f78fb83f884eeaedb0dd135ecb40192dad2facd908e6a575c9b65b38a2c93bca4630e09ea5a82c77d8bc8364cb2f5778cbfe9d8f484cafe3346b883c
DIST openssl-probe-0.1.5.crate 7227 BLAKE2B d1fd6a9498b3ab7f25b228f19043067604bf20790530fd0ab6fe3d4d3bc27f13e6e94d1e7ef49314c3663477d8916b8790b90427f74976143b54b95350895165 SHA512 7e560314150709a34520472698060c4f29689d4e608dc4dde146140aa690350d3603279c693367deeb0f21ab34ef61956143a3447827a2b7a3d578b9ccd6552c
DIST openssl-src-300.1.5+3.1.3.crate 8829668 BLAKE2B e8119164d82a1b54215f0b346fe9716dd9db45950c5b92c8a548012c5b98ed21c191254fb94aec8091e658e0b1f682d59952ab775bd499c4b7d6043f4098298d SHA512 addf52dd9af0e9a7fe66a64d1830ee820af2624fb8f9167b61176baa45f529371f47f4db03f54426b95e6f260193177fbd1bf8dcb0d7dd1cf63b986f5ff348e0
@@ -251,6 +254,7 @@ DIST openssl-src-300.1.6+3.1.4.crate 8839739 BLAKE2B aaf27bafd2e431894e2aadc9391
DIST openssl-sys-0.9.90.crate 66197 BLAKE2B 4cb5f74619b595ad224e33679023b3ba73cb99f8cb81516124dfb9b03ef8af9ed2d20b705acfee4e2cd08387fe20133f20a55114ffdb4b14b94e7b2142529909 SHA512 6b0eccecca799093f15fbcd17f3f37b7b4c83bb11fea1c77b1eb3e4cd1c9ad46e9c5f0c01ded7b22c4d2bb5e8d0d864f15163d481fcc973d6d06b41707fe7dc1
DIST openssl-sys-0.9.93.crate 66922 BLAKE2B 570bfb78704657a89f2e363b96bef65d8cf617f1bb625c271f4728b4cf6011c11369ca1396e01470934fb596528b358a7240520ea706be64e9ce79d83a98b06a SHA512 173a8e28aeda81220a35d3a0b3c09586a235aafa4aceb65dddeccd3b94729e841ceab29b1defbfa1d959d82185c0fe13b0d998e115a098432fbd2a993ef582f0
DIST openssl-sys-0.9.95.crate 67520 BLAKE2B febe547d6b1d357bd864d943b88f70c9b4a2118156f205fb928ce18946a91aa97619caea30b4580e5013c7bda6bcb75322df4be11a519db6ee6013d09b7e8855 SHA512 8a44009a416864c4deb42a9112d25fb87e2f03734a77500a1851b576d94f615ac69d934c1938f0b78fce9f41a5f8ba73586dfdc0f7d980f7d88ed920235f6495
DIST openssl-sys-0.9.97.crate 67910 BLAKE2B b17cb06f68b522d94da6ef6c879cb4dc76899b20b2f70fb8219381c6191c76e472505c3d5d75da71b0958b596fde514ffb8ca26d1c27717caeff5237320a3e14 SHA512 f07b1bb7936216e6313604f2630f1488e2aaf0c2b204aa47df924581e2238bd23bf56108e5c1cdc853004eb8e5138d89e162aee7ecb00ab249e019dfa3afeec6
DIST option-ext-0.2.0.crate 7345 BLAKE2B cbfc03e7c960fe3023512a4ad816d657b4f54f8ecbde9f9c4df4c5fee3b36b68ab463c67ad650778279e01c7ffaa63a0dacbd0c080c8c3d15b1611de0e71f92d SHA512 f8539f97b01af97e0b80fc96556002251befa60f8ddd19613311e62f9dc9834d71c22f5d8e7c53c4925046e38cdcf834c3c28042a4da862d6f6a21ddff8d8e56
DIST owned_ttf_parser-0.19.0.crate 150704 BLAKE2B d993534c8c17ce01408eb0b2a5af7fb0905f587f50cb1a6de00ef6fb77af271f0605031241019775b95a9e9dadc4fde858c1994da6af3f1f784321f2d764a3a7 SHA512 d421389bbce77302228c69d560f8d34eb7a346616e38ce4aaa6d4770bf89a7cd519adbde2ba05e8875f9033186df1f5f64062ea72d69e3156d61d95a7e1584ff
DIST owned_ttf_parser-0.20.0.crate 150890 BLAKE2B 47ac3309951c24f29151299512f0f54f96b22ed87ddb20d6f1a05861324cb0898ead8b12bd8c64e595b7cecc38cbe3035fd54c13d80ec660e7496fa30f573b4b SHA512 edb121dd4f9fadea578a11c2d9f323c66892b9ccb4b94c1c40ddbea1c57f83e6690b6cde45003024741bde8042f55e2119dc5b5b68e11dbc2a32bd58910ef00e

View File

@@ -0,0 +1,439 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
ab_glyph@0.2.23
ab_glyph_rasterizer@0.1.8
addr2line@0.21.0
adler32@1.2.0
adler@1.0.2
aho-corasick@1.1.2
alloc-no-stdlib@2.0.4
alloc-stdlib@0.2.2
android-tzdata@0.1.1
android_system_properties@0.1.5
anstream@0.6.4
anstyle-parse@0.2.2
anstyle-query@1.0.0
anstyle-wincon@3.0.1
anstyle@1.0.4
anyhow@1.0.75
arrayref@0.3.7
arrayvec@0.7.4
async-compression@0.4.5
autocfg@1.1.0
backtrace@0.3.69
base64@0.21.5
bit_field@0.10.2
bitflags@1.3.2
bitflags@2.4.1
brotli-decompressor@2.5.1
brotli@3.4.0
bumpalo@3.14.0
bytemuck@1.14.0
byteorder@1.5.0
bytes@1.5.0
bzip2-sys@0.1.11+1.0.8
bzip2@0.4.4
cc@1.0.83
cfg-if@1.0.0
cfg_aliases@0.1.1
chrono@0.4.31
clap@4.4.8
clap_builder@4.4.8
clap_complete@4.4.4
clap_derive@4.4.7
clap_lex@0.6.0
color_quant@1.1.0
colorchoice@1.0.0
configparser@3.0.3
const_format@0.2.32
const_format_proc_macros@0.2.32
core-foundation-sys@0.8.4
core-foundation@0.9.3
crc32fast@1.3.2
crossbeam-deque@0.8.3
crossbeam-epoch@0.9.15
crossbeam-utils@0.8.16
crunchy@0.2.2
csscolorparser@0.6.2
darling@0.20.3
darling_core@0.20.3
darling_macro@0.20.3
data-url@0.3.1
deflate@0.8.6
deranged@0.3.9
directories@5.0.1
dirs-sys@0.4.1
dmg@0.1.2
either@1.9.0
encoding_rs@0.8.33
equivalent@1.0.1
errno@0.3.7
exr@1.71.0
fastrand@2.0.1
fdeflate@0.3.1
filedescriptor@0.8.2
filetime@0.2.22
flate2@1.0.28
float-cmp@0.9.0
flume@0.11.0
fnv@1.0.7
fontconfig-parser@0.5.3
fontdb@0.15.0
foreign-types-shared@0.1.1
foreign-types@0.3.2
form_urlencoded@1.2.0
fs_extra@1.3.0
futures-channel@0.3.29
futures-core@0.3.29
futures-io@0.3.29
futures-sink@0.3.29
futures-task@0.3.29
futures-util@0.3.29
gag@1.0.0
getrandom@0.2.11
gif@0.12.0
gimli@0.28.0
glob@0.3.1
h2@0.3.22
half@2.2.1
hashbrown@0.12.3
hashbrown@0.14.2
heck@0.4.1
hermit-abi@0.3.3
hex@0.4.3
http-body@0.4.5
http@0.2.11
httparse@1.8.0
httpdate@1.0.3
hyper-tls@0.5.0
hyper@0.14.27
iana-time-zone-haiku@0.1.2
iana-time-zone@0.1.58
icns@0.3.1
ident_case@1.0.1
idna@0.4.0
image@0.24.7
imagesize@0.12.0
indexmap@1.9.3
indexmap@2.1.0
ipnet@2.9.0
itoa@1.0.9
jpeg-decoder@0.3.0
js-sys@0.3.65
kurbo@0.9.5
language-tags@0.3.2
lazy_static@1.4.0
lebe@0.5.2
libc@0.2.150
libredox@0.0.1
line-wrap@0.1.1
linux-raw-sys@0.4.11
lock_api@0.4.11
log@0.4.20
memchr@2.6.4
memmap2@0.8.0
memoffset@0.9.0
mime@0.3.17
miniz_oxide@0.3.7
miniz_oxide@0.7.1
mio@0.8.9
native-tls@0.2.11
num-integer@0.1.45
num-rational@0.4.1
num-traits@0.2.17
num_cpus@1.16.0
num_threads@0.1.6
object@0.32.1
once_cell@1.18.0
openssl-macros@0.1.1
openssl-probe@0.1.5
openssl-src@300.1.6+3.1.4
openssl-sys@0.9.97
openssl@0.10.61
option-ext@0.2.0
owned_ttf_parser@0.20.0
parse-display-derive@0.8.2
parse-display@0.8.2
percent-encoding@2.3.0
phf@0.11.2
phf_generator@0.11.2
phf_macros@0.11.2
phf_shared@0.11.2
pico-args@0.5.0
pin-project-lite@0.2.13
pin-utils@0.1.0
pix@0.13.3
pkg-config@0.3.27
plist@1.6.0
png@0.16.8
png@0.17.10
powerfmt@0.2.0
ppv-lite86@0.2.17
proc-macro2@1.0.69
qoi@0.4.1
quick-error@1.2.3
quick-xml@0.31.0
quote@1.0.33
quoted-string@0.2.2
rand@0.8.5
rand_chacha@0.3.1
rand_core@0.6.4
rayon-core@1.12.0
rayon@1.8.0
rctree@0.5.0
redox_syscall@0.3.5
redox_syscall@0.4.1
redox_users@0.4.4
regex-automata@0.4.3
regex-syntax@0.7.5
regex-syntax@0.8.2
regex@1.10.2
reqwest@0.11.22
resvg@0.36.0
rgb@0.8.37
roxmltree@0.18.1
rustc-demangle@0.1.23
rustix@0.38.24
rustybuzz@0.10.0
ryu@1.0.15
safemem@0.3.3
sanitize-filename@0.5.0
schannel@0.1.22
scopeguard@1.2.0
security-framework-sys@2.9.1
security-framework@2.9.2
serde@1.0.192
serde_derive@1.0.192
serde_json@1.0.108
serde_urlencoded@0.7.1
serde_with@3.4.0
serde_with_macros@3.4.0
simd-adler32@0.3.7
simplecss@0.2.1
simplelog@0.12.1
siphasher@0.3.11
slab@0.4.9
slotmap@1.0.6
smallvec@1.11.2
smart-default@0.7.1
socket2@0.4.10
socket2@0.5.5
spin@0.9.8
strict-num@0.1.1
strsim@0.10.0
structmeta-derive@0.2.0
structmeta@0.2.0
svgtypes@0.12.0
syn@2.0.39
system-configuration-sys@0.5.0
system-configuration@0.5.1
tar@0.4.40
tempfile@3.8.1
termcolor@1.1.3
thiserror-impl@1.0.50
thiserror@1.0.50
tiff@0.9.0
time-core@0.1.2
time-macros@0.2.15
time@0.3.30
tiny-skia-path@0.11.2
tiny-skia@0.11.2
tinyvec@1.6.0
tinyvec_macros@0.1.1
tokio-native-tls@0.3.1
tokio-socks@0.5.1
tokio-util@0.7.10
tokio@1.34.0
tower-service@0.3.2
tracing-core@0.1.32
tracing@0.1.40
try-lock@0.2.4
ttf-parser@0.19.2
ttf-parser@0.20.0
ulid@1.1.0
unicode-bidi-mirroring@0.1.0
unicode-bidi@0.3.13
unicode-ccc@0.1.2
unicode-ident@1.0.12
unicode-normalization@0.1.22
unicode-properties@0.1.0
unicode-script@0.5.5
unicode-vo@0.1.0
unicode-xid@0.2.4
url@2.4.1
urlencoding@2.1.3
usvg-parser@0.36.0
usvg-text-layout@0.36.0
usvg-tree@0.36.0
usvg@0.36.0
utf8parse@0.2.1
vcpkg@0.2.15
version_check@0.9.4
want@0.3.1
wasi@0.11.0+wasi-snapshot-preview1
wasm-bindgen-backend@0.2.88
wasm-bindgen-futures@0.4.38
wasm-bindgen-macro-support@0.2.88
wasm-bindgen-macro@0.2.88
wasm-bindgen-shared@0.2.88
wasm-bindgen@0.2.88
web-sys@0.3.65
weezl@0.1.7
winapi-i686-pc-windows-gnu@0.4.0
winapi-util@0.1.6
winapi-x86_64-pc-windows-gnu@0.4.0
winapi@0.3.9
windows-core@0.51.1
windows-sys@0.48.0
windows-targets@0.48.5
windows@0.51.1
windows_aarch64_gnullvm@0.48.5
windows_aarch64_msvc@0.48.5
windows_i686_gnu@0.48.5
windows_i686_msvc@0.48.5
windows_x86_64_gnu@0.48.5
windows_x86_64_gnullvm@0.48.5
windows_x86_64_msvc@0.48.5
winreg@0.50.0
xattr@1.0.1
xmlparser@0.13.6
xmlwriter@0.1.0
zune-inflate@0.2.54
"
declare -A GIT_CRATES=(
[mime-parse]='https://github.com/filips123/mime;57416f447a10c3343df7fe80deb0ae8a7c77cf0a;mime-%commit%/mime-parse'
[mime]='https://github.com/filips123/mime;57416f447a10c3343df7fe80deb0ae8a7c77cf0a;mime-%commit%'
[web_app_manifest]='https://github.com/filips123/WebAppManifestRS;477c5bbc7406eec01aea40e18338dafcec78c917;WebAppManifestRS-%commit%'
)
inherit cargo desktop flag-o-matic shell-completion toolchain-funcs xdg
DESCRIPTION="A tool to install, manage and use PWAs in Mozilla Firefox (native component)"
HOMEPAGE="https://pwasforfirefox.filips.si/"
SRC_URI="
https://github.com/filips123/PWAsForFirefox/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
# Main project license
LICENSE="MPL-2.0"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD-2 BSD MIT MPL-2.0 Unicode-DFS-2016 ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="lto custom-cflags"
# Add app-arch/bzip2 when it finally get pkg-config file
DEPEND="dev-libs/openssl:="
RDEPEND="${DEPEND}"
# As Rust produces LLVM IR when using LTO, lld is needed to link. Furthermore,
# as some crates contain C code, clang should be used to compile them to produce
# compatible IR.
BDEPEND="
virtual/pkgconfig
lto? (
!custom-cflags? (
sys-devel/clang
sys-devel/lld
)
)
"
QA_FLAGS_IGNORED="
usr/bin/firefoxpwa
usr/libexec/firefoxpwa-connector
"
S="${WORKDIR}/PWAsForFirefox-${PV}/native"
src_prepare() {
default
# Set version in source files as per build instructions
sed -i "s/version = \"0.0.0\"/version = \"${PV}\"/g" Cargo.toml || die
sed -i "s/DISTRIBUTION_VERSION = '0.0.0'/DISTRIBUTION_VERSION = '${PV}'/g" \
userchrome/profile/chrome/pwa/chrome.jsm || die
}
src_configure() {
strip-flags
export CARGO_PROFILE_RELEASE_LTO=$(usex lto true false)
if use lto; then
if ! use custom-cflags; then
# Fix -flto[=n] not being recognized by clang.
tc-is-gcc && is-flag "-flto=*" && replace-flags "-flto=*" "-flto"
CC="${CHOST}-clang"
CXX="${CHOST}-clang++"
RUSTFLAGS="-Clinker=clang -Clink-arg=-fuse-ld=lld ${RUSTFLAGS}"
fi
else
filter-lto
fi
export PKG_CONFIG_ALLOW_CROSS=1
export OPENSSL_NO_VENDOR=1
cargo_src_configure
}
src_install() {
# Executables
dobin target/*/firefoxpwa
exeinto /usr/libexec
doexe target/*/firefoxpwa-connector
# Manifest
local target_dirs=( /usr/lib{,64}/mozilla/native-messaging-hosts )
for target_dir in "${target_dirs[@]}"; do
insinto "${target_dir}"
newins manifests/linux.json firefoxpwa.json
done
# Completions
newbashcomp target/*/completions/firefoxpwa.bash firefoxpwa
dofishcomp target/*/completions/firefoxpwa.fish
dozshcomp target/*/completions/_firefoxpwa
# UserChrome
insinto /usr/share/firefoxpwa
doins -r ./userchrome
# Documentation
dodoc ../README.md
newdoc ../native/README.md README-NATIVE.md
newdoc ../extension/README.md README-EXTENSION.md
# AppStream Metadata
insinto /usr/share/metainfo
doins packages/appstream/si.filips.FirefoxPWA.metainfo.xml
# Icon
doicon -s scalable packages/appstream/si.filips.FirefoxPWA.svg
}
pkg_postinst() {
echo "You have successfully installed the native part of the PWAsForFirefox project"
echo "You should also install the Firefox extension if you haven't already"
echo "Download: https://addons.mozilla.org/firefox/addon/pwas-for-firefox/"
xdg_pkg_postinst
}
pkg_postrm() {
if [[ ! ${REPLACING_VERSIONS} ]]; then
echo "Runtime, profiles and web apps are still installed in user directories"
echo "You can remove them manually after this package is uninstalled"
echo "Doing that will remove all installed web apps and their data"
fi
xdg_pkg_postrm
}