1 |
commit: 6edd92e0a2162c4d7e6913260fc393958ec02aa2 |
2 |
Author: Huang Rui <vowstar <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 23 07:15:18 2020 +0000 |
4 |
Commit: Rui Huang <vowstar <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 23 07:15:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6edd92e0 |
7 |
|
8 |
sci-electronics/kactus2: new package for 3.8.0 |
9 |
|
10 |
Kactus2 is a toolset for designing embedded products, especially FPGA-based |
11 |
MP-SoCs. The aim is easier IP reusability and integration for both hardware |
12 |
and software. The tool is based on IEEE 1685-2014 "IP-XACT" standard. |
13 |
|
14 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
15 |
Signed-off-by: Huang Rui <vowstar <AT> gmail.com> |
16 |
|
17 |
sci-electronics/kactus2/Manifest | 1 + |
18 |
.../kactus2/files/kactus2-3.8.0-install.patch | 30 +++++++++++ |
19 |
sci-electronics/kactus2/kactus2-3.8.0.ebuild | 59 ++++++++++++++++++++++ |
20 |
sci-electronics/kactus2/metadata.xml | 20 ++++++++ |
21 |
4 files changed, 110 insertions(+) |
22 |
|
23 |
diff --git a/sci-electronics/kactus2/Manifest b/sci-electronics/kactus2/Manifest |
24 |
new file mode 100644 |
25 |
index 0000000..12bdbeb |
26 |
--- /dev/null |
27 |
+++ b/sci-electronics/kactus2/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST kactus2-3.8.0.tar.gz 19410435 BLAKE2B 2117a7ea5118c59f5b96a449348ba2425646038eb756c5423301d3deba15765005aafae3241c943b7adfaa728edeac3f0963b1cad7c23892b68bbd6ed7de78c0 SHA512 426021465f296c63ff70738b7a56547ac6e5b46ed06b165da2bbcd7239ff9e65c099721ebfb5e7f90b0afa9f5621d7825ff7e216bcc4786f0431f1e98d95eee8 |
30 |
|
31 |
diff --git a/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch b/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch |
32 |
new file mode 100644 |
33 |
index 0000000..0cce3b5 |
34 |
--- /dev/null |
35 |
+++ b/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch |
36 |
@@ -0,0 +1,30 @@ |
37 |
+--- a/.qmake.conf |
38 |
++++ b/.qmake.conf |
39 |
+@@ -2,9 +2,14 @@ |
40 |
+ LOCAL_INSTALL_DIR="" |
41 |
+ |
42 |
+ isEmpty(LOCAL_INSTALL_DIR) { |
43 |
++ # Get the bitness of the system. |
44 |
++ UNAME = $$system(uname -m) |
45 |
++ |
46 |
+ # Select paths for binaries in accordance with convention. |
47 |
+ bin_path = /usr/bin |
48 |
+- lib_path = /usr/lib |
49 |
++ # Lib path depend on the bitness of the system. |
50 |
++ equals(UNAME, x86_64): lib_path = /usr/lib64 |
51 |
++ !equals(UNAME, x86_64): lib_path = /usr/lib |
52 |
+ plugin_path = /usr/share/kactus2/plugins |
53 |
+ |
54 |
+ # Files and destination path for possible settings file upgrades. |
55 |
+@@ -23,9 +28,8 @@ isEmpty(LOCAL_INSTALL_DIR) { |
56 |
+ unix:config.path = /etc/xdg/TUT |
57 |
+ |
58 |
+ # Copying stuff, exact locations seem to depend on the bitness of the system. |
59 |
+- UNAME = $$system(uname -m) |
60 |
+- equals(UNAME, x86_64): unix:config.extra = cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini /etc/xdg/TUT/Kactus2.ini; (test -d /usr/lib64 && ln -f -s /usr/bin/kactus2 /usr/lib64/libKactus2.so) || (test -d /lib/x86_64-linux-gnu && ln -f -s /usr/bin/kactus2 /lib/x86_64-linux-gnu/libKactus2.so) |
61 |
+- !equals(UNAME, x86_64): unix:config.extra = cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini /etc/xdg/TUT/Kactus2.ini; ln -f -s /usr/bin/kactus2 /usr/lib/libKactus2.so |
62 |
++ equals(UNAME, x86_64): unix:config.extra = mkdir -p $(INSTALL_ROOT)/etc/xdg/TUT; cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini $(INSTALL_ROOT)/etc/xdg/TUT/Kactus2.ini; (test -d $(INSTALL_ROOT)/usr/lib64 && ln -f -s $(INSTALL_ROOT)/usr/bin/kactus2 $(INSTALL_ROOT)/usr/lib64/libKactus2.so) || (test -d $(INSTALL_ROOT)/lib/x86_64-linux-gnu && ln -f -s $(INSTALL_ROOT)/usr/bin/kactus2 $(INSTALL_ROOT)/lib/x86_64-linux-gnu/libKactus2.so) |
63 |
++ !equals(UNAME, x86_64): unix:config.extra = mkdir -p $(INSTALL_ROOT)/etc/xdg/TUT; cp ./Administrative/releaseFiles/DefaultSettingsLinux.ini $(INSTALL_ROOT)/etc/xdg/TUT/Kactus2.ini; ln -f -s $(INSTALL_ROOT)/usr/bin/kactus2 $(INSTALL_ROOT)/usr/lib/libKactus2.so |
64 |
+ |
65 |
+ # Files and destination path for the IP-XACT files coming with an installation. |
66 |
+ unix:library.path = /usr/share/kactus2/library |
67 |
|
68 |
diff --git a/sci-electronics/kactus2/kactus2-3.8.0.ebuild b/sci-electronics/kactus2/kactus2-3.8.0.ebuild |
69 |
new file mode 100644 |
70 |
index 0000000..206e142 |
71 |
--- /dev/null |
72 |
+++ b/sci-electronics/kactus2/kactus2-3.8.0.ebuild |
73 |
@@ -0,0 +1,59 @@ |
74 |
+# Copyright 1999-2020 Gentoo Authors |
75 |
+# Distributed under the terms of the GNU General Public License v2 |
76 |
+ |
77 |
+EAPI=7 |
78 |
+ |
79 |
+inherit xdg-utils |
80 |
+ |
81 |
+DESCRIPTION="A open source IP-XACT-based tool" |
82 |
+HOMEPAGE=" |
83 |
+ http://funbase.cs.tut.fi |
84 |
+ https://github.com/kactus2/kactus2dev |
85 |
+" |
86 |
+ |
87 |
+if [[ ${PV} == "9999" ]] ; then |
88 |
+ inherit git-r3 |
89 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git" |
90 |
+else |
91 |
+ SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
92 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
93 |
+ S="${WORKDIR}/${PN}dev-${PV}" |
94 |
+fi |
95 |
+ |
96 |
+LICENSE="GPL-2" |
97 |
+SLOT="0" |
98 |
+ |
99 |
+DEPEND=" |
100 |
+ dev-qt/qtcore:5 |
101 |
+ dev-qt/qtgui:5 |
102 |
+ dev-qt/qthelp:5 |
103 |
+ dev-qt/qtprintsupport:5 |
104 |
+ dev-qt/qtsvg:5 |
105 |
+ dev-qt/qtwidgets:5 |
106 |
+ dev-qt/qtxml:5 |
107 |
+" |
108 |
+ |
109 |
+RDEPEND=" |
110 |
+ ${DEPEND} |
111 |
+" |
112 |
+ |
113 |
+PATCHES=( |
114 |
+ "${FILESDIR}"/${PN}-3.8.0-install.patch # Fix install problem |
115 |
+) |
116 |
+ |
117 |
+src_install() { |
118 |
+ # Can't use default, set INSTALL_ROOT and workaround parallel install bug |
119 |
+ emake -j1 INSTALL_ROOT="${D}" install |
120 |
+} |
121 |
+ |
122 |
+pkg_postinst() { |
123 |
+ xdg_desktop_database_update |
124 |
+ xdg_icon_cache_update |
125 |
+ xdg_mimeinfo_database_update |
126 |
+} |
127 |
+ |
128 |
+pkg_postrm() { |
129 |
+ xdg_desktop_database_update |
130 |
+ xdg_icon_cache_update |
131 |
+ xdg_mimeinfo_database_update |
132 |
+} |
133 |
|
134 |
diff --git a/sci-electronics/kactus2/metadata.xml b/sci-electronics/kactus2/metadata.xml |
135 |
new file mode 100644 |
136 |
index 0000000..bd0f833 |
137 |
--- /dev/null |
138 |
+++ b/sci-electronics/kactus2/metadata.xml |
139 |
@@ -0,0 +1,20 @@ |
140 |
+<?xml version="1.0" encoding="UTF-8"?> |
141 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
142 |
+<pkgmetadata> |
143 |
+ <maintainer type="person"> |
144 |
+ <email>vowstar@×××××.com</email> |
145 |
+ <name>Huang Rui</name> |
146 |
+ </maintainer> |
147 |
+ <maintainer type="project"> |
148 |
+ <email>proxy-maint@g.o</email> |
149 |
+ <name>Proxy Maintainers</name> |
150 |
+ </maintainer> |
151 |
+ <upstream> |
152 |
+ <remote-id type="github">kactus2/kactus2dev</remote-id> |
153 |
+ </upstream> |
154 |
+ <longdescription> |
155 |
+ Kactus2 is a toolset for designing embedded products, especially FPGA-based |
156 |
+ MP-SoCs. The aim is easier IP reusability and integration for both hardware |
157 |
+ and software. The tool is based on IEEE 1685-2014 "IP-XACT" standard. |
158 |
+ </longdescription> |
159 |
+</pkgmetadata> |