summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-10-26 21:55:01 +0200
committerDavid Seifert <soap@gentoo.org>2016-10-26 22:16:21 +0200
commitab7beb1ef89ba0d79c6e57a4f5c096219ce93f3a (patch)
tree8066919b968aec60bbc0905d2c6ed96b3921dab9 /media-libs
parentdev-python/numexpr: Version bump to 2.6.1 (diff)
downloadgentoo-ab7beb1ef89ba0d79c6e57a4f5c096219ce93f3a.tar.gz
gentoo-ab7beb1ef89ba0d79c6e57a4f5c096219ce93f3a.tar.bz2
gentoo-ab7beb1ef89ba0d79c6e57a4f5c096219ce93f3a.zip
media-libs/jasper: Version bump to 1.900.15
* Add option to limit maximum memory by default Package-Manager: portage-2.3.2
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/jasper/Manifest1
-rw-r--r--media-libs/jasper/jasper-1.900.15.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/media-libs/jasper/Manifest b/media-libs/jasper/Manifest
index 65c6795dcaaf..ba83d73ef4c4 100644
--- a/media-libs/jasper/Manifest
+++ b/media-libs/jasper/Manifest
@@ -1 +1,2 @@
+DIST jasper-1.900.15.tar.gz 1270678 SHA256 145b60616208df067d3769feb001bec6360c8c0da911d5fe5fd69ade50627bfb SHA512 2fe58dac4613477f423a7c2afa5fea88436ebc9ca2ab01f35aecba6b8e9d95e60415f94c240c580b87e4135522f176a2b7351743b852ff94518b0642b85130f7 WHIRLPOOL b152bce5a7ce6bf05fc484320bed9e069f636ce2889b995118825a99498196b9628f1bba6ec8ca8a51860e8b25b7c8945646e45cd1b6cfc434ef66babe9583c3
DIST jasper-1.900.6.tar.gz 787271 SHA256 5d0b4d684d19104b4564ef7142f4059eda91902620af36a3a6205d3dae66e027 SHA512 096e77609bf977eb0bbc9b1fc804bce7be1c7c81d066db7e367b61c4f6fa772a7a7ef21f7613485de46c3ca22cce57dce1e80c3736f54eb77eb44153218983b6 WHIRLPOOL 23edd5abc05248b43085f5a77a0210dcaf52089c57e31686478bd9b01284f294459ac1cad71eae4a594ef2632ba4323190b25d1a37dd36af0c0d7cd69579e568
diff --git a/media-libs/jasper/jasper-1.900.15.ebuild b/media-libs/jasper/jasper-1.900.15.ebuild
new file mode 100644
index 000000000000..7c007cdc115f
--- /dev/null
+++ b/media-libs/jasper/jasper-1.900.15.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
+HOMEPAGE="http://www.ece.uvic.ca/~mdadams/jasper/"
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/mdadams/jasper.git"
+else
+ inherit vcs-snapshot
+ SRC_URI="https://github.com/mdadams/${PN}/archive/version-${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 \
+ ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux \
+ ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+fi
+
+# We limit memory usage to 128 MiB by default, specified in bytes
+: ${JASPER_MEM_LIMIT:=134217728}
+
+LICENSE="JasPer2.0"
+SLOT="0/1"
+IUSE="jpeg opengl static-libs"
+
+RDEPEND="
+ jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
+ opengl? (
+ >=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
+ >=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
+ virtual/glu
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable opengl) \
+ $(use_enable static-libs static) \
+ --enable-memory-limit="${JASPER_MEM_LIMIT}"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ dodoc -r doc/.
+
+ # package provides .pc files
+ find "${D}" -name '*.la' -delete || die
+}