diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-19 09:38:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-19 09:38:07 +0100 |
commit | 4d9aef45678c7cb55b24107642790224ab8c153b (patch) | |
tree | b1c56639785aeba23901272429a46e4e872a7711 /app-text | |
parent | f09a6cf772eb2f757f0fc49f3297d6a095a10aa5 (diff) |
gentoo auto-resync : 19:08:2023 - 09:38:07
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/Manifest.gz | bin | 48409 -> 48400 bytes | |||
-rw-r--r-- | app-text/djvu/Manifest | 2 | ||||
-rw-r--r-- | app-text/djvu/djvu-3.5.28-r4.ebuild | 71 | ||||
-rw-r--r-- | app-text/djvu/files/djvu-3.5.28-drop-register-keyword-clang16.patch | 21 |
4 files changed, 94 insertions, 0 deletions
diff --git a/app-text/Manifest.gz b/app-text/Manifest.gz Binary files differindex d0e3b6166048..286ef617441b 100644 --- a/app-text/Manifest.gz +++ b/app-text/Manifest.gz diff --git a/app-text/djvu/Manifest b/app-text/djvu/Manifest index abeb46ababbc..173e3f1004b5 100644 --- a/app-text/djvu/Manifest +++ b/app-text/djvu/Manifest @@ -1,3 +1,5 @@ +AUX djvu-3.5.28-drop-register-keyword-clang16.patch 589 BLAKE2B 205a0231890e51d971aa7ed36ac7fe2c413e3434536ea113cf73ca8f6690fded1d1d6f87eee53e0ee773d7c5803f99d03c0e5e7d226b8ce3ff5460fd0038b275 SHA512 84386e7e2f85be78be37e5891748a49f49656cb2f47808194d04ca3713259bcd2e908158e2eac340f6075a607f3191113aa906fce2c2f7f80d56d817e0e4e1aa DIST djvulibre-3.5.28.tar.gz 3701161 BLAKE2B 74681f00d5f116ab08ccadb6c6f536f5d23f1fafdfae1239add6d800c0446298e65cd5dad293e28aa4d309dc93eaeec9036a7144f6fa42ff1104a4b945ca6bce SHA512 db3b8a5b56d700e911be32057f721a2a597e6f52e6fade203ad75ad76ab2d8facff2e474fd18beea703ccd5fa6425352e619a8fda40e69add1724dbee26050c6 EBUILD djvu-3.5.28-r3.ebuild 1538 BLAKE2B a8570ba5f3f3a21af9e03f26b87b2d81c1731a60227c033f63a94ef6fe80a1d5f8b0f4489c6d3939d09a22f02b63447947e478c9facb77a203c08ad153d997dc SHA512 71d9afedc94b1448857a850e3b65d6ed538cb41a302fd650421fce6769f11d7b56f9c89e7c0925ac6b066558d67648e82410d01deb732e0982326d9b4c63d329 +EBUILD djvu-3.5.28-r4.ebuild 1623 BLAKE2B e17fb4fe4198de483d8b2311bb4748a36f3fdc4a3332799cedc64bdba90a07953e6fb15d0423cf3d63eef6fbcb2e685f8f17ceb7afccb623822572869a672fd9 SHA512 3aeab737bd94836e7086688315165926e8130f8bbd79c4bdc28bc5bf3995b8bf44fd910a722ae2d459b10d5d01a70af4f75ace2febcd574fba1493b965466274 MISC metadata.xml 958 BLAKE2B 1a060b728e218e7821534f503fb20dca6d644efcbba6bcff43f2f2fd965d1132b2680b1d90fb36b7f02c26c2f291e19c2373e20f7e08235d610f44adedd68a69 SHA512 5fe889d8f6b70abef5bfbe1c6bfafcf67c2245c2e2165c5f7f93ed38798a380c80d68dfaa2de9d217789568a6af8587ce0100ed55bb731ac19fe955a6409665a diff --git a/app-text/djvu/djvu-3.5.28-r4.ebuild b/app-text/djvu/djvu-3.5.28-r4.ebuild new file mode 100644 index 000000000000..8ca0e11bdbb9 --- /dev/null +++ b/app-text/djvu/djvu-3.5.28-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic optfeature xdg + +MY_P="${PN}libre-${PV#*_p}" +DESCRIPTION="DjVu viewers, encoders and utilities" +HOMEPAGE="https://djvu.sourceforge.net/" +SRC_URI="https://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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="debug doc jpeg tiff xml" + +RDEPEND="jpeg? ( media-libs/libjpeg-turbo:= ) + tiff? ( media-libs/tiff:= )" +DEPEND="${RDEPEND}" + +# inkscape/rsvg-convert are used to generate icons at build-time only +BDEPEND="app-arch/unzip + || ( gnome-base/librsvg media-gfx/inkscape )" + +DOCS=( NEWS README ) + +PATCHES=( + "${FILESDIR}"/${PN}-3.5.28-drop-register-keyword-clang16.patch +) + +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_pkg_postinst + + optfeature "djviewer or browser plugin" app-text/djview +} diff --git a/app-text/djvu/files/djvu-3.5.28-drop-register-keyword-clang16.patch b/app-text/djvu/files/djvu-3.5.28-drop-register-keyword-clang16.patch new file mode 100644 index 000000000000..dd86bb8bf130 --- /dev/null +++ b/app-text/djvu/files/djvu-3.5.28-drop-register-keyword-clang16.patch @@ -0,0 +1,21 @@ +Bug: https://bugs.gentoo.org/894644 +--- a/libdjvu/GBitmap.h ++++ b/libdjvu/GBitmap.h +@@ -620,7 +620,7 @@ GBitmap::euclidian_ratio(int a, int b, int &q, int &r) + inline int + GBitmap::read_run(unsigned char *&data) + { +- register int z=*data++; ++ int z=*data++; + return (z>=RUNOVERFLOWVALUE)? + ((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z; + } +@@ -628,7 +628,7 @@ GBitmap::read_run(unsigned char *&data) + inline int + GBitmap::read_run(const unsigned char *&data) + { +- register int z=*data++; ++ int z=*data++; + return (z>=RUNOVERFLOWVALUE)? + ((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z; + } |