app-text/xournalpp: New package

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Closes: https://github.com/gentoo/gentoo/pull/14744
Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Andreas K. Huettel
2020-02-22 21:12:49 +01:00
committed by David Seifert
parent d14043da61
commit e970b27599
5 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST xournalpp-1.0.17.tgz 14885382 BLAKE2B 501feb4480eee5aa38cc148f561d6c730505e43fd5d8017936f4b1d15f1b83ae936eb0a2e81b9889c668f9ed0a9c46b9053c984d45815c88829b023b7dbbd209 SHA512 cc3568ce22fd42f0e8458f1428c102d2fc18a9650d8c5968cadd6693fc19374780beb3c7f6206f2f494439296a883b2a5160da37e3a0e10d6fe3654084967ab9

View File

@@ -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!")

View File

@@ -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>

View File

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

View File

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