summaryrefslogtreecommitdiff
path: root/app-text/apvlv
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/apvlv')
-rw-r--r--app-text/apvlv/Manifest6
-rw-r--r--app-text/apvlv/apvlv-0.1.5-r2.ebuild59
-rw-r--r--app-text/apvlv/files/apvlv-0.1.5-cflags.patch20
-rw-r--r--app-text/apvlv/files/apvlv-0.1.5-gcc6.patch12
-rw-r--r--app-text/apvlv/files/apvlv-0.1.5-gcc7.patch22
-rw-r--r--app-text/apvlv/metadata.xml9
6 files changed, 128 insertions, 0 deletions
diff --git a/app-text/apvlv/Manifest b/app-text/apvlv/Manifest
new file mode 100644
index 000000000000..5f37dba8012f
--- /dev/null
+++ b/app-text/apvlv/Manifest
@@ -0,0 +1,6 @@
+AUX apvlv-0.1.5-cflags.patch 702 BLAKE2B f6679326fdf3263e5a304f11bb1b6d047fd5604288912c9099a18b9a990574e1031c92c751c147319aa8c0f9e066e8a239562483b56f77e29fecf649fe7f89d5 SHA512 de7842c8cb402f045240aa50bdf05a13c6e9a4bea099fc8c41f07329b330fbb98f6edc229f0bb78eec65b14ecfffe9240441387717024939c11b9a69cb65919f
+AUX apvlv-0.1.5-gcc6.patch 403 BLAKE2B d593c72ef63ddc22a76fe8b93ad12078b1739f359832dee54f3ff4f5fbf7fa4249457ac74921b8fd9734eafdae2088321703df0b3bf56a89a1c33b96a15908b8 SHA512 f838fe6c601765e7d03ba83575aa5ffa2562d90e257832109ebe879b29d67228784c920ff7c9716010f10d2c36f4e873bc2425fc337857c437c6a19e6bd5e5f5
+AUX apvlv-0.1.5-gcc7.patch 685 BLAKE2B 3ece21cc1bfb5bbf66d10fb67abb140a357c6953655ca1b02b37cbc3d09503b5382694fb20337b2a7e50fc0a7ab51657f1a3091060bf03e8666b2bdbd0b8a8dc SHA512 53102dfea587fd946bdd7300fdb60b8395d6b2436aef6fe67be539e4ac88063f9d7934282227316f456951aa1e0748db7db02ddda06e17056d32ea6b91588afb
+DIST apvlv-0.1.5.tar.gz 4254177 BLAKE2B 53bb949838353e7e8387219d086b8c7efef78d4bff15196c68e3d0fe6c298be8a771ecce4e156254f1d072d1715794caff640ebe795f8da73e09d6a4fe4addc9 SHA512 680b2d6e272cda34b0b9065f5fdf7b917a4e3ed4d54a6e78cb41a60cf43374c687b506d4148d6cecf87912957fbe6bc4c77e9278616fd236e49ade15774e1ccd
+EBUILD apvlv-0.1.5-r2.ebuild 1166 BLAKE2B 207a92587f645c66e9834b363dd63b20bde77fd47e6d52a3882cd0a5a2ca180135d3c8282fb2903c927a4ad3960ecd5007aea2c83ca27fce74201efd5aa4fe13 SHA512 f106f31cbe4a8963548034a3ea4f386342b0a548f50c0b4e51b3bb226a89c1fa9f3ed1cf4aeecf047f422b121281a8e0beed21f4d9f586f774c1674e2904c02d
+MISC metadata.xml 304 BLAKE2B bd4def156407f7aa104c4bb45814ecc48caa571fef3b68961e831c0c1997324c8f0773beb78da896ee23e14f8e82634a20696bf2b2fd201fc5d87037e995fa5a SHA512 0d01027269ed441b2c29ae9ae560e16eca4a6aed7ed7d0e418887c538673b913988dc3f7c6414982198dfda258044ff7ef3667b8fc53cfd9d4f7773dd5d35030
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 000000000000..930aba29f219
--- /dev/null
+++ b/app-text/apvlv/apvlv-0.1.5-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils desktop 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
+ -DAPVLV_WITH_DJVU=$(usex djvu)
+ -DAPVLV_ENABLE_DEBUG=$(usex debug)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 32 icons/pdf.png ${PN}.png
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-text/apvlv/files/apvlv-0.1.5-cflags.patch b/app-text/apvlv/files/apvlv-0.1.5-cflags.patch
new file mode 100644
index 000000000000..d1859fa25701
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.1.5-cflags.patch
@@ -0,0 +1,20 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ae9ae09..5831e7a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -1,13 +1,11 @@
+ 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 infomations." OFF)
+ IF (APVLV_ENABLE_DEBUG)
+- SET (CMAKE_CXX_FLAGS "-D_DEBUG -g ${CMAKE_CXX_FLAGS}")
+- ELSE (APVLV_ENABLE_DEBUG)
+- SET (CMAKE_CXX_FLAGS "-O2 ${CMAKE_CXX_FLAGS}")
++ SET (CMAKE_CXX_FLAGS "-D_DEBUG ${CMAKE_CXX_FLAGS}")
+ ENDIF (APVLV_ENABLE_DEBUG)
+ ENDIF (WIN32)
+
diff --git a/app-text/apvlv/files/apvlv-0.1.5-gcc6.patch b/app-text/apvlv/files/apvlv-0.1.5-gcc6.patch
new file mode 100644
index 000000000000..0ffe3659d6d7
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.1.5-gcc6.patch
@@ -0,0 +1,12 @@
+diff -Naur apvlv-0.1.5.orig/src/ApvlvParams.cc apvlv-0.1.5/src/ApvlvParams.cc
+--- apvlv-0.1.5.orig/src/ApvlvParams.cc 2015-01-10 15:04:24.000000000 +0100
++++ apvlv-0.1.5/src/ApvlvParams.cc 2017-02-09 20:03:08.655402750 +0100
+@@ -90,7 +90,7 @@
+ return false;
+ }
+
+- while ((getline (os, str)) != NULL)
++ while (getline (os, str))
+ {
+ string argu, data, crap;
+ stringstream is (str);
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 000000000000..e55f2771395a
--- /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;
diff --git a/app-text/apvlv/metadata.xml b/app-text/apvlv/metadata.xml
new file mode 100644
index 000000000000..2985af6e7c96
--- /dev/null
+++ b/app-text/apvlv/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="google-code">apvlv</remote-id>
+ <remote-id type="github">naihe2010/apvlv</remote-id>
+ </upstream>
+</pkgmetadata>