Gentoo Archives: gentoo-commits

From: Rui Huang <vowstar@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/kactus2/
Date: Sun, 23 Feb 2020 07:17:26
Message-Id: 1582442218.a1ba7d7e084ed90dfb2afe8bcd8057cb39cca0f5.vowstar@gentoo
1 commit: a1ba7d7e084ed90dfb2afe8bcd8057cb39cca0f5
2 Author: Huang Rui <vowstar <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 23 07:16:58 2020 +0000
4 Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
5 CommitDate: Sun Feb 23 07:16:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a1ba7d7e
7
8 sci-electronics/kactus2: add kactus2-9999.ebuild
9
10 Add kactus2-9999.ebuild to get the latest software
11
12 Package-Manager: Portage-2.3.89, Repoman-2.3.20
13 Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
14
15 sci-electronics/kactus2/kactus2-9999.ebuild | 59 +++++++++++++++++++++++++++++
16 1 file changed, 59 insertions(+)
17
18 diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild
19 new file mode 100644
20 index 0000000..206e142
21 --- /dev/null
22 +++ b/sci-electronics/kactus2/kactus2-9999.ebuild
23 @@ -0,0 +1,59 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +inherit xdg-utils
30 +
31 +DESCRIPTION="A open source IP-XACT-based tool"
32 +HOMEPAGE="
33 + http://funbase.cs.tut.fi
34 + https://github.com/kactus2/kactus2dev
35 +"
36 +
37 +if [[ ${PV} == "9999" ]] ; then
38 + inherit git-r3
39 + EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git"
40 +else
41 + SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
43 + S="${WORKDIR}/${PN}dev-${PV}"
44 +fi
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +
49 +DEPEND="
50 + dev-qt/qtcore:5
51 + dev-qt/qtgui:5
52 + dev-qt/qthelp:5
53 + dev-qt/qtprintsupport:5
54 + dev-qt/qtsvg:5
55 + dev-qt/qtwidgets:5
56 + dev-qt/qtxml:5
57 +"
58 +
59 +RDEPEND="
60 + ${DEPEND}
61 +"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-3.8.0-install.patch # Fix install problem
65 +)
66 +
67 +src_install() {
68 + # Can't use default, set INSTALL_ROOT and workaround parallel install bug
69 + emake -j1 INSTALL_ROOT="${D}" install
70 +}
71 +
72 +pkg_postinst() {
73 + xdg_desktop_database_update
74 + xdg_icon_cache_update
75 + xdg_mimeinfo_database_update
76 +}
77 +
78 +pkg_postrm() {
79 + xdg_desktop_database_update
80 + xdg_icon_cache_update
81 + xdg_mimeinfo_database_update
82 +}