Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/dcraw/
Date: Thu, 04 Jul 2019 03:27:31
Message-Id: 1562210807.2e89a7619a2e518297f2bc43060a0bb1550d842b.radhermit@gentoo
1 commit: 2e89a7619a2e518297f2bc43060a0bb1550d842b
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 4 03:20:55 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 4 03:26:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e89a761
7
8 media-gfx/dcraw: remove old
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 media-gfx/dcraw/dcraw-9.28.0.ebuild | 110 ------------------------------------
13 1 file changed, 110 deletions(-)
14
15 diff --git a/media-gfx/dcraw/dcraw-9.28.0.ebuild b/media-gfx/dcraw/dcraw-9.28.0.ebuild
16 deleted file mode 100644
17 index 78f643559b3..00000000000
18 --- a/media-gfx/dcraw/dcraw-9.28.0.ebuild
19 +++ /dev/null
20 @@ -1,110 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -inherit readme.gentoo-r1 toolchain-funcs
26 -
27 -DESCRIPTION="Command-line decoder for raw digital photos"
28 -HOMEPAGE="https://www.cybercom.net/~dcoffin/dcraw/"
29 -SRC_URI="https://www.cybercom.net/~dcoffin/dcraw/archive/${P}.tar.gz
30 - mirror://gentoo/parse-1.73.tar.bz2
31 - gimp? ( mirror://gentoo/rawphoto-1.32.tar.bz2 )"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
36 -LANGS=" ca cs de da eo es fr hu it nl pl pt ru sv zh_CN zh_TW"
37 -IUSE="nls gimp jpeg jpeg2k lcms"
38 -
39 -COMMON_DEPEND="
40 - jpeg? ( virtual/jpeg:0 )
41 - lcms? ( media-libs/lcms:2 )
42 - jpeg2k? ( media-libs/jasper:= )
43 - gimp? ( media-gfx/gimp )
44 -"
45 -DEPEND="${COMMON_DEPEND}
46 - nls? ( sys-devel/gettext )
47 - gimp? ( virtual/pkgconfig )
48 -"
49 -RDEPEND="${COMMON_DEPEND}
50 - media-libs/netpbm
51 -"
52 -
53 -S=${WORKDIR}/dcraw
54 -
55 -DOC_CONTENTS="
56 - See conversion-examples.txt.gz on how to convert
57 - the PPM files produced by dcraw to other image formats.\n
58 -
59 - \nThe functionality of the external program 'fujiturn' was
60 - incorporated into dcraw and is automatically used now.\n
61 -
62 - \nThere's an example wrapper script included called 'dcwrap'.
63 - This package also includes 'dcparse', which extracts
64 - thumbnail images (preferably JPEGs) from any raw digital
65 - camera formats that have them, and shows table contents.
66 -"
67 -
68 -run_build() {
69 - einfo "${@}"
70 - ${@} || die
71 -}
72 -
73 -src_prepare() {
74 - default
75 - rename dcraw_ dcraw. dcraw_*.1 || die "Failed to rename"
76 -}
77 -
78 -src_compile() {
79 - local ECFLAGS="-O2" # Without optimisation build fails
80 - local ELIBS="-lm"
81 -
82 - use lcms && ELIBS="-llcms2 ${ELIBS}" || ECFLAGS+=" -DNO_LCMS=yes"
83 - use jpeg && ELIBS="-ljpeg ${ELIBS}" || ECFLAGS+=" -DNO_JPEG=yes"
84 - use jpeg2k && ELIBS="-ljasper ${ELIBS}" || ECFLAGS+=" -DNO_JASPER=yes"
85 - use nls && ECFLAGS+=" -DLOCALEDIR=\"/usr/share/locale/\""
86 -
87 - run_build $(tc-getCC) ${ECFLAGS} ${CFLAGS} ${LDFLAGS} -o dcraw dcraw.c ${ELIBS}
88 -
89 - run_build $(tc-getCC) -O2 ${CFLAGS} ${LDFLAGS} -o dcparse parse.c
90 -
91 - # rawphoto gimp plugin
92 - if use gimp; then
93 - run_build $(tc-getCC) ${CFLAGS} ${LDFLAGS} \
94 - $(pkg-config --cflags gimpui-2.0) rawphoto.c -o rawphoto \
95 - $(pkg-config --libs gimpui-2.0)
96 - fi
97 -
98 - if use nls; then
99 - for lang in ${LANGS}; do
100 - has ${lang} ${LINGUAS-${lang}} \
101 - && run_build msgfmt -c -o dcraw_${lang}.mo dcraw_${lang}.po
102 - done
103 - fi
104 -}
105 -
106 -src_install() {
107 - dobin dcraw dcparse
108 - dodoc "${FILESDIR}"/{conversion-examples.txt,dcwrap}
109 -
110 - # rawphoto gimp plugin
111 - if use gimp; then
112 - insinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
113 - insopts -m0755
114 - doins rawphoto
115 - fi
116 -
117 - doman dcraw.1
118 -
119 - if use nls; then
120 - for lang in ${LANGS}; do
121 - if has ${lang} ${LINGUAS-${lang}}; then
122 - [[ -f dcraw.${lang}.1 ]] && doman dcraw.${lang}.1
123 - insinto /usr/share/locale/${lang}/LC_MESSAGES
124 - newins dcraw_${lang}.mo dcraw.mo || die "failed to install dcraw_${lang}.mo"
125 - fi
126 - done
127 - fi
128 -
129 - readme.gentoo_create_doc
130 -}