summaryrefslogtreecommitdiff
path: root/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild
blob: e97c625faadfe0aee990d2a42658490fa082d182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LUA_COMPAT=( lua5-{1,3,4} luajit )

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"
}