Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/dcraw: ChangeLog dcraw-9.10.ebuild dcraw-8.98-r1.ebuild dcraw-9.04.ebuild
Date: Tue, 06 Sep 2011 19:35:57
Message-Id: 20110906193432.B172C2004C@flycatcher.gentoo.org
1 pva 11/09/06 19:34:32
2
3 Modified: ChangeLog
4 Added: dcraw-9.10.ebuild
5 Removed: dcraw-8.98-r1.ebuild dcraw-9.04.ebuild
6 Log:
7 Version bump. Drop old. Remove unused script.
8
9 (Portage version: 2.1.10.11/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.76 media-gfx/dcraw/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/dcraw/ChangeLog?rev=1.76&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/dcraw/ChangeLog?rev=1.76&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/dcraw/ChangeLog?r1=1.75&r2=1.76
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-gfx/dcraw/ChangeLog,v
21 retrieving revision 1.75
22 retrieving revision 1.76
23 diff -u -r1.75 -r1.76
24 --- ChangeLog 25 Apr 2011 22:09:10 -0000 1.75
25 +++ ChangeLog 6 Sep 2011 19:34:32 -0000 1.76
26 @@ -1,6 +1,13 @@
27 # ChangeLog for media-gfx/dcraw
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/dcraw/ChangeLog,v 1.75 2011/04/25 22:09:10 hanno Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/dcraw/ChangeLog,v 1.76 2011/09/06 19:34:32 pva Exp $
31 +
32 +*dcraw-9.10 (06 Sep 2011)
33 +
34 + 06 Sep 2011; Peter Volkov <pva@g.o> -dcraw-8.98-r1.ebuild,
35 + -dcraw-9.04.ebuild, +dcraw-9.10.ebuild,
36 + -files/update-dcparse-and-rawphoto-tarballs.sh:
37 + Version bump. Drop old. Remove unused script.
38
39 25 Apr 2011; Hanno Boeck <hanno@g.o> dcraw-8.98-r1.ebuild,
40 dcraw-9.04.ebuild, dcraw-9.05.ebuild:
41
42
43
44 1.1 media-gfx/dcraw/dcraw-9.10.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/dcraw/dcraw-9.10.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/dcraw/dcraw-9.10.ebuild?rev=1.1&content-type=text/plain
48
49 Index: dcraw-9.10.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-gfx/dcraw/dcraw-9.10.ebuild,v 1.1 2011/09/06 19:34:32 pva Exp $
54
55 EAPI="2"
56
57 inherit eutils toolchain-funcs
58
59 DESCRIPTION="Converts the native (RAW) format of various digital cameras into netpbm portable pixmap (.ppm) image"
60 HOMEPAGE="http://www.cybercom.net/~dcoffin/dcraw/"
61 SRC_URI="http://www.cybercom.net/~dcoffin/dcraw/archive/${P}.tar.gz
62 mirror://gentoo/parse-1.73.tar.bz2
63 gimp? ( mirror://gentoo/rawphoto-1.32.tar.bz2 )"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
68 IUSE="nls gimp jpeg jpeg2k lcms"
69
70 COMMON_DEPEND="jpeg? ( virtual/jpeg )
71 lcms? ( =media-libs/lcms-1* )
72 jpeg2k? ( media-libs/jasper )
73 gimp? ( media-gfx/gimp )"
74 DEPEND="${COMMON_DEPEND}
75 nls? ( sys-devel/gettext )
76 gimp? ( dev-util/pkgconfig )"
77 RDEPEND="${COMMON_DEPEND}
78 media-libs/netpbm"
79
80 S=${WORKDIR}/dcraw
81
82 LANGS="ca cs de da eo es fr hu it nl pl pt ru sv zh_CN zh_TW"
83
84 for lng in ${LANGS}; do
85 IUSE+=" linguas_${lng}"
86 done
87
88 # Helper function to list only langs listed in LANGS or
89 linguas_list() {
90 local nolangs=true
91 for lng in ${LANGS}; do
92 if use linguas_${lng}; then
93 nolangs=false
94 echo " ${lng}"
95 fi
96 done
97 if ${nolangs}; then
98 echo ${LANGS}
99 fi
100 }
101
102 run_build() {
103 einfo "${@}"
104 ${@} || die
105 }
106
107 src_prepare() {
108 rename dcraw_ dcraw. dcraw_*.1 || die "Failed to rename"
109 }
110
111 src_compile() {
112 local ECFLAGS="-O2" # Without optimisation build fails
113 local ELIBS="-lm"
114
115 use lcms && ELIBS="-llcms ${ELIBS}" || ECFLAGS+=" -DNO_LCMS=yes"
116 use jpeg && ELIBS="-ljpeg ${ELIBS}" || ECFLAGS+=" -DNO_JPEG=yes"
117 use jpeg2k && ELIBS="-ljasper ${ELIBS}" || ECFLAGS+=" -DNO_JASPER=yes"
118 use nls && ECFLAGS+=" -DLOCALEDIR=\"/usr/share/locale/\""
119
120 run_build $(tc-getCC) ${ECFLAGS} ${CFLAGS} ${LDFLAGS} \
121 -o dcraw dcraw.c ${ELIBS}
122
123 run_build $(tc-getCC) -O2 ${CFLAGS} ${LDFLAGS} \
124 -o dcparse parse.c
125
126 # rawphoto gimp plugin
127 if use gimp; then
128 run_build $(tc-getCC) ${CFLAGS} ${LDFLAGS} \
129 $(pkg-config --cflags gimpui-2.0) rawphoto.c -o rawphoto \
130 $(pkg-config --libs gimpui-2.0)
131 fi
132
133 if use nls; then
134 for lng in $(linguas_list); do
135 run_build msgfmt -c -o dcraw_${lng}.mo dcraw_${lng}.po
136 done
137 fi
138 }
139
140 src_install() {
141 dobin dcraw dcparse || die
142 dodoc "${FILESDIR}"/{conversion-examples.txt,dcwrap} || die
143
144 # rawphoto gimp plugin
145 if use gimp; then
146 insinto "$(pkg-config --variable=gimplibdir gimp-2.0)/plug-ins"
147 insopts -m0755
148 doins rawphoto || die
149 fi
150
151 doman dcraw.1 || die
152 if use nls; then
153 for lng in $(linguas_list); do
154 [[ -f dcraw.${lng}.1 ]] && doman dcraw.${lng}.1
155 insinto /usr/share/locale/${lng}/LC_MESSAGES
156 newins dcraw_${lng}.mo dcraw.mo || die "failed to install dcraw_${lng}.mo"
157 done
158 fi
159 }
160
161 pkg_postinst() {
162 elog ""
163 elog "See conversion-examples.txt.gz on how to convert"
164 elog "the PPM files produced by dcraw to other image formats."
165 elog ""
166 ewarn "The functionality of the external program 'fujiturn' was"
167 ewarn "incorporated into dcraw and is automatically used now."
168 elog ""
169 elog "There's an example wrapper script included called 'dcwrap'."
170 elog ""
171 elog "This package also includes 'dcparse', which extracts"
172 elog "thumbnail images (preferably JPEGs) from any raw digital"
173 elog "camera formats that have them, and shows table contents."
174 elog ""
175 }