From ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 Mon Sep 17 00:00:00 2001
From: V3n3RiX <venerix@redcorelinux.org>
Date: Sat, 29 Feb 2020 18:01:47 +0000
Subject: gentoo (leap year) resync : 29.02.2020

---
 app-text/xournalpp/Manifest                        |  5 +++
 .../files/xournalpp-1.0.17-translations.patch      | 24 +++++++++++
 app-text/xournalpp/metadata.xml                    |  7 ++++
 app-text/xournalpp/xournalpp-1.0.17.ebuild         | 49 ++++++++++++++++++++++
 app-text/xournalpp/xournalpp-9999.ebuild           | 45 ++++++++++++++++++++
 5 files changed, 130 insertions(+)
 create mode 100644 app-text/xournalpp/Manifest
 create mode 100644 app-text/xournalpp/files/xournalpp-1.0.17-translations.patch
 create mode 100644 app-text/xournalpp/metadata.xml
 create mode 100644 app-text/xournalpp/xournalpp-1.0.17.ebuild
 create mode 100644 app-text/xournalpp/xournalpp-9999.ebuild

(limited to 'app-text/xournalpp')

diff --git a/app-text/xournalpp/Manifest b/app-text/xournalpp/Manifest
new file mode 100644
index 000000000000..5bb1eb20ce1f
--- /dev/null
+++ b/app-text/xournalpp/Manifest
@@ -0,0 +1,5 @@
+AUX xournalpp-1.0.17-translations.patch 716 BLAKE2B df50ccfdf86069f08b29168af42955d80b363db5d271bd0c97f07cdc626995922471186cd83f7860f0eecbf8e53982639e23a5a2b817310f6d3d12e529577c45 SHA512 83ae3ff7ae1dd4933f063c9e35a38684eeb6638fbc9ec52b863bd1499d2fe958b7565e8609060d9ba8388eb6c89e046b8908c0fd7387981154cf86da3b574184
+DIST xournalpp-1.0.17.tgz 14885382 BLAKE2B 501feb4480eee5aa38cc148f561d6c730505e43fd5d8017936f4b1d15f1b83ae936eb0a2e81b9889c668f9ed0a9c46b9053c984d45815c88829b023b7dbbd209 SHA512 cc3568ce22fd42f0e8458f1428c102d2fc18a9650d8c5968cadd6693fc19374780beb3c7f6206f2f494439296a883b2a5160da37e3a0e10d6fe3654084967ab9
+EBUILD xournalpp-1.0.17.ebuild 897 BLAKE2B 5a9c41c6960ca6317708ce27e379ef269d7e547f12d11122602abbc71ed11f706b81445ec033b54a64b97290b654123b6fe6c8debdce282a7324b56cfcf57145 SHA512 0c2eb1f2a74aa33029a0025e296f6c7014c5ac279ffa42fbfb6816c904cf51ccc81803cbc3eadb475491441d20c478321d76fe5eccd27e520641302d8ffbfddf
+EBUILD xournalpp-9999.ebuild 845 BLAKE2B 75f63c7de44edfbf3a8ec372f6ef50beecd0ea62ca3f71a6700f3521247651f975461ca66de7c8018ff41125b59fee514906c9f2379397b9e524f08bb3e4d83b SHA512 a73628b37075cd9c0f8fbb74a4627d80195e49d8c67b5bb7044a7fbb516dcf4f830bfee9a7683a6af49c60542004fbd20a5c9b9d1c04748f26a9c2d2f704d418
+MISC metadata.xml 220 BLAKE2B a2c3e050477292c8000b5bb0ffa26d84a57fb435ba5c96dac5c5f4d6f3e823c07116520102eacefd24227a4490dd340c7836cf8d1ba28d23fc76eeaadf04c7b9 SHA512 594861f664581733d740d9f501b84c56f9c9c67f932e97f5905a37d4f19b5a19ef4045c50571a412fbc64d318f3ad1d403ed37c61449b37e74df3d5753aedda8
diff --git a/app-text/xournalpp/files/xournalpp-1.0.17-translations.patch b/app-text/xournalpp/files/xournalpp-1.0.17-translations.patch
new file mode 100644
index 000000000000..95283b014009
--- /dev/null
+++ b/app-text/xournalpp/files/xournalpp-1.0.17-translations.patch
@@ -0,0 +1,24 @@
+From 12387b01a1c7e529580c6f27e92dad3e8b4f9858 Mon Sep 17 00:00:00 2001
+From: Bryan Tan <techniux@gmail.com>
+Date: Fri, 7 Feb 2020 19:47:18 -0800
+Subject: [PATCH] Fix translation target
+
+- Do not modify po files in place
+- Always build translations
+---
+ po/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
+index f957a199d..73ce0f04f 100644
+--- a/po/CMakeLists.txt
++++ b/po/CMakeLists.txt
+@@ -20,7 +20,7 @@ if (XGETTEXT_FOUND)
+       "${PROJECT_SOURCE_DIR}/ui/*.glade"
+   )
+ 
+-  gettext_create_translations ("${potfile}")
++  gettext_create_translations ("${potfile}" ALL NOUPDATE)
+ 
+ else (XGETTEXT_FOUND)
+   message (ERROR "Gettext not found!")
diff --git a/app-text/xournalpp/metadata.xml b/app-text/xournalpp/metadata.xml
new file mode 100644
index 000000000000..b1dfcefdcde9
--- /dev/null
+++ b/app-text/xournalpp/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>dilfridge@gentoo.org</email>
+	</maintainer>
+</pkgmetadata>
diff --git a/app-text/xournalpp/xournalpp-1.0.17.ebuild b/app-text/xournalpp/xournalpp-1.0.17.ebuild
new file mode 100644
index 000000000000..4dac69f10a5d
--- /dev/null
+++ b/app-text/xournalpp/xournalpp-1.0.17.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils xdg
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/xournalpp/xournalpp.git"
+	unset SRC_URI
+else
+	KEYWORDS="~amd64"
+	SRC_URI="https://github.com/xournalpp/xournalpp/archive/${PV}.tar.gz -> ${P}.tgz"
+fi
+
+DESCRIPTION="Handwriting notetaking software with PDF annotation support"
+HOMEPAGE="https://github.com/xournalpp/xournalpp"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+COMMONDEPEND="
+	app-text/poppler
+	dev-libs/glib
+	dev-libs/libxml2
+	dev-libs/libzip:=
+	media-libs/portaudio
+	media-libs/libsndfile
+	sys-libs/zlib:=
+	x11-libs/gtk+:3
+"
+RDEPEND="${COMMONDEPEND}
+"
+DEPEND="${COMMONDEPEND}
+"
+BDEPEND="
+	virtual/pkgconfig
+	sys-apps/lsb-release
+"
+
+PATCHES=(
+	"${FILESDIR}/${P}-translations.patch"
+)
+
+src_prepare() {
+	cmake-utils_src_prepare
+}
diff --git a/app-text/xournalpp/xournalpp-9999.ebuild b/app-text/xournalpp/xournalpp-9999.ebuild
new file mode 100644
index 000000000000..6cb1258352c3
--- /dev/null
+++ b/app-text/xournalpp/xournalpp-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils xdg
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/xournalpp/xournalpp.git"
+	unset SRC_URI
+else
+	KEYWORDS="~amd64"
+	SRC_URI="https://github.com/xournalpp/xournalpp/archive/${PV}.tar.gz -> ${P}.tgz"
+fi
+
+DESCRIPTION="Handwriting notetaking software with PDF annotation support"
+HOMEPAGE="https://github.com/xournalpp/xournalpp"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+COMMONDEPEND="
+	app-text/poppler
+	dev-libs/glib
+	dev-libs/libxml2
+	dev-libs/libzip:=
+	media-libs/portaudio
+	media-libs/libsndfile
+	sys-libs/zlib:=
+	x11-libs/gtk+:3
+"
+RDEPEND="${COMMONDEPEND}
+"
+DEPEND="${COMMONDEPEND}
+"
+BDEPEND="
+	virtual/pkgconfig
+	sys-apps/lsb-release
+"
+
+src_prepare() {
+	cmake-utils_src_prepare
+}
-- 
cgit v1.2.3