diff options
author | Victor Kustov <ktrace@yandex.ru> | 2022-04-18 21:47:40 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-05-02 15:08:36 +0300 |
commit | 33e5acc534fecffb02f564b62947063370f7b358 (patch) | |
tree | 88b396a7b5ce8b5dd2337744d33599aa9337957b /app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild | |
parent | dev-embedded/ponyprog: bump version to 3.1.3 (diff) | |
download | gentoo-33e5acc534fecffb02f564b62947063370f7b358.tar.gz gentoo-33e5acc534fecffb02f564b62947063370f7b358.tar.bz2 gentoo-33e5acc534fecffb02f564b62947063370f7b358.zip |
app-editors/qhexedit2: bump to 0.8.9
- bump version
- switch to vanile Simsys/qhexedit
Signed-off-by: Victor Kustov <ktrace@yandex.ru>
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Closes: https://github.com/gentoo/gentoo/pull/25095
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild')
-rw-r--r-- | app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild b/app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild new file mode 100644 index 000000000000..0818ddefb0cb --- /dev/null +++ b/app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) + +#DISTUTILS_OPTIONAL=1 +#DISTUTILS_USE_PEP517=p + +inherit distutils-r1 qmake-utils + +EGIT_COMMIT="541139125be034b90b6811a84faa1413e357fd94" +DESCRIPTION="Hex editor library, Qt application written in C++ with Python bindings" +HOMEPAGE="https://github.com/Simsys/qhexedit2/" +SRC_URI="https://github.com/Simsys/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="doc +gui python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( "${FILESDIR}/${PN}-0.8.9.patch" ) + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + python? ( + dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}] + ${PYTHON_DEPS} + ) +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +src_configure() { + eqmake5 src/qhexedit.pro + if use gui; then + cd example || die "can't cd example" + eqmake5 qhexedit.pro + fi +} + +src_compile() { + default + use python && distutils-r1_src_compile + use gui && emake -C example +} + +python_compile() { + use python && distutils-r1_python_compile build_ext +} + +src_test() { + cd test || die "can't cd test" + mkdir logs || die "can't create logs dir" + eqmake5 chunks.pro + emake + ./chunks || die "test run failed" + grep -q "^NOK" logs/Summary.log && die "test failed" +} + +src_install() { + doheader src/*.h + dolib.so libqhexedit.so* + use python && distutils-r1_src_install + if use gui; then + dobin example/qhexedit + insinto /usr/share/${PN}/ + doins example/translations/*.qm + fi + if use doc; then + dodoc -r doc/html + dodoc doc/release.txt + fi +} |