Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libraw: metadata.xml ChangeLog libraw-0.9.1.ebuild
Date: Sun, 22 Aug 2010 07:25:01
Message-Id: 20100822072456.B60EA20051@flycatcher.gentoo.org
1 hollow 10/08/22 07:24:56
2
3 Added: metadata.xml ChangeLog libraw-0.9.1.ebuild
4 Log:
5 initial ebuild, bug #327013
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-libs/libraw/metadata.xml
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libraw/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libraw/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>graphics</herd>
20 <maintainer>
21 <email>hollow@g.o</email>
22 <name>Benedikt Böhm</name>
23 </maintainer>
24 <maintainer>
25 <email>nutz@×××××.de</email>
26 <name>Andreas Nüßlein</name>
27 <description>Proxy maintainer. Please CC on bugs.</description>
28 </maintainer>
29 </pkgmetadata>
30
31
32
33 1.1 media-libs/libraw/ChangeLog
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libraw/ChangeLog?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libraw/ChangeLog?rev=1.1&content-type=text/plain
37
38 Index: ChangeLog
39 ===================================================================
40 # ChangeLog for media-libs/libraw
41 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
42 # $Header: /var/cvsroot/gentoo-x86/media-libs/libraw/ChangeLog,v 1.1 2010/08/22 07:24:56 hollow Exp $
43
44 *libraw-0.9.1 (22 Aug 2010)
45
46 22 Aug 2010; Benedikt Böhm <hollow@g.o> +libraw-0.9.1.ebuild,
47 +files/libraw-0.9.1-pkg-config.patch, +metadata.xml:
48 initial ebuild, bug #327013
49
50
51
52
53 1.1 media-libs/libraw/libraw-0.9.1.ebuild
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libraw/libraw-0.9.1.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libraw/libraw-0.9.1.ebuild?rev=1.1&content-type=text/plain
57
58 Index: libraw-0.9.1.ebuild
59 ===================================================================
60 # Copyright 1999-2010 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/media-libs/libraw/libraw-0.9.1.ebuild,v 1.1 2010/08/22 07:24:56 hollow Exp $
63
64 EAPI="2"
65
66 inherit eutils
67
68 DESCRIPTION="LibRaw is a library for reading RAW files obtained from digital photo cameras"
69 HOMEPAGE="http://www.libraw.org/"
70 SRC_URI="http://www.libraw.org/data/LibRaw-${PV}.tar.gz"
71
72 # Libraw also has it's own license, which is a pdf file and
73 # can be obtained from here:
74 # http://www.libraw.org/data/LICENSE.LibRaw.pdf
75 LICENSE="LGPL-2.1 CDDL"
76 SLOT="0"
77 KEYWORDS="~amd64 ~x86"
78 IUSE="lcms openmp examples"
79
80 RDEPEND=""
81
82 S="${WORKDIR}/LibRaw-${PV}"
83
84 src_prepare() {
85 # Add pkg-config support
86 epatch "${FILESDIR}/libraw-0.9.1-pkg-config.patch" || die "pkg-config patch failed."
87
88 sed -i -e "s:/usr/local/:${D}usr/:g" \
89 -e "/^CFLAGS/ s:-O4:${CFLAGS}:" \
90 Makefile || die "Patching the hell out of manual Makefile failed."
91
92 if use lcms; then
93 sed -i -r '/^#LCMS/ s!^#!!' Makefile || die "Enabling LCMS failed."
94 sed -i -r -e '/^Libs/ s!$! -llcms!' \
95 -e '/^Requires/ s!$! lcms2!' *.pc || die "Adding pkg-config LCMS dependency failed."
96 fi
97
98 if use openmp; then
99 sed -i -r '/^CFLAGS/ s!^(.*)$!\1 -fopenmp!' Makefile || die "Enabling OpenMP failed."
100 sed -i -r '/^Cflags/ s!$! -fopenmp!' *.pc || die "Adding pkg-config OpenMP dependency failed."
101 fi
102 }
103
104 src_install() {
105 # This makefile doesn't even make the directories..
106 mkdir -p "${D}usr/include" "${D}usr/lib" "${D}usr/lib/pkgconfig" \
107 $(use examples && echo "${D}/usr/bin") || die "Directory making failed."
108
109 emake install \
110 $(use examples && echo "install-binaries") || die "Install failed."
111 }