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.
media-libs/jbig2dec: bump to version 0.13
[License change added- dilfridge] Gentoo-Bug: https://bugs.gentoo.org/545234 Gentoo-Bug: https://bugs.gentoo.org/595594
- Loading branch information
1 parent
6c191a1
commit 3c059ec
Showing
2 changed files
with
48 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,2 +1,3 @@ | ||
DIST jb2streams.zip 1285838 SHA256 3d1e5c79054b59d061cabdb1d7ba2d1b3f84700f5c517ba4306f7047660016f7 SHA512 382890b36345b8aaebb3554e776a53f3276c6d835335ce41f3f41829ff62bba7ae646602544103ba8541a7a824dca92d682b682c254ab2918c7fe45b3e358b45 WHIRLPOOL 0906c736aeeaaecf788d309c450a787f0b780ab932f7a832c47faf4a5b5e15bdd0205b44540cd8cedcdedc9293d48afb6de084a1716bdf5ef4352b90b4998e0f | ||
DIST jbig2dec-0.11.tar.gz 371499 SHA256 7e2d8330b36f2765da22043d174827bee0f30db8d78c330904f363275c7dd0b9 SHA512 25f71ad58af0254d70a9d23efc488e1f2d931b47e344f2acf9931959c1e93749051a57905291a7dfd40407bc1995726e667d0ed6ef94e07da02330f14477c55e WHIRLPOOL 7014d3e63f55b16636f28d58bc93b1b58869b1bc70fb016360f9df314a880f79715a1d1f1b73f8ecb2b8214039942559e2e7b3df676298f19fae44d7ff849f3d | ||
DIST jbig2dec-0.13.tar.gz 442571 SHA256 5aaca0070992cc2e971e3bb2338ee749495613dcecab4c868fc547b4148f5311 SHA512 ef64a65c54bec65f61602de7130dc9594aae58aaea7958f7cc987f25d0794511e15a423e86501ace4f40c0364796fb97ceab72edb0b69232926767ba16c1b05d WHIRLPOOL bd0cef3440e3db43af04a319eb9c5ae166679bd03eda642d003e0157a1e723864bc3e18c0aed7b8266ff938e50191d8c3bd698e4fddeead61ecca805b73a2a56 |
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,47 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=6 | ||
|
||
DESCRIPTION="A decoder implementation of the JBIG2 image compression format" | ||
HOMEPAGE="http://ghostscript.com/jbig2dec.html" | ||
SRC_URI="http://downloads.ghostscript.com/public/${PN}/${P}.tar.gz | ||
test? ( http://jbig2dec.sourceforge.net/ubc/jb2streams.zip )" | ||
|
||
LICENSE="AGPL-3" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh | ||
~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos | ||
~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris" | ||
IUSE="png static-libs test" | ||
|
||
RDEPEND="png? ( media-libs/libpng:0= )" | ||
DEPEND="${RDEPEND} | ||
test? ( app-arch/unzip )" | ||
|
||
RESTRICT="test" | ||
# bug 324275 | ||
|
||
DOCS="CHANGES README" | ||
|
||
src_prepare() { | ||
default | ||
|
||
if use test; then | ||
mkdir "${WORKDIR}/ubc" || die | ||
mv -v "${WORKDIR}"/*.jb2 "${WORKDIR}/ubc/" || die | ||
mv -v "${WORKDIR}"/*.bmp "${WORKDIR}/ubc/" || die | ||
fi | ||
} | ||
|
||
src_configure() { | ||
econf \ | ||
$(use_enable static-libs static) \ | ||
$(use_with png libpng) | ||
} | ||
|
||
src_install() { | ||
default | ||
find "${ED}" -name '*.la' -exec rm {} + || die | ||
} |