Install this version:
emerge -a =dev-util/duplicate-code-detection-tool-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/duplicate-code-detection-tool-9999
Or alternatively:
emerge --autounmask-write -a =dev-util/duplicate-code-detection-tool-9999
| 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_gen_cond_dep 'dev-python/astor[]') $(python_gen_cond_dep 'dev-python/gensim[]') $(python_gen_cond_dep 'dev-python/nltk[]') dev-python/nltkdata
$(python_gen_cond_dep 'dev-python/astor[]') $(python_gen_cond_dep 'dev-python/gensim[]') $(python_gen_cond_dep 'dev-python/nltk[]') dev-python/nltkdata