Files
guru/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild
Vitaly Zdanevich a334f6531d media-plugins/dtmediawiki: DESCRIPTION fix
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Part-of: https://github.com/gentoo/guru/pull/319
Closes: https://github.com/gentoo/guru/pull/319
Signed-off-by: Vivian Heisz (demize) <demize@unstable.systems>
2025-05-15 16:46:22 -04:00

39 lines
1020 B
Bash

# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( lua5-4 )
inherit git-r3 lua-single
DESCRIPTION="Wikimedia Commons export plugin for Darktable"
HOMEPAGE="https://github.com/trougnouf/dtMediaWiki"
EGIT_REPO_URI="https://github.com/trougnouf/dtMediaWiki"
LICENSE="GPL-3"
SLOT="0"
DEPEND="
$LUA_DEPS
media-gfx/darktable[lua]
$(lua_gen_cond_dep '
dev-lua/luasec[${LUA_USEDEP}]
dev-lua/luajson[${LUA_USEDEP}]
dev-lua/multipart-post[${LUA_USEDEP}]
')
"
src_install() {
insinto /usr/share/darktable/lua/contrib/dtMediaWiki
doins -r *
}
pkg_postinst() {
einfo "To enable: `cat "$FILESDIR"/enable.sh`"
einfo "and go to Darktable preferences (gear ico on the top) -> at the bottom left click 'Lua options'"
einfo "to enter username and password"
einfo "Note that there is no way to upload original file -"
einfo "Darktable will encode your every photo, see https://github.com/trougnouf/dtMediaWiki/issues/14#issuecomment-2122181739"
}