metagoofil: bump and no longer needs masked libextractor

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-01-25 12:13:36 -05:00
parent 23f9d3a966
commit 7432b4c2ee
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 8 additions and 7 deletions

View file

@ -1 +1 @@
DIST metagoofil-2.2_p20201005.zip 17037 BLAKE2B 6ab87f9f19153d7ba96d76b8b724b6eeaa783bd407480325ec28db913fb0eea757a986fdd96dacfef969b7ef1640197934f42103b4d8ed0d9e386b8850d2a873 SHA512 dd2f81e72ad96792cc31c6ad436f08de7f8a1911c295ca07bf4f4eadc984a1c7268427705ea2033a0b7900893064394b6648de8a4cea949d2a3e7baf0feb7e82
DIST metagoofil-2.2_p20221009.zip 17037 BLAKE2B 6ab87f9f19153d7ba96d76b8b724b6eeaa783bd407480325ec28db913fb0eea757a986fdd96dacfef969b7ef1640197934f42103b4d8ed0d9e386b8850d2a873 SHA512 dd2f81e72ad96792cc31c6ad436f08de7f8a1911c295ca07bf4f4eadc984a1c7268427705ea2033a0b7900893064394b6648de8a4cea949d2a3e7baf0feb7e82

View file

@ -18,8 +18,7 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="media-libs/libextractor
$(python_gen_cond_dep '
RDEPEND="$(python_gen_cond_dep '
dev-python/requests[${PYTHON_USEDEP}]
dev-python/googlesearch[${PYTHON_USEDEP}]
')
@ -32,9 +31,6 @@ src_configure() {
# Add the following line, so metagoofil.py can be executed directly.
sed -i '1i#!\/usr\/bin\/python' "${PN}".py || die
# change libextractor default location
# sed -i -e "s:/opt/local/bin/extract:/usr/bin/extract:g" "${PN}".py || die
#relax deps
sed -i "s|==|>=|g" requirements.txt
}
@ -42,8 +38,13 @@ src_configure() {
src_install() {
dobin "${FILESDIR}/${PN}"
# remove things we don't need on disk
rm Dockerfile || die
rm requirements.txt || die
rm LICENSE || die
rm .gitignore || die
dodir /usr/share/"${PN}"
cp -r . "${ED}"/usr/share/${PN}/
dodoc README.md LICENSE
dodoc README.md
}