diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /sci-electronics/qelectrotech/qelectrotech-9999.ebuild | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'sci-electronics/qelectrotech/qelectrotech-9999.ebuild')
-rw-r--r-- | sci-electronics/qelectrotech/qelectrotech-9999.ebuild | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild index bd14b719e6f5..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 @@ -8,12 +8,12 @@ inherit qmake-utils xdg DESCRIPTION="Qt5 application to design electric diagrams" HOMEPAGE="https://qelectrotech.org/" -if [[ ${PV} = *9999* ]]; then - inherit subversion - ESVN_REPO_URI="svn://svn.tuxfamily.org/svnroot/qet/qet/trunk" +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 |