summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-text/apvlv
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-text/apvlv')
-rw-r--r--app-text/apvlv/Manifest2
-rw-r--r--app-text/apvlv/apvlv-0.1.4.ebuild59
-rw-r--r--app-text/apvlv/apvlv-0.1.5.ebuild64
-rw-r--r--app-text/apvlv/files/apvlv-0.1.4-cmake.patch32
-rw-r--r--app-text/apvlv/files/apvlv-0.1.5-cflags.patch20
-rw-r--r--app-text/apvlv/metadata.xml14
6 files changed, 191 insertions, 0 deletions
diff --git a/app-text/apvlv/Manifest b/app-text/apvlv/Manifest
new file mode 100644
index 000000000000..e5401c3085e6
--- /dev/null
+++ b/app-text/apvlv/Manifest
@@ -0,0 +1,2 @@
+DIST apvlv-0.1.4-Source.tar.gz 337182 SHA256 f803de89aed82fea08f9386a6d6ddec999d0c96bb68c85e4cd527803838d17cd SHA512 798db075e702b02323e4df9f2ed07478aca975feca9ec7cae386792cdb4dbdcf016e7569e8f16bce6ffea0fe5482b5ea8551de10cbd0652f5607e5f0c0ea024b WHIRLPOOL fc9b66d829de17442efe7f782e44dd8024fbaf680a12a260504592bd8a44f48e7d5ace30f18f3ddec4df178fc772f4046ba0fe3e0c100195d86f05bea9703a0a
+DIST apvlv-0.1.5.tar.gz 4254177 SHA256 dca98157e63c9fec12d6514751ea26549813dc7b87d838b0003f31a444100a8a SHA512 680b2d6e272cda34b0b9065f5fdf7b917a4e3ed4d54a6e78cb41a60cf43374c687b506d4148d6cecf87912957fbe6bc4c77e9278616fd236e49ade15774e1ccd WHIRLPOOL c254d3ca939b308dc58aadee20e33c5a6bda7495c4521d3433d2eb4a03ab4c9fd25f0589554506b08496f9024ef6d8c8648abc31b5175ad5b181272b9e6cae00
diff --git a/app-text/apvlv/apvlv-0.1.4.ebuild b/app-text/apvlv/apvlv-0.1.4.ebuild
new file mode 100644
index 000000000000..2460cfb5bb99
--- /dev/null
+++ b/app-text/apvlv/apvlv-0.1.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils cmake-utils
+
+MY_P="${P}-Source"
+DESCRIPTION="Alf's PDF Viewer Like Vim"
+HOMEPAGE="http://naihe2010.github.com/apvlv/"
+SRC_URI="mirror://github/naihe2010/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug djvu"
+
+RDEPEND="
+ >=app-text/poppler-0.18:=[cairo,xpdf-headers(+)]
+ >=x11-libs/gtk+-2.10.4:2
+ djvu? ( app-text/djvu:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # Webkit automagic, preserve cflags
+ epatch "${FILESDIR}/${PN}-0.1.4-cmake.patch"
+
+ # Remove prefixes so it works with the cmake-utils eclass
+ sed -i -e "s:APVLV_::" CMakeLists.txt src/CMakeLists.txt || die
+
+ # Don't install tex file
+ sed -i -e "s:Startup.tex::" CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSYSCONFDIR=/etc/${PN}
+ -DDOCDIR=/usr/share/${PN}
+ -DMANDIR=/usr/share/man
+ -DWITH_HTML=OFF
+ -DWITH_UMD=OFF
+ -DWITH_TXT=ON
+ $(cmake-utils_use_with djvu)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc AUTHORS NEWS README THANKS TODO
+ newicon icons/pdf.png ${PN}.png
+ make_desktop_entry ${PN} "Alf's PDF Viewer Like Vim" ${PN} "Office;Viewer"
+}
diff --git a/app-text/apvlv/apvlv-0.1.5.ebuild b/app-text/apvlv/apvlv-0.1.5.ebuild
new file mode 100644
index 000000000000..a06dc571b459
--- /dev/null
+++ b/app-text/apvlv/apvlv-0.1.5.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils cmake-utils gnome2-utils
+
+DESCRIPTION="Alf's PDF Viewer Like Vim"
+HOMEPAGE="http://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 html"
+
+RDEPEND="
+ >=app-text/poppler-0.18:=[cairo,xpdf-headers(+)]
+ dev-libs/glib:2
+ x11-libs/gtk+:3
+ djvu? ( app-text/djvu:= )
+ html? ( net-libs/webkit-gtk:3= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # preserve cflags
+ epatch "${FILESDIR}/${PN}-0.1.5-cflags.patch"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSYSCONFDIR=/etc/${PN}
+ -DDOCDIR=/usr/share/${PN}
+ -DMANDIR=/usr/share/man
+ $(cmake-utils_use html APVLV_WITH_HTML)
+ -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.4-cmake.patch b/app-text/apvlv/files/apvlv-0.1.4-cmake.patch
new file mode 100644
index 000000000000..43c11596b8b0
--- /dev/null
+++ b/app-text/apvlv/files/apvlv-0.1.4-cmake.patch
@@ -0,0 +1,32 @@
+diff -ruN apvlv-0.1.4-Source/src/CMakeLists.txt my/src/CMakeLists.txt
+--- apvlv-0.1.4-Source/src/CMakeLists.txt 2012-06-13 05:44:28.000000000 +0200
++++ my/src/CMakeLists.txt 2012-07-17 00:32:53.782141814 +0200
+@@ -1,23 +1,18 @@
+ IF (WIN32)
+ ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
+ ELSE (WIN32)
+- SET (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}")
+- ENDIF (APVLV_ENABLE_DEBUG)
++ SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-strict-aliasing")
+ ENDIF (WIN32)
+
+ FIND_PACKAGE (PkgConfig)
+
+-PKG_CHECK_MODULES (FREETYPE2 freetype2 REQUIRED)
+ PKG_CHECK_MODULES (GTK2 gtk+-2.0 REQUIRED)
+ PKG_CHECK_MODULES (GLIB2 glib-2.0 REQUIRED)
+ PKG_CHECK_MODULES (GTHREAD2 gthread-2.0 REQUIRED)
+-PKG_CHECK_MODULES (WEBKIT1 webkit-1.0 QUIET)
++
++IF (APVLV_WITH_HTML)
++ PKG_CHECK_MODULES (WEBKIT1 webkit-1.0 REQUIRED)
++ENDIF (APVLV_WITH_HTML)
+ INCLUDE_DIRECTORIES (${FREETYPE2_INCLUDE_DIRS}
+ ${GTK2_INCLUDE_DIRS}
+ ${GLIB2_INCLUDE_DIRS}
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/metadata.xml b/app-text/apvlv/metadata.xml
new file mode 100644
index 000000000000..d1305260168f
--- /dev/null
+++ b/app-text/apvlv/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="html">Build binary with html format support</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">apvlv</remote-id>
+ <remote-id type="github">naihe2010/apvlv</remote-id>
+ </upstream>
+</pkgmetadata>