summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-electronics/qelectrotech/Manifest1
-rw-r--r--sci-electronics/qelectrotech/files/qelectrotech-0.80-fix-paths.patch50
-rw-r--r--sci-electronics/qelectrotech/files/qelectrotech-0.80-nomancompress.patch10
-rw-r--r--sci-electronics/qelectrotech/qelectrotech-0.80.ebuild74
-rw-r--r--sci-electronics/qelectrotech/qelectrotech-9999.ebuild22
5 files changed, 153 insertions, 4 deletions
diff --git a/sci-electronics/qelectrotech/Manifest b/sci-electronics/qelectrotech/Manifest
index 23a90bc85d6e..88b1688f9cd1 100644
--- a/sci-electronics/qelectrotech/Manifest
+++ b/sci-electronics/qelectrotech/Manifest
@@ -1 +1,2 @@
DIST qelectrotech-0.70.tar.gz 10870717 BLAKE2B 21af2000080526cc75e67d80d514286a294a805073beb97d142758449e1290db56e741b70eeb9c38adbdb770fc548eb0fba18429bceaa8cd88bcba5335c3fca9 SHA512 db5b74ce9ac64e55a463c821ee43a2cde8cc4dc4a7be79c8a39512e54dfb85653e20981b5879ecc6e5949c1c1196ad5b7cae9780bf16de0b4d7b2381731173bd
+DIST qelectrotech-0.80.tar.gz 13835653 BLAKE2B 1efb22c9683c01c3cc449a3c1deef1990825b16f11dc15d93e2d7c0afd026486ee9772e0d8637efcb576fb20a8dc79235cdcabc94d293b9bf8c2028818645734 SHA512 732101130e77849ed0a56bcc7b519a1ca032e8f203951a50e1dd5fd488e96f1ab69ed0854176604f1947636b3d8fda1ac8aebbcfe01e63dfa263d8f646224f53
diff --git a/sci-electronics/qelectrotech/files/qelectrotech-0.80-fix-paths.patch b/sci-electronics/qelectrotech/files/qelectrotech-0.80-fix-paths.patch
new file mode 100644
index 000000000000..30ef9b6089b9
--- /dev/null
+++ b/sci-electronics/qelectrotech/files/qelectrotech-0.80-fix-paths.patch
@@ -0,0 +1,50 @@
+--- a/qelectrotech.pro 2021-02-21 10:15:38.000000000 +0100
++++ b/qelectrotech.pro 2021-02-28 21:12:15.934876464 +0100
+@@ -5,21 +5,21 @@
+ # Chemins utilises pour la compilation et l'installation de QET
+ unix {
+ # Chemins UNIX
+- COMPIL_PREFIX = '/usr/local/'
+- INSTALL_PREFIX = '/usr/local/'
++ COMPIL_PREFIX = '/usr/'
++ INSTALL_PREFIX = '/usr/'
+ QET_BINARY_PATH = 'bin/'
+ QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
+ QET_COMMON_TBT_PATH = 'share/qelectrotech/titleblocks/'
+ QET_LANG_PATH = 'share/qelectrotech/lang/'
+ QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
+ QET_LICENSE_PATH = 'doc/qelectrotech/'
+- QET_MIME_XML_PATH = '../share/mime/application/'
+- QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
+- QET_MIME_PACKAGE_PATH = '../share/mime/packages/'
++ QET_MIME_XML_PATH = 'share/mime/application/'
++ QET_MIME_DESKTOP_PATH = 'share/mimelnk/application/'
++ QET_MIME_PACKAGE_PATH = 'share/mime/packages/'
+ QET_DESKTOP_PATH = 'share/applications/'
+ QET_ICONS_PATH = 'share/icons/hicolor/'
+- QET_MAN_PATH = 'man/'
+- QET_APPDATA_PATH = 'share/appdata'
++ QET_MAN_PATH = 'share/man/'
++ QET_APPDATA_PATH = 'share/metainfo'
+ }
+ win32 {
+ # Chemins Windows
+@@ -252,9 +252,6 @@
+ examples.path = $$join(INSTALL_PREFIX,,,$${QET_EXAMPLES_PATH})
+ examples.files = examples/*
+
+-copyright.path = $$join(INSTALL_PREFIX,,,$${QET_LICENSE_PATH})
+-copyright.files = LICENSE ELEMENTS.LICENSE CREDIT README ChangeLog
+-
+ mime_xml.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_XML_PATH})
+ mime_xml.files = misc/x-qet-*.xml
+
+@@ -284,7 +281,7 @@
+ man.extra = sh man/compress_man_pages.sh
+
+ # L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
+-INSTALLS += target elements tbt lang copyright
++INSTALLS += target elements tbt lang
+ # Sous Unix, on installe egalement l'icone, un fichier .desktop, des fichiers mime et les pages de manuel
+ unix {
+ INSTALLS += desktop mime_xml mime_desktop mime_package icons man examples appdata
diff --git a/sci-electronics/qelectrotech/files/qelectrotech-0.80-nomancompress.patch b/sci-electronics/qelectrotech/files/qelectrotech-0.80-nomancompress.patch
new file mode 100644
index 000000000000..9e63a4512892
--- /dev/null
+++ b/sci-electronics/qelectrotech/files/qelectrotech-0.80-nomancompress.patch
@@ -0,0 +1,10 @@
+--- a/qelectrotech.pro 2021-02-21 10:15:38.000000000 +0100
++++ b/qelectrotech.pro 2021-02-28 21:41:02.221285171 +0100
+@@ -278,7 +278,6 @@
+
+ man.path = $$join(INSTALL_PREFIX,,,$${QET_MAN_PATH})
+ man.files = man/files/*
+-man.extra = sh man/compress_man_pages.sh
+
+ # L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
+ INSTALLS += target elements tbt lang
diff --git a/sci-electronics/qelectrotech/qelectrotech-0.80.ebuild b/sci-electronics/qelectrotech/qelectrotech-0.80.ebuild
new file mode 100644
index 000000000000..135799c10bea
--- /dev/null
+++ b/sci-electronics/qelectrotech/qelectrotech-0.80.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2001-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils xdg
+
+DESCRIPTION="Qt5 application to design electric diagrams"
+HOMEPAGE="https://qelectrotech.org/"
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://git.tuxfamily.org/qet/qet.git/"
+ inherit git-r3
+else
+ MY_P=qet-${PV/%0/.0}
+ SRC_URI="https://git.tuxfamily.org/qet/qet.git/snapshot/${MY_P}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}"/${MY_P}
+fi
+
+LICENSE="CC-BY-3.0 GPL-2+"
+SLOT="0"
+IUSE="doc"
+
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+"
+RDEPEND="
+ dev-db/sqlite:3
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsql:5[sqlite]
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/kwidgetsaddons:5
+"
+DEPEND="${RDEPEND}"
+
+DOCS=( CREDIT ChangeLog README )
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-paths.patch"
+ "${FILESDIR}/${P}-nomancompress.patch"
+)
+
+src_prepare() {
+ xdg_src_prepare
+
+ if [[ ${PV} != *9999* ]]; then
+ sed -e "/^DEFINES.*GIT_COMMIT_SHA/s/^/#DONT /" -i ${PN}.pro || die
+ sed -e "/qInfo.*GIT_COMMIT_SHA/d" -i sources/machine_info.cpp || die
+ fi
+}
+
+src_configure() {
+ eqmake5 ${PN}.pro
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+
+ if use doc; then
+ doxygen Doxyfile || die
+ local HTML_DOCS=( doc/html/. )
+ fi
+
+ einstalldocs
+}
diff --git a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild
index ac7b517d39f2..17b3beea6240 100644
--- a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild
+++ b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2001-2020 Gentoo Authors
+# Copyright 2001-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -12,8 +12,8 @@ if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://git.tuxfamily.org/qet/qet.git/"
inherit git-r3
else
- MY_P=${PN}-${PV%0}-src
- SRC_URI="https://download.tuxfamily.org/qet/tags/20180823/${MY_P}.tar.gz"
+ MY_P=qet-${PV/%0/.0}
+ SRC_URI="https://git.tuxfamily.org/qet/qet.git/snapshot/${MY_P}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"/${MY_P}
fi
@@ -23,9 +23,11 @@ SLOT="0"
IUSE="doc"
BDEPEND="
+ virtual/pkgconfig
doc? ( app-doc/doxygen )
"
RDEPEND="
+ dev-db/sqlite:3
dev-qt/qtconcurrent:5
dev-qt/qtcore:5
dev-qt/qtgui:5
@@ -42,7 +44,19 @@ DEPEND="${RDEPEND}"
DOCS=( CREDIT ChangeLog README )
-PATCHES=( "${FILESDIR}/${PN}-0.3-fix-paths.patch" )
+PATCHES=(
+ "${FILESDIR}/${PN}-0.80-fix-paths.patch"
+ "${FILESDIR}/${PN}-0.80-nomancompress.patch"
+)
+
+src_prepare() {
+ xdg_src_prepare
+
+ if [[ ${PV} != *9999* ]]; then
+ sed -e "/^DEFINES.*GIT_COMMIT_SHA/s/^/#DONT /" -i ${PN}.pro || die
+ sed -e "/qInfo.*GIT_COMMIT_SHA/d" -i sources/machine_info.cpp || die
+ fi
+}
src_configure() {
eqmake5 ${PN}.pro