commit:     c59f8ac28f83149a561f6c0f3ed5715444e4ee3a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 12 15:50:24 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 12 15:50:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c59f8ac2

app-text/djvu: bump to 3.5.28

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/djvu/Manifest           |  1 +
 app-text/djvu/djvu-3.5.28.ebuild | 65 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/app-text/djvu/Manifest b/app-text/djvu/Manifest
index b0a911340b1..fa7f8b1800d 100644
--- a/app-text/djvu/Manifest
+++ b/app-text/djvu/Manifest
@@ -1 +1,2 @@
 DIST djvu-3.5.27.zip 3567522 BLAKE2B 
c074468a2fedf097b9b8fea4c449f26b61bffb31d10114081554e59256a23315ecffc203b5223468ca0c3338118b53aba65eee4cb5e7ad5c8d55470e90f43843
 SHA512 
dc1cd1bce2fb6245946f9409b3a3826ef2dc77a20be079c929b17508c3d967a0b5d8acd61bad00357e46a845f7f97717a043db9ffd1fe23e9a09441b7d21cbd6
+DIST djvulibre-3.5.28.tar.gz 3701161 BLAKE2B 
74681f00d5f116ab08ccadb6c6f536f5d23f1fafdfae1239add6d800c0446298e65cd5dad293e28aa4d309dc93eaeec9036a7144f6fa42ff1104a4b945ca6bce
 SHA512 
db3b8a5b56d700e911be32057f721a2a597e6f52e6fade203ad75ad76ab2d8facff2e474fd18beea703ccd5fa6425352e619a8fda40e69add1724dbee26050c6

diff --git a/app-text/djvu/djvu-3.5.28.ebuild b/app-text/djvu/djvu-3.5.28.ebuild
new file mode 100644
index 00000000000..5bbebac0309
--- /dev/null
+++ b/app-text/djvu/djvu-3.5.28.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools desktop flag-o-matic optfeature xdg
+
+MY_P="${PN}libre-${PV#*_p}"
+DESCRIPTION="DjVu viewers, encoders and utilities"
+HOMEPAGE="http://djvu.sourceforge.net/";
+SRC_URI="http://downloads.sourceforge.net/djvu/${MY_P}.tar.gz";
+S="${WORKDIR}/${MY_P%%.3}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc 
~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="debug doc jpeg tiff xml"
+
+RDEPEND="jpeg? ( virtual/jpeg:0 )
+       tiff? ( media-libs/tiff:0= )"
+DEPEND="${RDEPEND}
+       || ( gnome-base/librsvg media-gfx/inkscape )"
+BDEPEND="app-arch/unzip"
+
+DOCS=( NEWS README )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       use debug && append-cppflags "-DRUNTIME_DEBUG_ONLY"
+
+       # We install all desktop files by hand.
+       econf \
+               $(use_enable xml xmltools) \
+               $(use_with jpeg) \
+               $(use_with tiff) \
+               --disable-desktopfiles
+}
+
+src_install() {
+       default
+
+       find "${ED}" -name '*.la' -delete || die
+
+       use doc && dodoc -r doc
+
+       # Install desktop files.
+       cd desktopfiles || die
+       for i in {22,32,48,64}; do
+               insinto /usr/share/icons/hicolor/${i}x${i}/mimetypes
+               newins prebuilt-hi${i}-djvu.png image-vnd.djvu.png
+       done
+
+       insinto /usr/share/mime/packages
+       doins djvulibre-mime.xml
+}
+
+pkg_postinst() {
+       xdg_postinst
+
+       optfeature "For djviewer or browser plugin" app-text/djview
+}

Reply via email to