2022-07-11 07:20:19 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2015-05-13 11:31:44 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-11-21 02:31:09 +01:00
|
|
|
EAPI=8
|
2015-05-13 11:31:44 +02:00
|
|
|
|
2022-11-21 02:31:09 +01:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2024-06-24 14:27:15 +02:00
|
|
|
PYTHON_COMPAT=(python3_{8..12})
|
2015-05-13 11:31:44 +02:00
|
|
|
|
2019-05-12 04:34:14 +02:00
|
|
|
inherit distutils-r1 git-r3 systemd
|
2015-05-13 11:31:44 +02:00
|
|
|
|
2019-05-12 04:34:14 +02:00
|
|
|
DESCRIPTION="Automatically reposit, organize, rename, and process large collections of files."
|
2016-08-19 15:51:13 +02:00
|
|
|
HOMEPAGE="https://github.com/TheChymera/repositorg"
|
2015-05-13 11:31:44 +02:00
|
|
|
SRC_URI=""
|
2016-08-19 15:51:13 +02:00
|
|
|
EGIT_REPO_URI="https://github.com/TheChymera/repositorg"
|
2015-05-13 11:31:44 +02:00
|
|
|
|
2019-05-12 04:47:36 +02:00
|
|
|
LICENSE="GPL-3"
|
2015-05-13 11:31:44 +02:00
|
|
|
SLOT="0"
|
2022-08-26 02:08:31 +02:00
|
|
|
KEYWORDS=""
|
2019-05-12 04:47:36 +02:00
|
|
|
IUSE="systemd"
|
2019-05-12 04:34:14 +02:00
|
|
|
|
|
|
|
DEPEND="
|
2020-12-10 09:24:43 +01:00
|
|
|
>=dev-python/argh-0.26.2[${PYTHON_USEDEP}]
|
|
|
|
dev-python/regex[${PYTHON_USEDEP}]
|
2019-05-12 04:34:14 +02:00
|
|
|
media-libs/mutagen
|
2019-05-12 04:47:36 +02:00
|
|
|
systemd? ( sys-apps/systemd )
|
2019-05-12 04:34:14 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
python_install() {
|
|
|
|
distutils-r1_python_install
|
2019-05-12 04:47:36 +02:00
|
|
|
if use systemd; then
|
|
|
|
systemd_newunit "${FILESDIR}/${PN}_uuid.service" "${PN}_uuid@.service"
|
2020-06-11 14:15:18 +02:00
|
|
|
else
|
|
|
|
newinitd "${FILESDIR}/${PN}_uuid.initd" "${PN}_uuid"
|
2019-05-12 04:47:36 +02:00
|
|
|
fi
|
2019-05-12 04:34:14 +02:00
|
|
|
dobin repositorg_uuid
|
|
|
|
}
|
2015-05-13 11:31:44 +02:00
|
|
|
|
2019-05-12 04:34:14 +02:00
|
|
|
src_test() {
|
|
|
|
cd test_scripts/
|
|
|
|
for i in *.sh; do
|
|
|
|
./"$i" || die "Test $i failed"
|
|
|
|
done
|
|
|
|
}
|
2022-07-11 07:20:19 +02:00
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
if use !systemd ; then
|
|
|
|
elog "To be able to run repositorg_uuid as your user (recommended), make a copy of the init script:"
|
|
|
|
elog " cp /etc/init.d/repositorg_uuid /etc/init.d/repositorg_uuid.<YOUR_USER_NAME>"
|
|
|
|
fi
|
|
|
|
}
|