app-text/xournal: Version and EAPI bump
authorAndreas K. Huettel <dilfridge@gentoo.org>
Mon, 28 May 2018 13:27:44 +0000 (15:27 +0200)
committerAndreas K. Huettel <dilfridge@gentoo.org>
Mon, 28 May 2018 13:27:44 +0000 (15:27 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

app-text/xournal/Manifest
app-text/xournal/xournal-0.4.8.2016.ebuild [new file with mode: 0644]
app-text/xournal/xournal-9999.ebuild

index 2ba2d9e35e902c4024e8bc6169e27d6ba13968fb..7614a521a7a818a32fb285c9ae21e5f62014bbfa 100644 (file)
@@ -1 +1,2 @@
+DIST xournal-0.4.8.2016.tar.gz 646082 BLAKE2B 4f64fb45759616d99f961b8db575bec1620e089d9f87d4e02d3de7b1cb1d9189d439d78e5b89c93d5635138206f603e40bb33a46458d34a9ec050869e54be531 SHA512 1426d5c9ba3486fbe342d49fc19fcc162965cd6a7b7754f79665e43fe0e60e6f42f61969405ace78fdaa7b99cbb3d4b07b7fb5df246d68a329b52084b6eec76e
 DIST xournal-0.4.8.tar.gz 641240 BLAKE2B cbf82f3ddb27854ce4a17fe80d1ed012f47529ee3f41eac0118f4948f4ca76488fb647c77ab21c99cf19de0016df4db31a448d4c626a42219b2b13b297b5d51e SHA512 cfd5760a0e832ef02786a29cb744d4932aeee97c4d6992b430e647bd59aaef1042735203824d0eaf9da9b884dcdadcfb8f5acea221638db91438ae46a6ee42bf
diff --git a/app-text/xournal/xournal-0.4.8.2016.ebuild b/app-text/xournal/xournal-0.4.8.2016.ebuild
new file mode 100644 (file)
index 0000000..50477f8
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+[[ ${PV} == *9999 ]] && GNOME2_EAUTORECONF=yes
+
+inherit gnome2
+
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.code.sf.net/p/xournal/code"
+       unset SRC_URI
+else
+       KEYWORDS="~amd64 ~x86"
+       SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="An application for notetaking, sketching, and keeping a journal using a stylus"
+HOMEPAGE="http://xournal.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+pdf vanilla"
+
+COMMONDEPEND="
+       app-text/poppler[cairo]
+       dev-libs/atk
+       dev-libs/glib
+       gnome-base/libgnomecanvas
+       media-libs/freetype
+       media-libs/fontconfig
+       sys-libs/zlib
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+       x11-libs/gtk+:2
+       x11-libs/pango
+"
+RDEPEND="${COMMONDEPEND}
+       pdf? ( app-text/poppler[utils] app-text/ghostscript-gpl )
+"
+DEPEND="${COMMONDEPEND}
+       virtual/pkgconfig
+"
+
+src_prepare() {
+       default_src_prepare
+       if ! use vanilla; then
+               eapply "${FILESDIR}"/xournal-0.4.8-aspectratio.patch
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       emake DESTDIR="${D}" desktop-install
+
+       dodoc ChangeLog AUTHORS README
+       dodoc -r html-doc/*
+}
index 422842c0e82f9b7f5c8c205313f11adcabbc5a55..50477f8a453775f0191d8c519cfc19012cf0cc98 100644 (file)
@@ -1,9 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-
-GCONF_DEBUG=no
+EAPI=6
 
 [[ ${PV} == *9999 ]] && GNOME2_EAUTORECONF=yes
 
@@ -23,7 +21,7 @@ HOMEPAGE="http://xournal.sourceforge.net/"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="+pdf"
+IUSE="+pdf vanilla"
 
 COMMONDEPEND="
        app-text/poppler[cairo]
@@ -45,10 +43,17 @@ DEPEND="${COMMONDEPEND}
        virtual/pkgconfig
 "
 
+src_prepare() {
+       default_src_prepare
+       if ! use vanilla; then
+               eapply "${FILESDIR}"/xournal-0.4.8-aspectratio.patch
+       fi
+}
+
 src_install() {
        emake DESTDIR="${D}" install
        emake DESTDIR="${D}" desktop-install
 
        dodoc ChangeLog AUTHORS README
-       dohtml -r html-doc/*
+       dodoc -r html-doc/*
 }