summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-07 13:58:38 +0000
committerSam James <sam@gentoo.org>2022-12-07 13:58:55 +0000
commit48a522381cf0f031d4b3b7cdc766ab2d85260265 (patch)
tree311941a923bb2dbe585674ac8958c32fb229ec52 /app-text
parentapp-text/xournal: clang16 fix (diff)
downloadgentoo-48a522381cf0f031d4b3b7cdc766ab2d85260265.tar.gz
gentoo-48a522381cf0f031d4b3b7cdc766ab2d85260265.tar.bz2
gentoo-48a522381cf0f031d4b3b7cdc766ab2d85260265.zip
app-text/xournal: EAPI 8
Bug: https://bugs.gentoo.org/875158 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/xournal/xournal-0.4.8.2016-r1.ebuild19
-rw-r--r--app-text/xournal/xournal-9999.ebuild29
2 files changed, 27 insertions, 21 deletions
diff --git a/app-text/xournal/xournal-0.4.8.2016-r1.ebuild b/app-text/xournal/xournal-0.4.8.2016-r1.ebuild
index eb0427c142d3..3ebf59e8631a 100644
--- a/app-text/xournal/xournal-0.4.8.2016-r1.ebuild
+++ b/app-text/xournal/xournal-0.4.8.2016-r1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
[[ ${PV} == *9999 ]] && GNOME2_EAUTORECONF=yes
@@ -12,7 +12,7 @@ if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://git.code.sf.net/p/xournal/code"
unset SRC_URI
else
- KEYWORDS="amd64 ~ppc64 ~x86"
+ KEYWORDS="~amd64 ~ppc64 ~x86"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
fi
@@ -23,7 +23,7 @@ LICENSE="GPL-2"
SLOT="0"
IUSE="+pdf vanilla"
-COMMONDEPEND="
+DEPEND="
app-text/poppler[cairo]
dev-libs/atk
dev-libs/glib
@@ -36,27 +36,26 @@ COMMONDEPEND="
x11-libs/gtk+:2
x11-libs/pango
"
-RDEPEND="${COMMONDEPEND}
+RDEPEND="
+ ${DEPEND}
pdf? ( app-text/poppler[utils] app-text/ghostscript-gpl )
"
-DEPEND="${COMMONDEPEND}
- virtual/pkgconfig
-"
+BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}"-0.4.8-c99-fix.patch
)
src_prepare() {
- default_src_prepare
+ default
+
if ! use vanilla; then
eapply "${FILESDIR}"/xournal-0.4.8-aspectratio.patch
fi
}
src_install() {
- emake DESTDIR="${D}" install
- emake DESTDIR="${D}" desktop-install
+ emake DESTDIR="${D}" install desktop-install
dodoc ChangeLog AUTHORS README
dodoc -r html-doc/*
diff --git a/app-text/xournal/xournal-9999.ebuild b/app-text/xournal/xournal-9999.ebuild
index 5afafb130f7e..d7fc7a1b87ab 100644
--- a/app-text/xournal/xournal-9999.ebuild
+++ b/app-text/xournal/xournal-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
[[ ${PV} == *9999 ]] && GNOME2_EAUTORECONF=yes
@@ -12,7 +12,7 @@ if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://git.code.sf.net/p/xournal/code"
unset SRC_URI
else
- KEYWORDS="~amd64 ~x86"
+ KEYWORDS="~amd64 ~ppc64 ~x86"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
fi
@@ -21,9 +21,9 @@ HOMEPAGE="http://xournal.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
-IUSE="+pdf"
+IUSE="+pdf vanilla"
-COMMONDEPEND="
+DEPEND="
app-text/poppler[cairo]
dev-libs/atk
dev-libs/glib
@@ -36,16 +36,23 @@ COMMONDEPEND="
x11-libs/gtk+:2
x11-libs/pango
"
-RDEPEND="${COMMONDEPEND}
+RDEPEND="
+ ${DEPEND}
pdf? ( app-text/poppler[utils] app-text/ghostscript-gpl )
"
-DEPEND="${COMMONDEPEND}
- virtual/pkgconfig
-"
+BDEPEND="virtual/pkgconfig"
-src_install() {
+src_prepare() {
default
- emake DESTDIR="${D}" desktop-install
+ if ! use vanilla; then
+ eapply "${FILESDIR}"/xournal-0.4.8-aspectratio.patch
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install desktop-install
+
+ dodoc ChangeLog AUTHORS README
dodoc -r html-doc/*
}