Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-editors/typora-bin/
Date: Mon, 03 May 2021 17:31:17
Message-Id: 1620063066.73547a83fa48de8f2b5a9efd8d5e92ce6dc7beae.andrewammerlaan@gentoo
1 commit: 73547a83fa48de8f2b5a9efd8d5e92ce6dc7beae
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Mon May 3 17:30:56 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Mon May 3 17:31:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=73547a83
7
8 app-editors/typora-bin: use proper releases
9
10 Closes: https://bugs.gentoo.org/786918
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
13
14 app-editors/typora-bin/Manifest | 2 +-
15 ...ra-bin-9999.ebuild => typora-bin-0.10.7.ebuild} | 23 ++++++----------------
16 2 files changed, 7 insertions(+), 18 deletions(-)
17
18 diff --git a/app-editors/typora-bin/Manifest b/app-editors/typora-bin/Manifest
19 index aa2a5bb95..566140d5f 100644
20 --- a/app-editors/typora-bin/Manifest
21 +++ b/app-editors/typora-bin/Manifest
22 @@ -1 +1 @@
23 -DIST typora-9999-linux-x64.tar.gz 90347518 BLAKE2B 09ad07338afd4f91769f317edfda60b006a7b20b328ea7e74dfe742e7d20d81333e951532ce869961509cca7000f34295a328cc919b7450dd3bd0a7ead49afd7 SHA512 0ab3a1c0bdd32fe1b7311e1d02f6962a477c7209710c95fd66d1490a3cba3b823263baa42305250ad8ef113394b8a5faec3f9a2557ecd3402dc5aa5134c3c602
24 +DIST typora_0.10.7_amd64.deb 67149180 BLAKE2B b1ede052143ae96136941768e586dcd60df64504c182e01e837bf16c343523ad87553401b725e472698e7ad0aaedb326366c01b470778ca279af214508fc1320 SHA512 ccfe965514b71b31e1c8f986e1ea46976c6a0f87edc65f04e936897bc417880f0b915e4539eb50114125206a75235762a01d02ca16a9f6063da1adc812127226
25
26 diff --git a/app-editors/typora-bin/typora-bin-9999.ebuild b/app-editors/typora-bin/typora-bin-0.10.7.ebuild
27 similarity index 56%
28 rename from app-editors/typora-bin/typora-bin-9999.ebuild
29 rename to app-editors/typora-bin/typora-bin-0.10.7.ebuild
30 index 19b801b33..e87604f14 100644
31 --- a/app-editors/typora-bin/typora-bin-9999.ebuild
32 +++ b/app-editors/typora-bin/typora-bin-0.10.7.ebuild
33 @@ -3,15 +3,15 @@
34
35 EAPI=7
36
37 -inherit desktop xdg
38 +inherit unpacker xdg
39
40 DESCRIPTION="a markdown editor,markdown reader."
41 HOMEPAGE="https://typora.io"
42 -SRC_URI="https://typora.io/linux/Typora-linux-x64.tar.gz -> typora-${PV}-linux-x64.tar.gz"
43 +SRC_URI="https://typora.io/linux/typora_${PV}_amd64.deb"
44
45 LICENSE="Typora-EULA"
46 SLOT="0"
47 -KEYWORDS="~amd64"
48 +KEYWORDS="-* ~amd64"
49 IUSE=""
50
51 DEPEND=""
52 @@ -39,20 +39,9 @@ RDEPEND="
53 BDEPEND=""
54
55 QA_PREBUILT="*"
56 -
57 -src_unpack() {
58 - if [ ${A} != "" ]; then
59 - unpack ${A}
60 - fi
61 - S="${WORKDIR}/bin/Typora-linux-x64/"
62 -}
63 +S="${WORKDIR}"
64
65 src_install() {
66 - insinto /opt/
67 - doins -r "${S}"
68 - newicon "$S/resources/app/asserts/icon/icon_512x512@××.png" "${PN}.png"
69 - dosym ../../opt/Typora-linux-x64/Typora /usr/bin/Typora
70 - fperms 0755 /opt/Typora-linux-x64/Typora
71 - fperms 4755 /opt/Typora-linux-x64/chrome-sandbox
72 - domenu "${FILESDIR}/Typora.desktop"
73 + mv "${S}"/* "${ED}" || die
74 + mv "${ED}/usr/share/doc/${PN//-bin}" "${ED}/usr/share/doc/${PF}" || die
75 }