We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

annotate app-office/softmaker-office/softmaker-office-2021.1034.ebuild @ 249:0685ed0fb913

[sync] imported 2c6bf87..18f98a6 from upstream commit 18f98a6f47cd77c1007b60dbfc7a838ffa99df0c Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Mar 27 21:11:43 2023 +0200 app-crypt/acmetool: version bump to 0.2.2 commit ee2df4ec1deab61cd7bb7de2cd13ffdd066cc41a Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Mar 27 19:30:58 2023 +0200 app-crypt/acmetool: split 0.2.1 from 9999, changed dependencies commit f3c9cf1c7a24619446390b0b71bf5bc090dfce77 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Mar 27 19:29:33 2023 +0200 removed dependency to go-overlay commit b2057a9b0ba65917f3840a6b121c1e78397c4723 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Mar 27 19:27:28 2023 +0200 golang eclasses: prefixed exported functions x-mgcf- commit e8d02d1edc997fec9e0b1e5d053a5b82ca4accf2 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Mar 27 19:08:52 2023 +0200 renamed golang eclasses, updated maintainer, added disclaimer commit 748ea4be8ee777bc788cb2a8801b118b41e6f8aa Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Mar 27 18:43:56 2023 +0200 copied eclasses for Go from go-overlay Reason: These eclasses are used to build app-crypt/acmetool. We previously imported go-overlay as a master repository to use the eclasses defined there but the overlay has been removed from official Gentoo overlay index due to inactivity. The removal broke new initial checkouts for this repository as go-overlay can no longer be found. Gentoo bug for MegaCoffee: https://bugs.gentoo.org/903167 Gentoo bug that caused removal: https://bugs.gentoo.org/864653 Original repository: https://github.com/Dr-Terrible/go-overlay
author Migration Sync <gentoo-overlay@megacoffee.net>
date Mon, 27 Mar 2023 19:15:01 +0000
parents 72d820887c21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
239
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
1 # Copyright 1999-2021 Gentoo Foundation
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
3
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
4 EAPI=8
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
5
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
6 inherit desktop xdg-utils
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
7
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
8 DESCRIPTION="SoftMaker Office - an office suite featuring a word processor (TextMaker), spreadsheets (PlanMaker) and slides software (Presentations)"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
9 HOMEPAGE="https://www.softmaker.com/en/softmaker-office"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
10
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
11 SRC_URI="https://www.softmaker.net/down/softmaker-office-${PV//\./-}-amd64.tgz"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
12
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
13 LICENSE="SoftMakerOffice"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
14 SLOT="0"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
15 KEYWORDS="~amd64"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
16
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
17 # .dep dependencies as of 20 Oct 2021, version 2021-1034:
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
18 #
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
19 # DEBIAN GENTOO
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
20 #
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
21 # libcurl4 | libcurl3 (>= 7.16.2) => net-misc/curl
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
22 # libc6 (>= 2.17) => sys-libs/glibc
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
23 # libgcc1 (>= 1:4.2) => sys-devel/gcc
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
24 # libgl1-mesa-glx | libgl1 => virtual/opengl
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
25 # libstdc++6 (>= 5.2) => sys-devel/gcc
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
26 # libx11-6 => x11-libs/libX11
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
27 # libxext6 => x11-libs/libXext
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
28 # libxmu6 => x11-libs/libXmu
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
29 # libxrandr2 (>= 2:1.2.99.3) => x11-libs/libXrandr
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
30 # libxrender1 => x11-libs/libXrender
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
31
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
32 DEPEND="
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
33 app-arch/tar
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
34 app-arch/xz-utils
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
35 "
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
36 RDEPEND="${DEPEND}
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
37 net-misc/curl
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
38 sys-libs/glibc
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
39 sys-devel/gcc
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
40 virtual/opengl
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
41 x11-libs/libX11
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
42 x11-libs/libXext
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
43 x11-libs/libXmu
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
44 x11-libs/libXrandr
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
45 x11-libs/libXrender
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
46 "
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
47
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
48 S="${WORKDIR}"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
49
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
50 INNER_ARCHIVE="office2021.tar.lzma"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
51 EXTRACTED_INNER_ARCHIVE="${WORKDIR}/extracted"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
52
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
53 FINAL_INSTALL_DIR="/opt/softmaker-office"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
54 INSTALL_DIR="${D}${FINAL_INSTALL_DIR}"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
55
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
56 # disable QA check for pre-stripped binaries
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
57 QA_PRESTRIPPED="
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
58 ${FINAL_INSTALL_DIR}/dpf3/libgamorphDpf.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
59 ${FINAL_INSTALL_DIR}/dpf3/libsprt4-5-1.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
60 ${FINAL_INSTALL_DIR}/dpf3/libdpf.so.3
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
61 ${FINAL_INSTALL_DIR}/dpf3/libsx.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
62 ${FINAL_INSTALL_DIR}/dpf3/libsprt4-5-1-instance-03.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
63 ${FINAL_INSTALL_DIR}/dpf3/libCTokenizer.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
64 ${FINAL_INSTALL_DIR}/dpf3/libSGAnalyseSP.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
65 ${FINAL_INSTALL_DIR}/dpf3/libsprt4-5-1-instance-01.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
66 ${FINAL_INSTALL_DIR}/dpf3/libDpfDict.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
67 ${FINAL_INSTALL_DIR}/dpf3/libsprt4-5-1-instance-02.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
68 ${FINAL_INSTALL_DIR}/dpf3/libCSegmentation.so
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
69 ${FINAL_INSTALL_DIR}/textmaker
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
70 ${FINAL_INSTALL_DIR}/presentations
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
71 ${FINAL_INSTALL_DIR}/planmaker
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
72 "
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
73
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
74 # disable QA checks for upstream .desktop files
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
75 QA_DESKTOP_FILE="
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
76 usr/share/applications/planmaker-2021.desktop
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
77 usr/share/applications/presentations-2021.desktop
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
78 usr/share/applications/textmaker-2021.desktop
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
79 "
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
80
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
81 src_unpack() {
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
82 unpack ${A} || "Failed to unpack outer archive"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
83
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
84 mkdir ${EXTRACTED_INNER_ARCHIVE}
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
85 cd ${EXTRACTED_INNER_ARCHIVE} || die "Failed to switch to extraction directory"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
86
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
87 tar xJf ${WORKDIR}/${INNER_ARCHIVE} || die "Failed to extract ${INNER_ARCHIVE}"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
88 }
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
89
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
90 src_prepare() {
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
91 ## extract all lines defining functions from original install script so we can import it
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
92 # first make sure we actually have the expected revision
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
93 expected_hash="d9a7f0e21b15d226f203c3e74e42bdb3"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
94 actual_hash=$(md5sum "${WORKDIR}/installsmoffice" | cut -c'-32')
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
95 [[ "${actual_hash}" == "${expected_hash}" ]] || die "Unexpected file hash on install script, unable to extract functions. Expected MD5 ${expected_hash}, got: ${actual_hash}"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
96
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
97 # extract
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
98 tail -n 1566 ${WORKDIR}/installsmoffice | head -n 1328 >${WORKDIR}/smoffice-install-functions.sh
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
99
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
100 # mandatory since EAPI 6
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
101 eapply_user
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
102 }
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
103
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
104 src_compile() {
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
105 . ${WORKDIR}/smoffice-install-functions.sh
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
106
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
107 # set variables needed by original install script
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
108 APPBINPATH="${WORKDIR}" # install script function will write there during installation
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
109 SRCPATH="${EXTRACTED_INNER_ARCHIVE}" # install script function will read from there during installation
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
110 APPPATH="${FINAL_INSTALL_DIR}" # generated script will run files from there after installation
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
111
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
112 ## create_script
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
113 UNINSTALLSCRIPT="${APPBINPATH}/uninstall_smoffice2021" # irrelevant but function will generate that file nevertheless
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
114 REMOVEICONSSCRIPT="${APPBINPATH}/remove_icons.sh" # also irrelevant but needed
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
115
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
116 # somehow the base file for the (irrelevant) uninstall script does not exist after unpacking, replace by dummy
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
117 echo '#dummy' >$SRCPATH/mime/uninst1
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
118
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
119 # run original create_script function
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
120 # arg 1 = version
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
121 # arg 2 = fixed to "1" by original install script
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
122 # arg 3 = empty to indicate global installation
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
123 (set -e; create_script 2021 "1" "") || die "Failed to run original create_script"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
124
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
125 ## create_desktop1 to create .desktop files
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
126 # run original create_desktop functions
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
127 # arg 1 = version
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
128 # arg 2 = "0" assumes /usr/bin for installation, "1" uses APPBINPATH which would be wrong for this ebuild
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
129 (set -e; create_desktop1 2021 "0") || die "Failed to run original create_desktop1"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
130
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
131 ## do not run create_desktop2 as it would install the files (this will be done separately by this ebuild)
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
132 }
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
133
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
134 src_install() {
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
135 # all pre-built binaries should go into /opt and be symlinked to usr/bin etc.
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
136
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
137 # copy everything from inner archive to /opt install dir
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
138 insinto ${FINAL_INSTALL_DIR}
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
139 doins -r ${EXTRACTED_INNER_ARCHIVE}/*
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
140
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
141 # redo the executables (otherwise they miss permission)
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
142 exeinto ${FINAL_INSTALL_DIR}
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
143 doexe ${EXTRACTED_INNER_ARCHIVE}/planmaker
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
144 doexe ${EXTRACTED_INNER_ARCHIVE}/presentations
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
145 doexe ${EXTRACTED_INNER_ARCHIVE}/textmaker
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
146
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
147 # install the original wrapper scripts to /usr/bin
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
148 dobin ${WORKDIR}/planmaker21
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
149 dobin ${WORKDIR}/presentations21
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
150 dobin ${WORKDIR}/textmaker21
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
151
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
152 # symlink .desktop entries
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
153 for app in planmaker presentations textmaker; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
154 dosym ${FINAL_INSTALL_DIR}/mime/${app}-2021.desktop /usr/share/applications/${app}-2021.desktop
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
155 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
156
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
157 # MIME definition
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
158 # TODO: split to separate files?
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
159 # TODO: separate SoftMaker Office's own from generic definitions? (generic = MS Office etc.)
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
160 insinto /usr/share/mime/application/
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
161 doins /opt/softmaker-office/mime/softmaker-office-2021.xml
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
162
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
163 ## icons (see original copy_icons function)
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
164 # TODO: don't install what we don't need when separated
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
165 # 1024 is not supported by desktop eclass yet
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
166
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
167 # app icons
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
168 for app in prl tml pml; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
169 for size in 16 24 32 48 64 128 256 512; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
170 newicon -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/${app}_${size}.png" "application-x-${app}21.png"
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
171 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
172 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
173
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
174 # MIME icons
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
175 for size in 16 24 32 48 64 128 256 512; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
176 ## text documents
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
177 # SoftOffice => tmd icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
178 for mime in application-x-tmd application-x-tmv; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
179 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/tmd_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
180 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
181
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
182 # MS Office => tmd_mso icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
183 for mime in application-rtf text-rtf application-msword application-msword-template application-vnd.ms-word application-x-doc application-x-pocket-word application-vnd.openxmlformats-officedocument.wordprocessingml.document application-vnd.openxmlformats-officedocument.wordprocessingml.template application-vnd.ms-word.document.macroenabled.12 application-vnd.ms-word.template.macroenabled.12; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
184 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/tmd_mso_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
185 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
186
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
187 # OpenDocument => tmd_oth icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
188 for mime in application-x-pocket-word application-vnd.oasis.opendocument.text text-rtf application-vnd.sun.xml.writer application-vnd.sun.xml.writer.template application-vnd.wordperfect application-vnd.oasis.opendocument.text-template application-vnd.oasis.opendocument.text application-vnd.sun.xml.writer application-vnd.sun.xml.writer.template application-x-dbf; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
189 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/tmd_oth_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
190 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
191
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
192 ## spreadsheet documents
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
193 # SoftOffice? => pmd icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
194 for mime in application-x-pmd application-x-pmv application-x-pmdx application-x-pagemaker; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
195 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/pmd_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
196 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
197
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
198 # MS Office => pmd_mso icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
199 for mime in application-x-sylk application-excel application-x-excel application-x-ms-excel application-x-msexcel application-x-xls application-xls application-vnd.ms-excel application-vnd.openxmlformats-officedocument.spreadsheetml.sheet application-vnd.openxmlformats-officedocument.spreadsheetml.template application-vnd.ms-excel.sheet.macroenabled.12 application-vnd.ms-excel.template.macroenabled.12 text-spreadsheet; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
200 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/pmd_mso_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
201 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
202
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
203 # OpenDocument and generic? => pmd_oth icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
204 for mime in text-csv application-x-dif application-x-prn application-vnd.stardivision.calc; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
205 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/pmd_oth_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
206 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
207
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
208 ## presentations
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
209 # SoftOffice => prd icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
210 for mime in application-x-prd application-x-prs application-x-prv; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
211 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/prd_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
212 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
213
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
214 # MS Office => prd_mso icon
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
215 for mime in application-ppt application-mspowerpoint application-vnd.ms-powerpoint application-vnd.ms-powerpoint.presentation.macroenabled.12 application-vnd.ms-powerpoint.slideshow.macroEnabled.12 application-vnd.openxmlformats-officedocument.presentationml.presentation application-vnd.openxmlformats-officedocument.presentationml.template application-vnd.openxmlformats-officedocument.presentationml.slideshow; do
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
216 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/prd_mso_${size}.png" ${mime}.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
217 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
218
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
219 ## trailing in original function
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
220 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/tmd_${size}.png" application-x-tmd.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
221 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/tmd_mso_${size}.png" application-x-tmd-mso.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
222 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/tmd_oth_${size}.png" application-x-tmd-oth.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
223
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
224 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/pmd_${size}.png" application-x-pmd.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
225 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/pmd_mso_${size}.png" application-x-pmd-mso.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
226 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/pmd_oth_${size}.png" application-x-pmd-oth.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
227
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
228 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/prd_${size}.png" application-x-prd.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
229 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/prd_mso_${size}.png" application-x-prd-mso.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
230 newicon -c mimetypes -s ${size} "${EXTRACTED_INNER_ARCHIVE}/icons/prd_oth_${size}.png" application-x-prd-oth.png
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
231 done
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
232
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
233 # TODO: what about the provided fonts, theres no global registration in the original install script?
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
234 }
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
235
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
236 pkg_postinst() {
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
237 xdg_icon_cache_update
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
238 xdg_desktop_database_update
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
239 xdg_mimeinfo_database_update
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
240 }
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
241
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
242 pkg_postrm() {
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
243 xdg_icon_cache_update
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
244 xdg_desktop_database_update
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
245 xdg_mimeinfo_database_update
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
246 }
72d820887c21 [sync] imported a05f6c9..2916f66 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
247