From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- app-editors/qhexedit2/Manifest | 5 +- app-editors/qhexedit2/files/qhexedit2-0.8.9.patch | 36 ++++++++++ .../qhexedit2/qhexedit2-0.8.6_p20190316.ebuild | 4 +- .../qhexedit2/qhexedit2-0.8.9_p20210525.ebuild | 79 ++++++++++++++++++++++ 4 files changed, 121 insertions(+), 3 deletions(-) create mode 100644 app-editors/qhexedit2/files/qhexedit2-0.8.9.patch create mode 100644 app-editors/qhexedit2/qhexedit2-0.8.9_p20210525.ebuild (limited to 'app-editors/qhexedit2') diff --git a/app-editors/qhexedit2/Manifest b/app-editors/qhexedit2/Manifest index e29548c120fe..305f2ad253f5 100644 --- a/app-editors/qhexedit2/Manifest +++ b/app-editors/qhexedit2/Manifest @@ -1,4 +1,7 @@ AUX qhexedit2-0.8.4-setup.py.patch 596 BLAKE2B 15a801d87d9f690aa354162cb4966b1b691da95f7d64926f1b2ab66bd7d1db29b208cfab0f0bbe0f8fb272d67328f1a5ffd84ceb9d7af3d457ed6cd2a7d27ec0 SHA512 2cabb09c9c6e819a43d434a813ce9eb9614c72a3687758a35f338067d9e02add657ed1feee614486c9dbcbca823a848aedc69f9ab42aabd9ebe414b645b0d67e +AUX qhexedit2-0.8.9.patch 1135 BLAKE2B fb9c3c9a4fa01b6cba9b3ca12a1a1e82f1503663bb186835b56d2610145bf3c1e211ab31c705d55cc9f3e22312c566058b816c20a4a65c7d7a501bd05db3fb8f SHA512 934bd0422b539459b446fc6ea18806f9fe6f6e107822dc4a94150632fdef35b091ca309cb0a5b7eb96c325c4d71091314c89907ce6c6404e0a6d8ebd126c58c3 DIST qhexedit2-0.8.6_p20190316.tar.gz 355512 BLAKE2B a7edc8d05a7788f3a3f2202762ca3dc436cafbde1b1216ff1bb342055600a2e9d53c27fe324380331b8182904545c698106129238065cd2416d244fdfa176446 SHA512 4ef288c8a220c308d38c41fee83fe962e213cdfa448445ef73c3d2fe1952b68f2096732e78d2aa0a87eddd3cf2f47bed3e77807e12d2b7616c1447b3bf1b0e7d -EBUILD qhexedit2-0.8.6_p20190316.ebuild 1878 BLAKE2B 30755598bd0d16eed9bd853ededc9807bf7b344ff209a179f9da712cff3881b34d14a106f07fb53061a0b9f1abb40ddd7bb6814e88877e09b7320e3cc18b5372 SHA512 73ba1483c4f3a4a30b0048d8f9884044259d26ebe067029e4ec62f6676248bf8528ba9e59bc7f46497b145906bb50e032de6a9a52bf8c78e427f29b6b6ddd32e +DIST qhexedit2-0.8.9_p20210525.tar.gz 342178 BLAKE2B baffe5b5e1130476162f23a91420cc86675a162c39539c9f07685cecc82571817625202814006221f96b56e94c0325fd7a6d8f2294041b426054f809c9967bad SHA512 d8a5159433a1212085371473cc7a89c4888c6af6b1416a34e3ea9d1ef9ae19411af32bea2e2fb256a024d6f2d05c733d285314cfc17f37dae065d7407a9c0d2c +EBUILD qhexedit2-0.8.6_p20190316.ebuild 1878 BLAKE2B deb3b0b20fd1681443e3e05fec6d35006966f94613e6397940f08220db939b5240924929aaa6095670c590f9bebdd6857a517b45855fb1f7081202248e3abe63 SHA512 1722f81744db0e01ed78ca3f2ae664510fd11a5fc42db897a8bf2defd8f432a0c06470e19a70b365b6c31f625f7b793d45d131c089b3368a13ef6b549694930a +EBUILD qhexedit2-0.8.9_p20210525.ebuild 1671 BLAKE2B e36e973b9137abda5736e5e9eba1c5f0a2396651315e86c4b6f91f499d5ccbcb2b64e9c552fc88503d62f8d28cdbbd80056680da8876b6e0a3cecfa17da68848 SHA512 d941ac5d83ccb9e1bee51a64397bb749416df4d7a363f88bf36c8108f565eee6d9399f3dc58266aeea0921137b8f8d4445041ce233ae154dba342b6c26dd0d26 MISC metadata.xml 636 BLAKE2B a6f5b56c36f34d3906a135d7b2516bcbbfb47c13b01a98284b8a9d9e1de2cc2d46918459901c4c2b7984d7844c3d7b4fcc6631f0398b25a89e61be0edab80335 SHA512 2cce503a57e04e07b2160c1d3ae4118a7b73b059eab3defb2102b7da46cc39dae277ad01915240ca16349b8a094b1d4494f2267df2b8fb4bdd7d9a305ebadb8b diff --git a/app-editors/qhexedit2/files/qhexedit2-0.8.9.patch b/app-editors/qhexedit2/files/qhexedit2-0.8.9.patch new file mode 100644 index 000000000000..cabbd77ac843 --- /dev/null +++ b/app-editors/qhexedit2/files/qhexedit2-0.8.9.patch @@ -0,0 +1,36 @@ +diff --git a/setup.py b/setup.py +index 1a0d912..646c359 100644 +--- a/setup.py ++++ b/setup.py +@@ -98,7 +98,7 @@ if cfg.qt_framework: + lib + ".framework", "Headers")] + else: + if PyQt_Version == 'PyQt5': +- for qt_inc_dir in ('/usr/include/qt', '/usr/include/x86_64-linux-gnu/qt5'): ++ for qt_inc_dir in ('/usr/include/qt', '/usr/include/qt5'): + include_dirs.append(qt_inc_dir) + include_dirs += [os.path.join(qt_inc_dir, lib) for lib in qt_libs] + libraries = ["Qt5" + lib[2:] for lib in qt_libs] +diff --git a/src/qhexedit.pro b/src/qhexedit.pro +index 2a94016..55d7bc2 100644 +--- a/src/qhexedit.pro ++++ b/src/qhexedit.pro +@@ -23,5 +23,7 @@ Release:TARGET = qhexedit + Debug:TARGET = qhexeditd + + +-unix:DESTDIR = /usr/lib + win32:DESTDIR = ../lib ++ ++target.path = /usr/lib64 ++INSTALLS += target +diff --git a/src/qhexedit.sip b/src/qhexedit.sip +index 082621e..a7ef4e7 100644 +--- a/src/qhexedit.sip ++++ b/src/qhexedit.sip +@@ -1,4 +1,4 @@ +-%Module(name=qhexedit, version=1) ++%Module(name=qhexedit) + + %Import QtCore/QtCoremod.sip + %Import QtGui/QtGuimod.sip diff --git a/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316.ebuild b/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316.ebuild index a1d8c2148607..c5e05a60e67c 100644 --- a/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316.ebuild +++ b/app-editors/qhexedit2/qhexedit2-0.8.6_p20190316.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{8..10} ) DISTUTILS_OPTIONAL=1 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 +} -- cgit v1.2.3