/[gentoo-x86]/app-text/djview/djview-4.8.ebuild
Gentoo

Contents of /app-text/djview/djview-4.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue Oct 1 21:16:50 2013 UTC (9 months, 1 week ago) by pesa
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +3 -2 lines
Properly fix qtgui/qtdbus deps wrt bug 484170.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/djview/djview-4.8.ebuild,v 1.11 2013/07/10 04:49:10 patrick Exp $
4
5 EAPI=4
6
7 inherit autotools eutils gnome2-utils fdo-mime flag-o-matic versionator toolchain-funcs multilib nsplugins
8
9 MY_P=${PN}-$(replace_version_separator 2 '-')
10
11 DESCRIPTION="Portable DjVu viewer using Qt4"
12 HOMEPAGE="http://djvu.sourceforge.net/djview4.html"
13 SRC_URI="mirror://sourceforge/djvu/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 x86"
18 IUSE="debug nsplugin"
19
20 RDEPEND="
21 >=app-text/djvu-3.5.22-r1
22 dev-qt/qtdbus:4
23 dev-qt/qtgui:4"
24 DEPEND="${RDEPEND}
25 >=sys-devel/autoconf-2.67
26 virtual/pkgconfig
27 nsplugin? ( dev-libs/glib:2 )"
28
29 S=${WORKDIR}/${PN}-$(get_version_component_range 1-2)
30
31 src_prepare() {
32 epatch "${FILESDIR}"/${P}-qt48.patch
33
34 # Force XEmbed instead of Xt-based mainloop (disable Xt autodep)
35 sed -e 's:\(ac_xt=\)yes:\1no:' -i configure* || die
36 sed 's/AC_CXX_OPTIMIZE/OPTS=;AC_SUBST(OPTS)/' -i configure.ac || die #263688
37 rm aclocal.m4 config/{libtool.m4,install-sh,ltmain.sh,lt*.m4}
38 AT_M4DIR="config" eautoreconf
39 }
40
41 src_configure() {
42 # See config/acinclude.m4
43 use debug || append-cppflags "-DNDEBUG"
44
45 # QTDIR is needed because of kde3
46 QTDIR=/usr \
47 econf \
48 --with-x \
49 $(use_enable nsplugin nsdejavu) \
50 --disable-desktopfiles
51 }
52
53 src_compile() {
54 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" \
59 plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} \
60 install
61
62 dodoc README NEWS
63
64 cd desktopfiles
65 insinto /usr/share/icons/hicolor/32x32/apps
66 newins hi32-djview4.png djvulibre-djview4.png
67 insinto /usr/share/icons/hicolor/64x64/apps
68 newins hi64-djview4.png djvulibre-djview4.png
69 insinto /usr/share/icons/hicolor/scalable/apps
70 newins djview.svg djvulibre-djview4.svg
71 domenu djvulibre-djview4.desktop
72 }
73
74 pkg_preinst() {
75 gnome2_icon_savelist
76 }
77
78 pkg_postinst() {
79 fdo-mime_desktop_database_update
80 gnome2_icon_cache_update
81 }
82
83 pkg_postrm() {
84 fdo-mime_desktop_database_update
85 gnome2_icon_cache_update
86 }

  ViewVC Help
Powered by ViewVC 1.1.20