Skip to content

Commit

Permalink
media-libs/jasper: Version bump to 2.0.7
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.3
  • Loading branch information
SoapGentoo committed Dec 10, 2016
1 parent b11a296 commit 93eacd8
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-libs/jasper/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST jasper-1.900.6.tar.gz 787271 SHA256 5d0b4d684d19104b4564ef7142f4059eda91902620af36a3a6205d3dae66e027 SHA512 096e77609bf977eb0bbc9b1fc804bce7be1c7c81d066db7e367b61c4f6fa772a7a7ef21f7613485de46c3ca22cce57dce1e80c3736f54eb77eb44153218983b6 WHIRLPOOL 23edd5abc05248b43085f5a77a0210dcaf52089c57e31686478bd9b01284f294459ac1cad71eae4a594ef2632ba4323190b25d1a37dd36af0c0d7cd69579e568
DIST jasper-2.0.5.tar.gz 1309369 SHA256 77478d80bef35616ca554924d719922064343cdc5b6f5223a2a4118c9afe535d SHA512 d827e1bd7e36d0c33471563b4193b64bfb73d6b02ade810861a27ba97b773973221299c13ddee01613bda4cc78e35d9185253b78dac3bcc7e67ac514caaaab5a WHIRLPOOL bbfae6ed49f9c6a05964a0447ffd373e51695259caab3cddead773ea668f842b5a5f560ed7c5392fa16e0bd99c1eb6fb5ebb09ae41c9a036eb33561509f0678a
DIST jasper-2.0.7.tar.gz 1309716 SHA256 95674bac5198deea4148ef339edb2b781f27f0682dab1812da2183ec8667102e SHA512 c0e5a225eb5ff1df1263be52f7192780d9ecd66b71b38e5cce5a97d8e1095d2e90ae11c56db71d0ac3d1f3c83cc627c1183d313efb54828e133be4034d781e73 WHIRLPOOL 75fc9d761d7fb1ec1d913bc1e2bb5642d0dad77851bc76f6c88964a564751026a50e6252006f6665905f2e06c537d60e3ce463e993f30901005050a7e9c6f5d9
66 changes: 66 additions & 0 deletions media-libs/jasper/jasper-2.0.7.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit cmake-multilib

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/4"
IUSE="doc jpeg opengl"

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[${MULTILIB_USEDEP}]
x11-libs/libXi[${MULTILIB_USEDEP}]
x11-libs/libXmu[${MULTILIB_USEDEP}]
)"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"

multilib_src_configure() {
local mycmakeargs=(
-DALLOW_IN_SOURCE_BUILD=OFF
-DBASH_PROGRAM="${EPREFIX}"/bin/bash
-DJAS_ENABLE_ASAN=OFF
-DJAS_ENABLE_LSAN=OFF
-DJAS_ENABLE_MSAN=OFF
-DJAS_ENABLE_SHARED=ON
-DJAS_ENABLE_STRICT=ON
-DJAS_ENABLE_USAN=OFF
-DCMAKE_INSTALL_DOCDIR=share/doc/${PF}

# JPEG
-DJAS_ENABLE_LIBJPEG=$(usex jpeg)
-DCMAKE_DISABLE_FIND_PACKAGE_JPEG=$(usex !jpeg)

# OpenGL
-DJAS_ENABLE_OPENGL=$(usex opengl)
-DCMAKE_DISABLE_FIND_PACKAGE_OpenGL=$(usex !opengl)

# Doxygen
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
)
cmake-utils_src_configure
}

0 comments on commit 93eacd8

Please sign in to comment.