mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-04 01:18:31 -04:00
app-office/freeoffice: add 1224
This commit is contained in:
parent
5da86e0aca
commit
cd8d550a83
@ -2,3 +2,4 @@ DIST softmaker-freeoffice-2021-1062-amd64.tgz 130160899 BLAKE2B e8e1d4491909fccd
|
||||
DIST softmaker-freeoffice-2021-1064-amd64.tgz 130167508 BLAKE2B 8ea095a351558feee88e9ed3cafdfe0468cb0a87a28c0836d0a5ee6ef69b7c97945b7b8423342dcbe545f429da16b39c1e4671846f7e5b166457b7e7760b81cc SHA512 b8583710a0d4ea9c6a969c729d0394642b7e855bd07da0e36599e24d9e75c1578e055e39d66eb672e9d4f2493f97310d149b809c2e623c84a042caa07e59fbc1
|
||||
DIST softmaker-freeoffice-2021-1068-amd64.tgz 130164325 BLAKE2B 56ea5939f316aedc79ec53f520ac6c13ae6176ad04cc697b2af4ca343a94497923dd4a6e6a09e1249a632e5e07ec1471bf320dacd92832ba490b7aed8e6ebd2f SHA512 7321d725d496d716b72e7813117d46e32d467c2659512fef8af072afda99ff7d6404107d04750630abcb3870fe8cf70d9c5dc9e191b2c4101492e53060abe27d
|
||||
DIST softmaker-freeoffice-2024-1220-amd64.tgz 167312730 BLAKE2B 37c97b52a5316bf0a9aeceab653f72e830a7fe5d0e0ad39423759e500817c22ffe8d410a6746d626f5ee807e34d32893b1ec818c3e766497631a606214734174 SHA512 04555737aa16e2593429524f974d0be5c69237a2550b510524e61d513c139660ebd71a6c7f67fd246b379ea2b09a7a411962dd9d63eadebddb90183a2ddcd8e7
|
||||
DIST softmaker-freeoffice-2024-1224-amd64.tgz 167202436 BLAKE2B ab51f1d2ce570ba11ff48e56ab528eb6e46a2dd2acaa300bcf0083cb14b0546db1adb4fade2c8fdc904ecf9ad62667bd935029266403af5b83eb065326747011 SHA512 e199d0d904ef0ccf986fecde33502e3b8c25db50551351887386a97b38fb85e1dad858b0afbffaaa5e5420a9f6bc9883c0f366cc327fb174d3bb940b3a7d79e3
|
||||
|
192
app-office/freeoffice/freeoffice-1224.ebuild
Normal file
192
app-office/freeoffice/freeoffice-1224.ebuild
Normal file
@ -0,0 +1,192 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop pax-utils xdg
|
||||
|
||||
DESCRIPTION="A complete, free Microsoft Office-compatible alternative office suite."
|
||||
HOMEPAGE="https://www.freeoffice.com"
|
||||
BASE_URI="https://www.softmaker.net/down/softmaker-freeoffice-2024-${PV}"
|
||||
SRC_URI="${BASE_URI}-amd64.tgz"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="SoftMaker"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
LANGUAGES="ar bg da de el en-GB en-US es et fi fr hu id it ja kk ko lt lv nl pl pt pt-BR ro ru sl sv tr uk zh"
|
||||
for lang in ${LANGUAGES}; do
|
||||
IUSE+="l10n_${lang%:*} "
|
||||
done
|
||||
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
DEPEND="
|
||||
app-admin/chrpath
|
||||
app-arch/xz-utils"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
media-libs/mesa
|
||||
net-misc/curl
|
||||
x11-libs/libXrandr
|
||||
dev-util/desktop-file-utils
|
||||
dev-util/gtk-update-icon-cache
|
||||
media-libs/libglvnd
|
||||
x11-misc/xdg-utils"
|
||||
|
||||
QA_PRESTRIPPED="*"
|
||||
QA_PREBUILT="*"
|
||||
QA_FLAGS_IGNORED="*"
|
||||
|
||||
font_clean(){
|
||||
for lang in ${LANGUAGES}; do
|
||||
use l10n_${lang%:*} && continue
|
||||
declare suf
|
||||
case ${lang%:*} in
|
||||
zh-CN)
|
||||
suf="sc";;
|
||||
ko)
|
||||
suf="kr";;
|
||||
ja)
|
||||
suf="jp";;
|
||||
esac
|
||||
rm fonts/NotoSansCJK${suf}-Regular.otf
|
||||
done
|
||||
}
|
||||
|
||||
free_clean(){
|
||||
for lang in ${LANGUAGES}; do
|
||||
use l10n_${lang%:*} && continue
|
||||
declare fix
|
||||
case ${lang%:*} in
|
||||
de)
|
||||
fix="de";;
|
||||
esac
|
||||
rm *free_${fix}.pdf
|
||||
done
|
||||
}
|
||||
|
||||
lang_clean(){
|
||||
for lang in ${LANGUAGES}; do
|
||||
use l10n_${lang%:*} && continue
|
||||
declare suffix
|
||||
case ${lang%:*} in
|
||||
da)
|
||||
suffix="dk";;
|
||||
el)
|
||||
suffix="gr";;
|
||||
en-US)
|
||||
suffix="us";;
|
||||
en-GB)
|
||||
suffix="uk";;
|
||||
et)
|
||||
suffix="ee";;
|
||||
ja)
|
||||
suffix="jp";;
|
||||
kk)
|
||||
suffix="kz";;
|
||||
ko)
|
||||
suffix="kr";;
|
||||
pt-BR)
|
||||
suffix="pb";;
|
||||
sl)
|
||||
suffix="si";;
|
||||
sv)
|
||||
suffix="se";;
|
||||
uk)
|
||||
suffix="ua";;
|
||||
*)
|
||||
suffix="${lang%:*}";;
|
||||
esac
|
||||
rm *_${suffix}.dwr
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
doc_clean(){
|
||||
for lang in ${LANGUAGES}; do
|
||||
use l10n_${lang%:*} && continue
|
||||
declare doc
|
||||
case ${lang%:*} in
|
||||
da)
|
||||
doc="dk";;
|
||||
el)
|
||||
doc="gr";;
|
||||
en-US)
|
||||
doc="us";;
|
||||
en-GB)
|
||||
doc="uk";;
|
||||
et)
|
||||
doc="ee";;
|
||||
ja)
|
||||
doc="jp";;
|
||||
kk)
|
||||
doc="kz";;
|
||||
ko)
|
||||
doc="kr";;
|
||||
pt-BR)
|
||||
doc="pb";;
|
||||
sl)
|
||||
doc="si";;
|
||||
sv)
|
||||
doc="se";;
|
||||
uk)
|
||||
doc="ua";;
|
||||
*)
|
||||
doc="${lang%:*}";;
|
||||
esac
|
||||
rm inst/*_${doc}.zip
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install(){
|
||||
mkdir -p "${ED}/usr/lib64/${PN}"
|
||||
cd "${ED}/usr/lib64/${PN}"
|
||||
|
||||
unpack ${A}
|
||||
xz -d "freeoffice2024.tar.lzma" || die
|
||||
tar x -f "freeoffice2024.tar" \
|
||||
&& rm "freeoffice2024.tar" || die
|
||||
rm "installfreeoffice"
|
||||
|
||||
chrpath --delete "textmaker"
|
||||
chrpath --delete "planmaker"
|
||||
chrpath --delete "presentations"
|
||||
|
||||
font_clean
|
||||
lang_clean
|
||||
free_clean
|
||||
doc_clean
|
||||
|
||||
for m in "${FILESDIR}"/*.desktop; do
|
||||
domenu "${m}"
|
||||
done
|
||||
|
||||
for size in 16 24 32 48 64 128 256 512; do
|
||||
newicon -s ${size} icons/pml_${size}.png ${PN}-planmaker.png
|
||||
newicon -s ${size} icons/prl_${size}.png ${PN}-presentations.png
|
||||
newicon -s ${size} icons/tml_${size}.png ${PN}-textmaker.png
|
||||
done
|
||||
|
||||
insinto /usr/share/mime/packages
|
||||
doins mime/softmaker-freeoffice24.xml
|
||||
|
||||
pax-mark -m "${ED}"/usr/lib64/${PN}/planmaker
|
||||
pax-mark -m "${ED}"/usr/lib64/${PN}/presentations
|
||||
pax-mark -m "${ED}"/usr/lib64/${PN}/textmaker
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
einfo
|
||||
elog "In order to use Softmaker Freeoffice, you need a serial number."
|
||||
elog "To obtain a valid free serial number, please visit"
|
||||
elog "https://www.freeoffice.com/en/download"
|
||||
einfo
|
||||
xdg_pkg_postinst
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user