Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/openjpeg: openjpeg-1.5.2.ebuild openjpeg-2.1.0.ebuild ChangeLog
Date: Sun, 24 Aug 2014 15:21:03
Message-Id: 20140824152059.115F23CE3@oystercatcher.gentoo.org
1 ssuominen 14/08/24 15:20:59
2
3 Modified: ChangeLog
4 Added: openjpeg-1.5.2.ebuild openjpeg-2.1.0.ebuild
5 Log:
6 Version bump wrt #518556
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.96 media-libs/openjpeg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/ChangeLog?rev=1.96&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/ChangeLog?rev=1.96&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/ChangeLog?r1=1.95&r2=1.96
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/openjpeg/ChangeLog,v
20 retrieving revision 1.95
21 retrieving revision 1.96
22 diff -u -r1.95 -r1.96
23 --- ChangeLog 23 Mar 2014 17:15:53 -0000 1.95
24 +++ ChangeLog 24 Aug 2014 15:20:59 -0000 1.96
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-libs/openjpeg
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/ChangeLog,v 1.95 2014/03/23 17:15:53 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/ChangeLog,v 1.96 2014/08/24 15:20:59 ssuominen Exp $
30 +
31 +*openjpeg-2.1.0 (24 Aug 2014)
32 +*openjpeg-1.5.2 (24 Aug 2014)
33 +
34 + 24 Aug 2014; Samuli Suominen <ssuominen@g.o> +openjpeg-1.5.2.ebuild,
35 + +openjpeg-2.1.0.ebuild:
36 + Version bump wrt #518556
37
38 23 Mar 2014; Agostino Sarubbo <ago@g.o> openjpeg-2.0.0.ebuild:
39 Stable for sparc, wrt bug #482788
40
41
42
43 1.1 media-libs/openjpeg/openjpeg-1.5.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/openjpeg-1.5.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/openjpeg-1.5.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openjpeg-1.5.2.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/openjpeg-1.5.2.ebuild,v 1.1 2014/08/24 15:20:59 ssuominen Exp $
53
54 EAPI=5
55 inherit multilib cmake-utils multilib-minimal
56
57 DESCRIPTION="An open-source JPEG 2000 library"
58 HOMEPAGE="http://code.google.com/p/openjpeg/"
59 SRC_URI="mirror://sourceforge/${PN}.mirror/${P}.tar.gz"
60
61 LICENSE="BSD-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
64 IUSE="doc static-libs test"
65
66 RDEPEND="media-libs/lcms:2=
67 media-libs/libpng:0=
68 media-libs/tiff:0=
69 sys-libs/zlib:="
70 DEPEND="${RDEPEND}
71 doc? ( app-doc/doxygen )"
72
73 DOCS=( AUTHORS CHANGES NEWS README THANKS )
74
75 RESTRICT="test" #409263
76
77 src_prepare() {
78 # Stop installing LICENSE file, and install CHANGES from DOCS instead:
79 sed -i -e '/INSTALL.*FILES.*DESTINATION.*OPENJPEG_INSTALL_DOC_DIR/d' CMakeLists.txt || die
80 }
81
82 multilib_src_configure() {
83 local mycmakeargs=(
84 -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)"
85 $(cmake-utils_use_build test TESTING)
86 )
87
88 if multilib_is_native_abi; then
89 mycmakeargs+=( $(cmake-utils_use_build doc) )
90 else
91 mycmakeargs+=( -DBUILD_CODEC=OFF )
92 fi
93
94 cmake-utils_src_configure
95
96 if use static-libs; then
97 mycmakeargs=(
98 -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)"
99 $(cmake-utils_use_build test TESTING)
100 -DBUILD_SHARED_LIBS=OFF
101 -DBUILD_CODEC=OFF
102 )
103 BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_configure
104 fi
105 }
106
107 multilib_src_compile() {
108 cmake-utils_src_compile
109
110 if use static-libs; then
111 BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_compile
112 fi
113 }
114
115 multilib_src_install() {
116 if use static-libs; then
117 BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_install
118 #static bins overwritten by shared install
119 fi
120
121 cmake-utils_src_install
122
123 dosym openjpeg-1.5/openjpeg.h /usr/include/openjpeg.h
124 dosym libopenjpeg1.pc /usr/$(get_libdir)/pkgconfig/libopenjpeg.pc
125 }
126
127
128
129 1.1 media-libs/openjpeg/openjpeg-2.1.0.ebuild
130
131 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/openjpeg-2.1.0.ebuild?rev=1.1&view=markup
132 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/openjpeg/openjpeg-2.1.0.ebuild?rev=1.1&content-type=text/plain
133
134 Index: openjpeg-2.1.0.ebuild
135 ===================================================================
136 # Copyright 1999-2014 Gentoo Foundation
137 # Distributed under the terms of the GNU General Public License v2
138 # $Header: /var/cvsroot/gentoo-x86/media-libs/openjpeg/openjpeg-2.1.0.ebuild,v 1.1 2014/08/24 15:20:59 ssuominen Exp $
139
140 EAPI=5
141 inherit cmake-utils multilib
142
143 DESCRIPTION="An open-source JPEG 2000 library"
144 HOMEPAGE="http://code.google.com/p/openjpeg/"
145 SRC_URI="mirror://sourceforge/${PN}.mirror/${P}.tar.gz"
146
147 LICENSE="BSD-2"
148 SLOT="2"
149 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
150 IUSE="doc static-libs test"
151
152 RDEPEND="media-libs/lcms:2=[static-libs?]
153 media-libs/libpng:0=[static-libs?]
154 media-libs/tiff:0=[static-libs?]
155 sys-libs/zlib:=[static-libs?]"
156 DEPEND="${RDEPEND}
157 doc? ( app-doc/doxygen )"
158
159 DOCS=( AUTHORS CHANGES NEWS README THANKS )
160
161 RESTRICT="test" #409263
162
163 src_prepare() {
164 # Stop installing LICENSE file, and install CHANGES from DOCS instead:
165 sed -i -e '/install.*FILES.*DESTINATION.*OPENJPEG_INSTALL_DOC_DIR/d' CMakeLists.txt || die
166 }
167
168 src_configure() {
169 local mycmakeargs=(
170 -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)"
171 $(cmake-utils_use_build doc)
172 $(cmake-utils_use_build test TESTING)
173 )
174
175 cmake-utils_src_configure
176
177 if use static-libs ; then
178 mycmakeargs=(
179 -DOPENJPEG_INSTALL_LIB_DIR="$(get_libdir)"
180 $(cmake-utils_use_build test TESTING)
181 -DBUILD_SHARED_LIBS=OFF
182 )
183 BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_configure
184 fi
185 }
186
187 src_compile() {
188 cmake-utils_src_compile
189
190 if use static-libs ; then
191 BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_compile
192 fi
193 }
194
195 src_install() {
196 if use static-libs ; then
197 BUILD_DIR=${BUILD_DIR}_static cmake-utils_src_install
198 #static bins overwritten by shared install
199 fi
200
201 cmake-utils_src_install
202 }