commit: 6edd92e0a2162c4d7e6913260fc393958ec02aa2 Author: Huang Rui <vowstar <AT> gmail <DOT> com> AuthorDate: Sun Feb 23 07:15:18 2020 +0000 Commit: Rui Huang <vowstar <AT> gmail <DOT> com> CommitDate: Sun Feb 23 07:15:50 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6edd92e0
sci-electronics/kactus2: new package for 3.8.0 Kactus2 is a toolset for designing embedded products, especially FPGA-based MP-SoCs. The aim is easier IP reusability and integration for both hardware and software. The tool is based on IEEE 1685-2014 "IP-XACT" standard. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Huang Rui <vowstar <AT> gmail.com> sci-electronics/kactus2/Manifest | 1 + .../kactus2/files/kactus2-3.8.0-install.patch | 30 +++++++++++ sci-electronics/kactus2/kactus2-3.8.0.ebuild | 59 ++++++++++++++++++++++ sci-electronics/kactus2/metadata.xml | 20 ++++++++ 4 files changed, 110 insertions(+) diff --git a/sci-electronics/kactus2/Manifest b/sci-electronics/kactus2/Manifest new file mode 100644 index 0000000..12bdbeb --- /dev/null +++ b/sci-electronics/kactus2/Manifest @@ -0,0 +1 @@ +DIST kactus2-3.8.0.tar.gz 19410435 BLAKE2B 2117a7ea5118c59f5b96a449348ba2425646038eb756c5423301d3deba15765005aafae3241c943b7adfaa728edeac3f0963b1cad7c23892b68bbd6ed7de78c0 SHA512 426021465f296c63ff70738b7a56547ac6e5b46ed06b165da2bbcd7239ff9e65c099721ebfb5e7f90b0afa9f5621d7825ff7e216bcc4786f0431f1e98d95eee8 diff --git a/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch b/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch new file mode 100644 index 0000000..0cce3b5 --- /dev/null +++ b/sci-electronics/kactus2/files/kactus2-3.8.0-install.patch @@ -0,0 +1,30 @@ +--- a/.qmake.conf ++++ b/.qmake.conf +@@ -2,9 +2,14 @@ + LOCAL_INSTALL_DIR="" + + isEmpty(LOCAL_INSTALL_DIR) { ++ # Get the bitness of the system. ++ UNAME = $$system(uname -m) ++ + # Select paths for binaries in accordance with convention. + bin_path = /usr/bin +- lib_path = /usr/lib ++ # Lib path depend on the bitness of the system. ++ equals(UNAME, x86_64): lib_path = /usr/lib64 ++ !equals(UNAME, x86_64): lib_path = /usr/lib + plugin_path = /usr/share/kactus2/plugins + + # Files and destination path for possible settings file upgrades. +@@ -23,9 +28,8 @@ isEmpty(LOCAL_INSTALL_DIR) { + unix:config.path = /etc/xdg/TUT + + # Copying stuff, exact locations seem to depend on the bitness of the system. +- UNAME = $$system(uname -m) +- 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) +- !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 ++ 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) ++ !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 + + # Files and destination path for the IP-XACT files coming with an installation. + unix:library.path = /usr/share/kactus2/library diff --git a/sci-electronics/kactus2/kactus2-3.8.0.ebuild b/sci-electronics/kactus2/kactus2-3.8.0.ebuild new file mode 100644 index 0000000..206e142 --- /dev/null +++ b/sci-electronics/kactus2/kactus2-3.8.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit xdg-utils + +DESCRIPTION="A open source IP-XACT-based tool" +HOMEPAGE=" + http://funbase.cs.tut.fi + https://github.com/kactus2/kactus2dev +" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git" +else + SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" + S="${WORKDIR}/${PN}dev-${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qthelp:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 +" + +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.8.0-install.patch # Fix install problem +) + +src_install() { + # Can't use default, set INSTALL_ROOT and workaround parallel install bug + emake -j1 INSTALL_ROOT="${D}" install +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/sci-electronics/kactus2/metadata.xml b/sci-electronics/kactus2/metadata.xml new file mode 100644 index 0000000..bd0f833 --- /dev/null +++ b/sci-electronics/kactus2/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>vows...@gmail.com</email> + <name>Huang Rui</name> + </maintainer> + <maintainer type="project"> + <email>proxy-ma...@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">kactus2/kactus2dev</remote-id> + </upstream> + <longdescription> + Kactus2 is a toolset for designing embedded products, especially FPGA-based + MP-SoCs. The aim is easier IP reusability and integration for both hardware + and software. The tool is based on IEEE 1685-2014 "IP-XACT" standard. + </longdescription> +</pkgmetadata>