aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-05-21 06:39:47 +0400
committerVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-05-21 06:39:47 +0400
commit4cf9b1d55f513baeac29d700832c0aa319bee2cc (patch)
treed244287e4f332429e3686c0cf9bb63ae61d431eb /media-plugins
parentdev-lua/multipart-post: new package (diff)
downloadguru-4cf9b1d55f513baeac29d700832c0aa319bee2cc.tar.gz
guru-4cf9b1d55f513baeac29d700832c0aa319bee2cc.tar.bz2
guru-4cf9b1d55f513baeac29d700832c0aa319bee2cc.zip
media-plugins/dtmediawiki: new package
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/dtmediawiki/dtmediawiki-9999.ebuild31
-rw-r--r--media-plugins/dtmediawiki/files/enable.sh1
-rw-r--r--media-plugins/dtmediawiki/metadata.xml11
3 files changed, 43 insertions, 0 deletions
diff --git a/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild b/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild
new file mode 100644
index 000000000..184e2b708
--- /dev/null
+++ b/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit git-r3
+
+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"
+
+RDEPEND="
+ media-gfx/darktable[lua]
+ dev-lua/luasec[lua_targets_lua5-4]
+ dev-lua/luajson[lua_targets_lua5-4]
+ dev-lua/multipart-post[lua_targets_lua5-4]
+"
+
+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"
+}
diff --git a/media-plugins/dtmediawiki/files/enable.sh b/media-plugins/dtmediawiki/files/enable.sh
new file mode 100644
index 000000000..c37d6f999
--- /dev/null
+++ b/media-plugins/dtmediawiki/files/enable.sh
@@ -0,0 +1 @@
+echo 'require "contrib/dtMediaWiki/dtMediaWiki"' >> ~/.config/darktable/luarc
diff --git a/media-plugins/dtmediawiki/metadata.xml b/media-plugins/dtmediawiki/metadata.xml
new file mode 100644
index 000000000..03c3c5219
--- /dev/null
+++ b/media-plugins/dtmediawiki/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zdanevich.vitaly@ya.ru</email>
+ <name>Vitaly Zdanevich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">trougnouf/dtMediaWiki</remote-id>
+ </upstream>
+</pkgmetadata>