1
0
mirror of synced 2024-11-05 04:28:56 +01:00
TheChymera-overlay/app-misc/repositorg/repositorg-9999.ebuild

43 lines
886 B
Bash
Raw Normal View History

# Copyright 1999-2020 Gentoo Authors
2015-05-13 11:31:44 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2015-05-13 11:31:44 +02:00
PYTHON_COMPAT=(python3_{6,7,8})
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
LICENSE="GPL-3"
2015-05-13 11:31:44 +02:00
SLOT="0"
KEYWORDS=""
IUSE="systemd"
2019-05-12 04:34:14 +02:00
DEPEND="
>=dev-python/argh-0.26.2
media-libs/mutagen
systemd? ( sys-apps/systemd )
2019-05-12 04:34:14 +02:00
"
RDEPEND="${DEPEND}"
python_install() {
distutils-r1_python_install
if use systemd; then
systemd_newunit "${FILESDIR}/${PN}_uuid.service" "${PN}_uuid@.service"
else
newinitd "${FILESDIR}/${PN}_uuid.initd" "${PN}_uuid"
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
}