Merge pull request #1377 from vwegert/transfer-artifacts-to-upstream-202212030054

dev-python/artifacts updates and bugfixes
This commit is contained in:
Anton Bolshakov 2023-01-27 12:26:43 +08:00 committed by GitHub
commit 1e29a185b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 651 additions and 9 deletions

View file

@ -1 +1,13 @@
DIST artifacts-20200515.tar.gz 92266 BLAKE2B 10d052b83d353e0f25b5d4f7c9d7a0283838c97b4510b4ab4074f4d9188f6ba821bdd5267f387c0ab0724234c953ff013037024c99e04f744cba50ec7d0068e9 SHA512 4bf66b5da409ecd8a8b1d74652a423211ae10dab2ab9c909d76a25009cdd2ff4e2646f65aa92986aa5719728080e1eb370cfc9400c8406d8fcd8cfc813d6db3a
DIST artifacts-20201106.tar.gz 94938 BLAKE2B d2778cdfc00970fe9c1316687f1bcc22b7ff576b6c66ae360b2affc2b536013cdcfc9f9520e8cc70659fff6739b9a0df34f0cbd2f78e318ef0c189b095225b50 SHA512 f001731f60dcfce2ee5d1abd7b0f6aed222839cc982948ef698c14f15f0406ee2e0bf2f21c2a719fbaa986a81cc85a5c7d696997ea695910102a6bcd0bc528dc
DIST artifacts-20210404.tar.gz 97009 BLAKE2B 7fe980fbbb9c3ddd9fcb42dbcddd60c7c55582fbe09ef33eae54db1a19af48ac441ca6dbca4d491703ae44376e648cb549af0c895982e1df768f671a94ec1291 SHA512 4f8a9bdc7a641614366a4f635978938e7237a112b87ef115cd97985b2a51405370af618d4ca9c261d3a1c59f8f4100c8610598e51be04cf3f6553e1ef08c3793
DIST artifacts-20210620.tar.gz 97379 BLAKE2B 324bd6cd430186f8d6137497f8f2f8d1bff3a467373dae21faa21b8159e7f35debc1049e2057f9aef66ef721a75cc25aab18b442893b4be6df798b31ba4cf03a SHA512 e12c292bf00fba3b7ea0feb96df2fb8ae7865182005fc911f1bd4a82572f44e87c1bb06f573eddbb9971e11fbf6dcd1f44d89958f23dd1792df01e6bad98a13c
DIST artifacts-20211003.tar.gz 97199 BLAKE2B 7f23aa210b21c04f00cc8ca4f50f6fbd6f454d6e161cd2a4d79309d7e8cae479bb13414a1c1a28ff41fa9af1ad1ac650c973e5aea23b9d8455e6cb91068854db SHA512 f50285c1f2f8ec15ed8b4ec01bca24e70935fc77ef530d65dea3e6221f1e73f98ba61b04effd5db228c0aab59a3c1d2a47819b7af0cbf0bc5e914a2b377621f5
DIST artifacts-20211012.tar.gz 97305 BLAKE2B 16bcd27b50043c4ce65b163bb8c58c5a66fabd074a07448d1a99b83228a594c1158185e1f6719c73cd4ea56544403437d10fffb0ac2c9691f858fc52b79ab51e SHA512 2e877030986d37a364048a6b8a84d8de2c113da54dc0c0795d323b077299e8bc4669ac5ec579d30894f1c25cc10eca53e8c2b26d3ae13c0662f5c68e3ff4b518
DIST artifacts-20211107.tar.gz 97545 BLAKE2B 5353cf760bfd8a9c10da17b3d4674ffcc7e4b1c9c170d3953a339868ca15b4a0635bc0d8cff54282de1cd29101dfb7876381f590eb95fdb94f283a64ccf400b1 SHA512 fa27e95c9e61236a75a5aec3c314ae9b969f23d991809235754cd3db9bef3b06c395e86ca80a71cc920290d37e41749a598d0e906cc3184c89b4614e0d5def0f
DIST artifacts-20211205.tar.gz 98652 BLAKE2B f34645e2addcfe838e997e9dddfabd6f02464b3c3fcbd7fcd82951fc46c97106be49dbfed94ceaeee6b86cbc8389770c157a3778864ca4f69098827003d4bc24 SHA512 13dcf87fe38d79eaed318896dddb0c13a3a87a0958bbe5bab54bc8685c0f2675ff2c1057b2e268ee81ed64842ba762e6132070db2cfa2909214f67bde926f1b6
DIST artifacts-20220219.tar.gz 102627 BLAKE2B 398bcb655640c0ad275cf3ffd12eebdc059a4a649e0f98b6ef6a4ea69388756ccbf0966ad547560b45d57bb89b3ab3e526ab990e4fbb0bd4078ff08a60d117a1 SHA512 eef8bf3a06dcbf8de54e407d2730819ff2973f87f4c2203bc5e5d82321cb365397403d4dc5a8c8c3fc3b67dbe0bb0aee811b922b56dffdbdab39f8106a2decd1
DIST artifacts-20220429.tar.gz 101899 BLAKE2B 1d057c238a7655b3484c79cc63e8d932fe41d64c100cc45bdf0a9b25871b509688229e8b3fccca82f3c1cdab3e01775851ac504b835f124f10fab3a39650071f SHA512 543389501a0f6124fa1319bf6c3682798fb5933060a39182ce3cf1616dd88366ea1650e492c06279dd5da3b8dc2a93e51dc7b66c661ff997053afe88c89c14fc
DIST artifacts-20220608.tar.gz 103605 BLAKE2B e2b3b32e8b1ae92529f36033e97de0b1de66449461cfaaeabbc8be865da6dcbbd3fa31aae924998e72929794d82831adbb849d9e22ca90988212e8c924367211 SHA512 40f57762fd426639c581476e8bad5cc4bf7b069b818096697186f1daabec73a123afd12b35d34f645766b4891b11d212ad3c379f458dede35995c37f2923b903
DIST artifacts-20220615.tar.gz 103599 BLAKE2B 22fc9a726d0709b0a58b9885d4076ebde65a8e5354cc029fb5ada9aa8d53be65604aa812536c9607b0a9d8b0c605c3ba130cce99dad1dcdbd96901b3a08d6abc SHA512 84b42d675007d9241c8c9c81a1975b0a5c31c1ca9b82b521a6572d4675047ba915f1a8723f66a4f338b3ae3439775914ef9b6d93a9dde163fa829638b5a0e522
DIST artifacts-20221012.tar.gz 108183 BLAKE2B 15cedfb82551e2ed64146d706231386a505fcabc8dee4d03f7ffe76864651d41987b590bfc43c5cfafa19b647c0e61de8834284a55b8bddb2115d3b4c163b90a SHA512 7a09ab21e6ab4e737b22b8521313226ce8555fd141370c99ce91934c5b763b0cd15f83f521ca5baefb2b3bf9a929e85a52b551160afe8e5baa8d515d9ce1aa37

View file

@ -1,23 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ForensicArtifacts/artifacts.git"
else
HASH_COMMIT="${PV}"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
src_prepare() {
# already fixed in upstream master
eapply "${FILESDIR}/${PN}"_setup_cfg_license_param.patch
default
}
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,44 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Digital Forensics Artifact Repository"
HOMEPAGE="https://github.com/ForensicArtifacts/artifacts"
SRC_URI="https://github.com/ForensicArtifacts/artifacts/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-python/pip-7.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
${PYTHON_DEPS}
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pbr-4.2.0[${PYTHON_USEDEP}]
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]
)
"
RDEPEND="${DEPEND}"
python_test() {
"${EPYTHON}" run_tests.py -v || die
}
python_install_all() {
distutils-r1_python_install_all
# move some documentation files to the canonical target path
mv "${ED}"/usr/share/doc/"${PN}"/* "${ED}"/usr/share/doc/"${PF}"/ || die
rmdir "${ED}"/usr/share/doc/"${PN}" || die
}

View file

@ -0,0 +1,9 @@
--- a/setup.cfg.orig 2022-12-02 23:30:29.140465675 +0100
+++ b/setup.cfg 2022-12-02 23:30:47.490465994 +0100
@@ -1,5 +1,5 @@
[metadata]
-license_file = LICENSE
+license_files = LICENSE
[bdist_rpm]
release = 1