diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2012-07-16 22:34:27 +0000 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2012-07-16 22:34:27 +0000 |
commit | c98bbcaa36f21a8de85427f26519dfe9e4a8ec21 (patch) | |
tree | 94f35bb17045e78ba105f8b8a05a3366ae424a37 | |
parent | Based on 2.6.32.59 + genpatches-2.6.32-48 + grsecurity-2.9.1-2.6.32.59-201207... (diff) | |
download | gentoo-2-c98bbcaa36f21a8de85427f26519dfe9e4a8ec21.tar.gz gentoo-2-c98bbcaa36f21a8de85427f26519dfe9e4a8ec21.tar.bz2 gentoo-2-c98bbcaa36f21a8de85427f26519dfe9e4a8ec21.zip |
Version bump
(Portage version: 2.2.0_alpha118/cvs/Linux x86_64, RepoMan options: --force)
-rw-r--r-- | app-text/apvlv/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/apvlv/apvlv-0.1.4.ebuild | 59 | ||||
-rw-r--r-- | app-text/apvlv/files/apvlv-0.1.4-cmake.patch | 32 |
3 files changed, 98 insertions, 2 deletions
diff --git a/app-text/apvlv/ChangeLog b/app-text/apvlv/ChangeLog index d9d493d42821..4cc4c2c9c460 100644 --- a/app-text/apvlv/ChangeLog +++ b/app-text/apvlv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/apvlv # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/apvlv/ChangeLog,v 1.17 2012/05/04 03:33:11 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/apvlv/ChangeLog,v 1.18 2012/07/16 22:34:27 reavertm Exp $ + +*apvlv-0.1.4 (16 Jul 2012) + + 16 Jul 2012; Maciej Mrozowski <reavertm@gentoo.org> +apvlv-0.1.4.ebuild, + +files/apvlv-0.1.4-cmake.patch: + Version bump 04 May 2012; Jeff Horelick <jdhore@gentoo.org> apvlv-0.1.1.ebuild, apvlv-0.1.2.ebuild, apvlv-0.1.2-r1.ebuild: @@ -78,4 +84,3 @@ 27 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> +apvlv-0.0.9.4.ebuild: Initial commit wrt #257378, thanks to Ramana Kumar, Christian Glindkamp, Jarkko Kaleva, Eric Smith, and William. - 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..88926df81398 --- /dev/null +++ b/app-text/apvlv/apvlv-0.1.4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/apvlv/apvlv-0.1.4.ebuild,v 1.1 2012/07/16 22:34:27 reavertm Exp $ + +EAPI=4 + +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] + >=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/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} |