| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
inherit git-r3 python-single-r1
DESCRIPTION="A tool to detect similarities between files within a repository"
HOMEPAGE="https://github.com/platisd/duplicate-code-detection-tool"
EGIT_REPO_URI="https://github.com/platisd/duplicate-code-detection-tool.git"
LICENSE="MIT"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/astor[${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/gensim[${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/nltk[${PYTHON_USEDEP}]')
dev-python/nltkdata"
BDEPEND="${RDEPEND}"
src_prepare() {
default
sed -i '1i#!/usr/bin/env python' duplicate_code_detection.py \
|| die "sed failed"
}
src_install() {
python_newexe duplicate_code_detection.py duplicate-code-detection
}
${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/astor[${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/gensim[${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/nltk[${PYTHON_USEDEP}]')
dev-python/nltkdata
${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/astor[${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/gensim[${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/nltk[${PYTHON_USEDEP}]')
dev-python/nltkdata