commit:     4cf9b1d55f513baeac29d700832c0aa319bee2cc
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Tue May 21 02:39:47 2024 +0000
Commit:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Tue May 21 02:39:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4cf9b1d5

media-plugins/dtmediawiki: new package

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 media-plugins/dtmediawiki/dtmediawiki-9999.ebuild | 31 +++++++++++++++++++++++
 media-plugins/dtmediawiki/files/enable.sh         |  1 +
 media-plugins/dtmediawiki/metadata.xml            | 11 ++++++++
 3 files changed, 43 insertions(+)

diff --git a/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild 
b/media-plugins/dtmediawiki/dtmediawiki-9999.ebuild
new file mode 100644
index 0000000000..184e2b7087
--- /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 0000000000..c37d6f9997
--- /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 0000000000..03c3c52193
--- /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.vit...@ya.ru</email>
+               <name>Vitaly Zdanevich</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">trougnouf/dtMediaWiki</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to