Skip to content

Commit

Permalink
media-gfx/dcraw: [QA] Remove media-libs/jasper dep
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/689784
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Aug 28, 2019
1 parent 80c112a commit 41f2a2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions media-gfx/dcraw/dcraw-9.28.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
LANGS=" ca cs de da eo es fr hu it nl pl pt ru sv zh_CN zh_TW"
IUSE="nls gimp jpeg jpeg2k lcms"
IUSE="nls gimp jpeg lcms"

COMMON_DEPEND="
jpeg? ( virtual/jpeg:0 )
lcms? ( media-libs/lcms:2 )
jpeg2k? ( media-libs/jasper:= )
gimp? ( media-gfx/gimp )
"
DEPEND="${COMMON_DEPEND}"
Expand Down Expand Up @@ -61,12 +60,11 @@ src_prepare() {
}

src_compile() {
local ECFLAGS="-O2" # Without optimisation build fails
local ECFLAGS="-O2 -DNO_JASPER=yes" # Without optimisation build fails
local ELIBS="-lm"

use lcms && ELIBS="-llcms2 ${ELIBS}" || ECFLAGS+=" -DNO_LCMS=yes"
use jpeg && ELIBS="-ljpeg ${ELIBS}" || ECFLAGS+=" -DNO_JPEG=yes"
use jpeg2k && ELIBS="-ljasper ${ELIBS}" || ECFLAGS+=" -DNO_JASPER=yes"
use nls && ECFLAGS+=" -DLOCALEDIR=\"/usr/share/locale/\""

run_build $(tc-getCC) ${ECFLAGS} ${CFLAGS} ${LDFLAGS} -o dcraw dcraw.c ${ELIBS}
Expand Down

0 comments on commit 41f2a2f

Please sign in to comment.