forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.2.26 Signed-off-by: Alexis Ballier <[email protected]>
- Loading branch information
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST djview-4.10.3.tar.gz 1119618 SHA256 50b80ecddc5aec03c49882c91b3af2f42abfe8454d5ddc01fb313e3481e6ab25 SHA512 6e3da481cec699558cbdca17b19b971d693341e6f5ffc07010f8ba717c6434e6d96969bfc322e4edcaaa5fd364e583c7c0908c814725caad4dcc3dad968a74c5 WHIRLPOOL 54ce8245b13c189a58e3f8171cecd3c1c48e8e56bdae3103b19186627fb002521e3fa25c1e81a49149d8b331fd9636af4badbb0be389d56022cab87ff8f2e60d | ||
DIST djview-4.10.5.tar.gz 1111729 SHA256 a0b302807106053d1983659ebb0139c7b1c393b3e6407f1f47990d7e3c5d7b3d SHA512 d7fa4e643e006cb1d71fe6d808fd1b200b965928bf2cdd872c9c1c1833bed71ac3c70a2967a06f31bbd83f347cb5e330f4869e42e7d9c6cd13a0db54e4354614 WHIRLPOOL 319329ac099504a3443638c91a3d078e72d231fd56504198e88017d101f8e492250d9a9205ab0eabf04af59cde2f1bad1a4056f5c8d2a99de4f916b46eda6e0e | ||
DIST djview-4.10.tar.gz 1077198 SHA256 7caf7ee249edd994092b32a5573f111b2337ec99159083a5cf1a20432633ba7f SHA512 b3755992df2000f088a93c0d77d4a2ea62f6495f67106142d4787b94d248c54561068a40700c18325c0977a057b26948762a7b71c392b0ccef455776dcb0aad0 WHIRLPOOL 179d850a994521c02a7c64e17aa8d5c618011e8a765023325bc86e19f8b7797ac1f70962b1ccb9438b3a853463c797698a29d09f937317fa0ab0ac65b5016f29 | ||
DIST djview-4.9.tar.gz 930676 SHA256 d150f557aaa073356d77c1f5e566a6a566281df5f92395b6822139f0e5c90e0c SHA512 dc2862d673eb77cca77a512a64257e7b37707789de41362fb62295ef495201a81cf31d0282a88ed70e32f8c7cd5643b568ce9761297d0e61d72fdbea7ecbfa94 WHIRLPOOL b522f9ba7283430fa7134f172b6a358c95da03e10fcf1e5f55bdd5c9be1f2929c07682e48e3a90695c838dfd2ffb875794c95e70d4096dd9595da402f76523fd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=4 | ||
|
||
inherit autotools gnome2-utils fdo-mime flag-o-matic versionator toolchain-funcs multilib nsplugins | ||
|
||
DESCRIPTION="Portable DjVu viewer using Qt4" | ||
HOMEPAGE="http://djvu.sourceforge.net/djview4.html" | ||
SRC_URI="mirror://sourceforge/djvu/${P}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" | ||
IUSE="debug nsplugin" | ||
|
||
RDEPEND=" | ||
>=app-text/djvu-3.5.22-r1 | ||
dev-qt/qtdbus:4 | ||
dev-qt/qtopengl:4 | ||
dev-qt/qtgui:4" | ||
DEPEND="${RDEPEND} | ||
>=sys-devel/autoconf-2.67 | ||
virtual/pkgconfig | ||
nsplugin? ( dev-libs/glib:2 )" | ||
|
||
src_prepare() { | ||
# Force XEmbed instead of Xt-based mainloop (disable Xt autodep) | ||
sed -e 's:\(ac_xt=\)yes:\1no:' -i configure* || die | ||
sed 's/AC_CXX_OPTIMIZE/OPTS=;AC_SUBST(OPTS)/' -i configure.ac || die #263688 | ||
rm aclocal.m4 config/{libtool.m4,install-sh,ltmain.sh,lt*.m4} | ||
AT_M4DIR="config" eautoreconf | ||
} | ||
|
||
src_configure() { | ||
# See config/acinclude.m4 | ||
use debug || append-cppflags "-DNDEBUG" | ||
|
||
# QTDIR is needed because of kde3 | ||
QTDIR=/usr \ | ||
econf \ | ||
--with-x \ | ||
$(use_enable nsplugin nsdejavu) \ | ||
--disable-desktopfiles | ||
} | ||
|
||
src_compile() { | ||
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" | ||
} | ||
|
||
src_install() { | ||
emake DESTDIR="${D}" \ | ||
plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} \ | ||
install | ||
|
||
dodoc README NEWS | ||
|
||
cd desktopfiles | ||
insinto /usr/share/icons/hicolor/32x32/apps | ||
newins prebuilt-hi32-djview4.png djvulibre-djview4.png | ||
insinto /usr/share/icons/hicolor/64x64/apps | ||
newins prebuilt-hi64-djview4.png djvulibre-djview4.png | ||
insinto /usr/share/icons/hicolor/scalable/apps | ||
newins djview.svg djvulibre-djview4.svg | ||
sed -i -e 's/Exec=djview4/Exec=djview/' djvulibre-djview4.desktop | ||
domenu djvulibre-djview4.desktop | ||
} | ||
|
||
pkg_preinst() { | ||
gnome2_icon_savelist | ||
} | ||
|
||
pkg_postinst() { | ||
fdo-mime_desktop_database_update | ||
gnome2_icon_cache_update | ||
} | ||
|
||
pkg_postrm() { | ||
fdo-mime_desktop_database_update | ||
gnome2_icon_cache_update | ||
} |