public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-text/apvlv/files/, app-text/apvlv/
@ 2017-11-25  9:31 Pacho Ramos
  0 siblings, 0 replies; 3+ messages in thread
From: Pacho Ramos @ 2017-11-25  9:31 UTC (permalink / raw
  To: gentoo-commits

commit:     7587775a50aaab00ffe7d396dfc7328de1928852
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 25 09:25:44 2017 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Nov 25 09:31:23 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7587775a

app-text/apvlv: Fix building with gcc7 with Debian patch.

Package-Manager: Portage-2.3.14, Repoman-2.3.6

 app-text/apvlv/Manifest                     |  2 +-
 app-text/apvlv/apvlv-0.1.5-r2.ebuild        | 63 +++++++++++++++++++++++++++++
 app-text/apvlv/files/apvlv-0.1.5-gcc7.patch | 22 ++++++++++
 3 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/app-text/apvlv/Manifest b/app-text/apvlv/Manifest
index fa048e6d7be..e2e8e977e53 100644
--- a/app-text/apvlv/Manifest
+++ b/app-text/apvlv/Manifest
@@ -1 +1 @@
-DIST apvlv-0.1.5.tar.gz 4254177 SHA256 dca98157e63c9fec12d6514751ea26549813dc7b87d838b0003f31a444100a8a SHA512 680b2d6e272cda34b0b9065f5fdf7b917a4e3ed4d54a6e78cb41a60cf43374c687b506d4148d6cecf87912957fbe6bc4c77e9278616fd236e49ade15774e1ccd WHIRLPOOL c254d3ca939b308dc58aadee20e33c5a6bda7495c4521d3433d2eb4a03ab4c9fd25f0589554506b08496f9024ef6d8c8648abc31b5175ad5b181272b9e6cae00
+DIST apvlv-0.1.5.tar.gz 4254177 BLAKE2B 53bb949838353e7e8387219d086b8c7efef78d4bff15196c68e3d0fe6c298be8a771ecce4e156254f1d072d1715794caff640ebe795f8da73e09d6a4fe4addc9 SHA512 680b2d6e272cda34b0b9065f5fdf7b917a4e3ed4d54a6e78cb41a60cf43374c687b506d4148d6cecf87912957fbe6bc4c77e9278616fd236e49ade15774e1ccd

diff --git a/app-text/apvlv/apvlv-0.1.5-r2.ebuild b/app-text/apvlv/apvlv-0.1.5-r2.ebuild
new file mode 100644
index 00000000000..ba041b48bf2
--- /dev/null
+++ b/app-text/apvlv/apvlv-0.1.5-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cmake-utils gnome2-utils
+
+DESCRIPTION="Alf's PDF Viewer Like Vim"
+HOMEPAGE="https://naihe2010.github.com/apvlv/"
+SRC_URI="https://github.com/naihe2010/apvlv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug djvu"
+
+RDEPEND="
+	>=app-text/poppler-0.18:=[cairo,xpdf-headers(+)]
+	dev-libs/glib:2
+	x11-libs/gtk+:3
+	djvu? ( app-text/djvu:= )
+"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	# preserve cflags
+	"${FILESDIR}/${PN}-0.1.5-cflags.patch"
+	"${FILESDIR}/${PN}-0.1.5-gcc6.patch"
+	"${FILESDIR}/${PN}-0.1.5-gcc7.patch"
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DSYSCONFDIR=/etc/${PN}
+		-DDOCDIR=/usr/share/${PN}
+		-DMANDIR=/usr/share/man
+		-DAPVLV_WITH_HTML=OFF
+		-DAPVLV_WITH_UMD=OFF
+		-DAPVLV_WITH_TXT=ON
+		$(cmake-utils_use djvu APVLV_WITH_DJVU)
+		$(cmake-utils_use debug APVLV_ENABLE_DEBUG)
+	)
+	cmake-utils_src_configure
+}
+
+src_install() {
+	cmake-utils_src_install
+	dodoc AUTHORS NEWS README THANKS TODO
+	newicon -s 32 icons/pdf.png ${PN}.png
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postinst() {
+	gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+	gnome2_icon_cache_update
+}

diff --git a/app-text/apvlv/files/apvlv-0.1.5-gcc7.patch b/app-text/apvlv/files/apvlv-0.1.5-gcc7.patch
new file mode 100644
index 00000000000..e55f2771395
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.1.5-gcc7.patch
@@ -0,0 +1,22 @@
+--- apvlv-0.1.5+dfsg.orig/src/ApvlvCmds.cc
++++ apvlv-0.1.5+dfsg/src/ApvlvCmds.cc
+@@ -200,7 +200,7 @@ namespace apvlv
+ 
+     if (len >= 4
+ 	&& *s == '<'
+-	&& (e = strchr ((char *) s, '>')) != '\0' && *(s + 2) != '-')
++	&& (e = strchr ((char *) s, '>')) && *(s + 2) != '-')
+       {
+ 	e++;
+ 	StringKeyMap::iterator it;
+--- apvlv-0.1.5+dfsg.orig/src/ApvlvCore.cc
++++ apvlv-0.1.5+dfsg/src/ApvlvCore.cc
+@@ -90,7 +90,7 @@ namespace apvlv
+   {
+     mInuse = use;
+ 
+-    if (mInuse == false && gView->hasloaded (filename (), type ()) == false)
++    if (mInuse == false && !gView->hasloaded (filename (), type ()))
+       {
+ 	debug ("core :%p is not needed, delete it\n", this);
+ 	delete this;


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-text/apvlv/files/, app-text/apvlv/
@ 2019-01-17  0:36 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2019-01-17  0:36 UTC (permalink / raw
  To: gentoo-commits

commit:     d4bee1eec830bf722c8a566c554c2896a76d9f52
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 17 00:32:38 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan 17 00:36:04 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4bee1ee

app-text/apvlv: Fix build with poppler-0.73

Closes: https://bugs.gentoo.org/675658
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/apvlv/apvlv-0.1.5-r2.ebuild                |  9 +++++----
 app-text/apvlv/files/apvlv-0.1.5-poppler-0.73.patch | 10 ++++++++++
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/app-text/apvlv/apvlv-0.1.5-r2.ebuild b/app-text/apvlv/apvlv-0.1.5-r2.ebuild
index 930aba29f21..bdcb3de1f18 100644
--- a/app-text/apvlv/apvlv-0.1.5-r2.ebuild
+++ b/app-text/apvlv/apvlv-0.1.5-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -26,9 +26,10 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
 	# preserve cflags
-	"${FILESDIR}/${PN}-0.1.5-cflags.patch"
-	"${FILESDIR}/${PN}-0.1.5-gcc6.patch"
-	"${FILESDIR}/${PN}-0.1.5-gcc7.patch"
+	"${FILESDIR}/${P}-cflags.patch"
+	"${FILESDIR}/${P}-gcc6.patch"
+	"${FILESDIR}/${P}-gcc7.patch"
+	"${FILESDIR}/${P}-poppler-0.73.patch"
 )
 
 src_configure() {

diff --git a/app-text/apvlv/files/apvlv-0.1.5-poppler-0.73.patch b/app-text/apvlv/files/apvlv-0.1.5-poppler-0.73.patch
new file mode 100644
index 00000000000..c3001d4b619
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.1.5-poppler-0.73.patch
@@ -0,0 +1,10 @@
+--- a/src/ApvlvPdf.cc	2015-01-10 15:04:24.000000000 +0100
++++ b/src/ApvlvPdf.cc	2019-01-17 01:29:54.479256848 +0100
+@@ -29,7 +29,6 @@
+ #include "ApvlvPdf.h"
+ 
+ #ifndef POPPLER_WITH_GDK
+-#include <goo/gtypes.h>
+ 
+ static void
+ copy_cairo_surface_to_pixbuf (cairo_surface_t *surface,


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-text/apvlv/files/, app-text/apvlv/
@ 2022-04-22 10:22 Joonas Niilola
  0 siblings, 0 replies; 3+ messages in thread
From: Joonas Niilola @ 2022-04-22 10:22 UTC (permalink / raw
  To: gentoo-commits

commit:     6d604accaa7da133d7617c7ffb500d696a2d12c1
Author:     Chaquen Beliakov Amaya <c <AT> cgps <DOT> ch>
AuthorDate: Sat Apr 16 05:51:11 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 10:22:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d604acc

app-text/apvlv: add 0.4.0

Signed-off-by: Chaquen Beliakov Amaya <c <AT> cgps.ch>
Closes: https://github.com/gentoo/gentoo/pull/25039
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-text/apvlv/Manifest                            |  1 +
 app-text/apvlv/apvlv-0.4.0.ebuild                  | 57 ++++++++++++++++++++++
 .../apvlv/files/apvlv-0.4.0-cmake-cxxflags.patch   | 11 +++++
 app-text/apvlv/files/apvlv-0.4.0-icon.patch        | 10 ++++
 app-text/apvlv/metadata.xml                        |  9 +++-
 5 files changed, 87 insertions(+), 1 deletion(-)

diff --git a/app-text/apvlv/Manifest b/app-text/apvlv/Manifest
index e2e8e977e53f..4e7bd904c044 100644
--- a/app-text/apvlv/Manifest
+++ b/app-text/apvlv/Manifest
@@ -1 +1,2 @@
 DIST apvlv-0.1.5.tar.gz 4254177 BLAKE2B 53bb949838353e7e8387219d086b8c7efef78d4bff15196c68e3d0fe6c298be8a771ecce4e156254f1d072d1715794caff640ebe795f8da73e09d6a4fe4addc9 SHA512 680b2d6e272cda34b0b9065f5fdf7b917a4e3ed4d54a6e78cb41a60cf43374c687b506d4148d6cecf87912957fbe6bc4c77e9278616fd236e49ade15774e1ccd
+DIST apvlv-0.4.0.tar.gz 4361302 BLAKE2B 99d61df285ff3b910ace50bc4b1b62601fe7ca9037f835262a8eac179ddcccff5f772121b223e38050243d4bc2da9532e17d9b38fbceb786971d77fea006f91d SHA512 a25033e52acf34b486101953ffaa5de604e3321f9b4705e94fa157596ef560351c1712ed830b2a950f92c054b600a33f903be58f8a7d222c27e5125fedf4245b

diff --git a/app-text/apvlv/apvlv-0.4.0.ebuild b/app-text/apvlv/apvlv-0.4.0.ebuild
new file mode 100644
index 000000000000..5d26770ff1aa
--- /dev/null
+++ b/app-text/apvlv/apvlv-0.4.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg cmake desktop
+
+DESCRIPTION="Alf's PDF/DJVU/EPUB Viewer like Vim"
+HOMEPAGE="https://github.com/naihe2010/apvlv/"
+SRC_URI="https://github.com/naihe2010/apvlv/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug djvu"
+
+RDEPEND="
+	app-text/ebook-tools
+	>=app-text/poppler-0.5.0[cairo,xpdf-headers(+)]
+	dev-libs/glib:2
+	dev-libs/libxml2
+	net-libs/webkit-gtk
+	x11-libs/cairo
+	x11-libs/gdk-pixbuf:2
+	x11-libs/gtk+:3
+	x11-libs/pango
+	djvu? ( app-text/djvu:= )
+"
+
+DEPEND="${RDEPEND}
+	app-text/ghostscript-gpl
+	media-libs/freetype
+"
+BDEPEND="
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-cmake-cxxflags.patch
+	"${FILESDIR}"/${P}-icon.patch
+)
+src_prepare() {
+	cmake_src_prepare
+}
+src_configure() {
+	local mycmakeargs=(
+		-DAPVLV_WITH_DJVU=$(usex djvu)
+		-DAPVLV_ENABLE_DEBUG=$(usex debug)
+		-DAPVLV_WITH_TXT=ON
+		-DDOCDIR="/usr/share/doc/${PF}"
+	)
+	cmake_src_configure
+}
+src_install() {
+	cmake_src_install
+	newicon -s 32 icons/pdf.png ${PN}.png
+}

diff --git a/app-text/apvlv/files/apvlv-0.4.0-cmake-cxxflags.patch b/app-text/apvlv/files/apvlv-0.4.0-cmake-cxxflags.patch
new file mode 100644
index 000000000000..101877bbff63
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.4.0-cmake-cxxflags.patch
@@ -0,0 +1,11 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -3,7 +3,7 @@
+ IF (WIN32)
+     ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
+ ELSE (WIN32)
+-    SET(CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing")
++    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-strict-aliasing")
+ 
+     OPTION(APVLV_ENABLE_DEBUG "If build binary with debug information." OFF)
+     IF (APVLV_ENABLE_DEBUG)

diff --git a/app-text/apvlv/files/apvlv-0.4.0-icon.patch b/app-text/apvlv/files/apvlv-0.4.0-icon.patch
new file mode 100644
index 000000000000..f5e8ad370877
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.4.0-icon.patch
@@ -0,0 +1,10 @@
+--- a/apvlv.desktop
++++ b/apvlv.desktop
+@@ -2,6 +2,7 @@
+ Version=1.0
+ Type=Application
+ Name=apvlv
++Icon=apvlv
+ Comment=A minimalistic document viewer
+ Comment[de]=Ein minimalistischer Dokumenten-Betrachter
+ Comment[fr]=Un visionneur de document minimaliste

diff --git a/app-text/apvlv/metadata.xml b/app-text/apvlv/metadata.xml
index 43022be5fe1e..6a3c3096b614 100644
--- a/app-text/apvlv/metadata.xml
+++ b/app-text/apvlv/metadata.xml
@@ -1,7 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-  <!-- maintainer-needed -->
+  <maintainer type="person" proxied="yes">
+    <email>c@cgps.ch</email>
+    <name>Chaquen Beliakov Amaya</name>
+  </maintainer>
+  <maintainer type="project" proxied="proxy">
+    <email>proxy-maint@gentoo.org</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
   <upstream>
     <remote-id type="google-code">apvlv</remote-id>
     <remote-id type="github">naihe2010/apvlv</remote-id>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-22 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 10:22 [gentoo-commits] repo/gentoo:master commit in: app-text/apvlv/files/, app-text/apvlv/ Joonas Niilola
  -- strict thread matches above, loose matches on Subject: below --
2019-01-17  0:36 Andreas Sturmlechner
2017-11-25  9:31 Pacho Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox