Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/subsurface: subsurface-3.0.2.ebuild metadata.xml subsurface-9999.ebuild Manifest ChangeLog
Date: Thu, 28 Mar 2013 19:17:59
Message-Id: 20130328191756.933CF2171D@flycatcher.gentoo.org
1 tomwij 13/03/28 19:17:56
2
3 Added: subsurface-3.0.2.ebuild metadata.xml
4 subsurface-9999.ebuild Manifest ChangeLog
5 Log:
6 New package for subsurface, an open source dive log program. Ebuild contributed by Martin Gysel aka bearsh, corrected by Aaron Bauman aka B-Man. Fixes bug #462526.
7
8 (Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.1 app-misc/subsurface/subsurface-3.0.2.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/subsurface-3.0.2.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/subsurface-3.0.2.ebuild?rev=1.1&content-type=text/plain
15
16 Index: subsurface-3.0.2.ebuild
17 ===================================================================
18 # Copyright 1999-2013 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/app-misc/subsurface/subsurface-3.0.2.ebuild,v 1.1 2013/03/28 19:17:56 tomwij Exp $
21
22 EAPI="5"
23
24 if [[ ${PV} = *9999* ]]; then
25 EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git"
26 GIT_ECLASS="git-2"
27 KEYWORDS=""
28 SRC_URI=""
29 LIBDC_V="0.3.0"
30 else
31 #SRC_URI="http://git.hohndel.org/?p=subsurface.git;a=snapshot;h=v${PV};sf=tgz -> ${P}.tar.gz"
32 SRC_URI="http://subsurface.hohndel.org/downloads/Subsurface-${PV}.tgz -> ${P}.tar.gz"
33 KEYWORDS="~amd64 ~x86"
34 LIBDC_V="0.3.0"
35 fi
36
37 inherit eutils gnome2-utils ${GIT_ECLASS}
38
39 DESCRIPTION="An open source dive log program"
40 HOMEPAGE="http://subsurface.hohndel.org"
41 LICENSE="GPL-2"
42 SLOT="0"
43 IUSE="doc map usb"
44
45 RDEPEND="dev-libs/glib:2
46 dev-libs/libxml2
47 dev-libs/libxslt
48 dev-libs/libzip
49 gnome-base/gconf:2
50 map? ( sci-geosciences/osm-gps-map )
51 net-libs/libsoup:2.4
52 virtual/libusb
53 x11-libs/cairo
54 x11-libs/gdk-pixbuf:2
55 x11-libs/gtk+:2
56 x11-libs/pango
57 "
58 DEPEND="${RDEPEND}
59 >=dev-libs/libdivecomputer-${LIBDC_V}[static-libs,usb?]
60 virtual/pkgconfig
61 doc? ( app-text/asciidoc )
62 "
63
64 src_unpack() {
65 if [[ ${PV} = *9999* ]]; then
66 git-2_src_unpack
67 elif [[ "${SRC_URI}" == *git* ]]; then
68 unpack ${A}
69 mv subsurface-v${PV}-* ${P} || die "failed to mv the failes to ${P}"
70 else
71 mkdir "${P}" && cd "${P}" || die "failed to create/change to ${P}"
72 unpack ${A}
73 fi
74 }
75
76 src_prepare() {
77 # don't hardcode gcc
78 sed -i 's|CC\=gcc||' Makefile || die "failed to fix gcc hardcode issues"
79 # don't hardcode CFLAGS
80 sed -i 's|CFLAGS\=.*||' Makefile || die "failed to fix hardcoded CFLAGS"
81 # don't call gtk_update_icon_cache
82 sed -i -e "s|\$(gtk_update_icon_cache)|:|" Makefile || die "failed to disable gtk_update_icon_cache call"
83 }
84
85 src_compile() {
86 emake CC=$(tc-getCC)
87 if use doc; then
88 emake doc
89 fi
90 }
91
92 src_install() {
93 default
94
95 # Remove unwanted linguas
96 local del
97 for LANG in $(ls "${D}/usr/share/locale"); do
98 del=1
99 for LINGUA in ${LINGUAS}; do
100 if [[ ${LANG/.UTF-8/} == ${LINGUA} ]]; then
101 if use linguas_${LINGUA}; then
102 del=0
103 fi
104 break
105 fi
106 done
107 if [[ ${del} == 1 ]]; then
108 rm -r "${D}/usr/share/locale/${LANG}" || die "Removing language ${LANG} failed."
109 fi
110 done
111
112 if use doc; then
113 dohtml -r "${S}/Documentation/"
114 fi
115 }
116
117 pkg_postinst() {
118 gnome2_icon_cache_update
119 }
120
121 pkg_postrm() {
122 gnome2_icon_cache_update
123 }
124
125
126
127 1.1 app-misc/subsurface/metadata.xml
128
129 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/metadata.xml?rev=1.1&view=markup
130 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/metadata.xml?rev=1.1&content-type=text/plain
131
132 Index: metadata.xml
133 ===================================================================
134 <?xml version="1.0" encoding="UTF-8"?>
135 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
136 <pkgmetadata>
137 <maintainer>
138 <email>bmangentoo@×××××.com</email>
139 <name>Aaron Bauman</name>
140 <description>Proxy maintainer. Assign bugs to him.</description>
141 </maintainer>
142 <maintainer>
143 <email>TomWij@g.o</email>
144 <name>Tom Wijsman</name>
145 <description>Committer. CC bugs to him.</description>
146 </maintainer>
147 <herd>proxy-maintainers</herd>
148 <longdescription lang="en">
149 An open source dive log program.
150 </longdescription>
151 <use>
152 <flag name="map">Adds support for OpenStreetMap maps that can be used with your dive logs.</flag>
153 </use>
154 </pkgmetadata>
155
156
157
158 1.1 app-misc/subsurface/subsurface-9999.ebuild
159
160 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/subsurface-9999.ebuild?rev=1.1&view=markup
161 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/subsurface-9999.ebuild?rev=1.1&content-type=text/plain
162
163 Index: subsurface-9999.ebuild
164 ===================================================================
165 # Copyright 1999-2013 Gentoo Foundation
166 # Distributed under the terms of the GNU General Public License v2
167 # $Header: /var/cvsroot/gentoo-x86/app-misc/subsurface/subsurface-9999.ebuild,v 1.1 2013/03/28 19:17:56 tomwij Exp $
168
169 EAPI="5"
170
171 if [[ ${PV} = *9999* ]]; then
172 EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git"
173 GIT_ECLASS="git-2"
174 KEYWORDS=""
175 SRC_URI=""
176 LIBDC_V="0.3.0"
177 else
178 #SRC_URI="http://git.hohndel.org/?p=subsurface.git;a=snapshot;h=v${PV};sf=tgz -> ${P}.tar.gz"
179 SRC_URI="http://subsurface.hohndel.org/downloads/Subsurface-${PV}.tgz -> ${P}.tar.gz"
180 KEYWORDS="~amd64 ~x86"
181 LIBDC_V="0.3.0"
182 fi
183
184 inherit eutils gnome2-utils ${GIT_ECLASS}
185
186 DESCRIPTION="An open source dive log program"
187 HOMEPAGE="http://subsurface.hohndel.org"
188 LICENSE="GPL-2"
189 SLOT="0"
190 IUSE="doc map usb"
191
192 RDEPEND="dev-libs/glib:2
193 dev-libs/libxml2
194 dev-libs/libxslt
195 dev-libs/libzip
196 gnome-base/gconf:2
197 map? ( sci-geosciences/osm-gps-map )
198 net-libs/libsoup:2.4
199 virtual/libusb
200 x11-libs/cairo
201 x11-libs/gdk-pixbuf:2
202 x11-libs/gtk+:2
203 x11-libs/pango
204 "
205 DEPEND="${RDEPEND}
206 >=dev-libs/libdivecomputer-${LIBDC_V}[static-libs,usb?]
207 virtual/pkgconfig
208 doc? ( app-text/asciidoc )
209 "
210
211 src_unpack() {
212 if [[ ${PV} = *9999* ]]; then
213 git-2_src_unpack
214 elif [[ "${SRC_URI}" == *git* ]]; then
215 unpack ${A}
216 mv subsurface-v${PV}-* ${P} || die "failed to mv the failes to ${P}"
217 else
218 mkdir "${P}" && cd "${P}" || die "failed to create/change to ${P}"
219 unpack ${A}
220 fi
221 }
222
223 src_prepare() {
224 # don't hardcode gcc
225 sed -i 's|CC\=gcc||' Makefile || die "failed to fix gcc hardcode issues"
226 # don't hardcode CFLAGS
227 sed -i 's|CFLAGS\=.*||' Makefile || die "failed to fix hardcoded CFLAGS"
228 # don't call gtk_update_icon_cache
229 sed -i -e "s|\$(gtk_update_icon_cache)|:|" Makefile || die "failed to disable gtk_update_icon_cache call"
230 }
231
232 src_compile() {
233 emake CC=$(tc-getCC)
234 if use doc; then
235 emake doc
236 fi
237 }
238
239 src_install() {
240 default
241
242 # Remove unwanted linguas
243 local del
244 for LANG in $(ls "${D}/usr/share/locale"); do
245 del=1
246 for LINGUA in ${LINGUAS}; do
247 if [[ ${LANG/.UTF-8/} == ${LINGUA} ]]; then
248 if use linguas_${LINGUA}; then
249 del=0
250 fi
251 break
252 fi
253 done
254 if [[ ${del} == 1 ]]; then
255 rm -r "${D}/usr/share/locale/${LANG}" || die "Removing language ${LANG} failed."
256 fi
257 done
258
259 if use doc; then
260 dohtml -r "${S}/Documentation/"
261 fi
262 }
263
264 pkg_postinst() {
265 gnome2_icon_cache_update
266 }
267
268 pkg_postrm() {
269 gnome2_icon_cache_update
270 }
271
272
273
274 1.1 app-misc/subsurface/Manifest
275
276 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/Manifest?rev=1.1&view=markup
277 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/Manifest?rev=1.1&content-type=text/plain
278
279 Index: Manifest
280 ===================================================================
281 DIST subsurface-3.0.2.tar.gz 984274 SHA256 41dbb3ca00313019d53b259973f18c6e4cc62b9a9a1a8c5cd5e0d5b911be65c2 SHA512 607d71bd74b2bb9c6ca544de43d2e60ab5468482681f4f4df0e82555a5a6a7b5211ba3ad6463cfaac87b1566dd3cc76b8592d08bd56a8774b67d4eea6bba70bc WHIRLPOOL 536aebd2f23677813f7fb840123b8cdc79519e168bb88c2ff5ec82e2f0150535341a6c9c652954512786a1c292d21f948f6a74d8fcd78125a378043236179cfe
282 EBUILD subsurface-3.0.2.ebuild 2329 SHA256 ebe5dbffb93755631acd0375fa6799168a54028f9c72bda4f800591dd2f2973a SHA512 97fb3f9a8fb0933a5135b17bcfa2dad05fad94aed3bedacb7cc030cef2f62b0403dde0d87e416579b2ff61f8f6de25441495881ab6e3ef6be51453535e48086b WHIRLPOOL 3802b30c8eeb6f3e65c411d7c547ae560e10453976187becb0ac31e91778b4aea39f4af2b7e271baa26f6f700b195fac76334bb3b5d83b0bdef72e7210400cef
283 EBUILD subsurface-9999.ebuild 2329 SHA256 ebe5dbffb93755631acd0375fa6799168a54028f9c72bda4f800591dd2f2973a SHA512 97fb3f9a8fb0933a5135b17bcfa2dad05fad94aed3bedacb7cc030cef2f62b0403dde0d87e416579b2ff61f8f6de25441495881ab6e3ef6be51453535e48086b WHIRLPOOL 3802b30c8eeb6f3e65c411d7c547ae560e10453976187becb0ac31e91778b4aea39f4af2b7e271baa26f6f700b195fac76334bb3b5d83b0bdef72e7210400cef
284 MISC ChangeLog 469 SHA256 8c7d0e5fbd3d00f0f9a126b3efc19e963ec7de7062bc3f2da5fbdd560c5957a2 SHA512 3074edd0dc803165552fde81e97dbedb477093e6ebfc19ace36eb346d8ef054f74b496fe6486d6fab4a60e0d0c647477fd0d212264db1a667cf2dfb68420f10e WHIRLPOOL 1913c8b626a1fc25a1dce8daf99f46c46691887ed13987bbbc0f9778e73cf1e90e02815d4a8a96ba8e38ef113ffcba96cfd3827b8282549a4c998393ca7d66b0
285 MISC metadata.xml 704 SHA256 651511ab87f179b00d8e63b952da2b06aa57285ad825b311d4a3d53c2d26fe98 SHA512 32081f05ee28c0c03d74ab491c5ea80a4a00acf8b2c6341539970c57649c62847fe863622051361939ab98d405f64d5338e7e2ade037b14da50cd4a8fdd87d49 WHIRLPOOL 121308c609ff9b997faf2735397ce74eeade4e7bc2c4f44884610d064ce4ab96022661d41799ff6d0b7a8f866415892c390120a90ef14d772b447ac359f121c6
286
287
288
289 1.1 app-misc/subsurface/ChangeLog
290
291 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/ChangeLog?rev=1.1&view=markup
292 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/subsurface/ChangeLog?rev=1.1&content-type=text/plain
293
294 Index: ChangeLog
295 ===================================================================
296 # ChangeLog for app-misc/subsurface
297 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
298 # $Header: /var/cvsroot/gentoo-x86/app-misc/subsurface/ChangeLog,v 1.1 2013/03/28 19:17:56 tomwij Exp $
299
300 *subsurface-3.0.2 (28 Mar 2013)
301 *subsurface-9999 (28 Mar 2013)
302
303 28 Mar 2013; Tom Wijsman <TomWij@g.o> +metadata.xml,
304 +subsurface-3.0.2.ebuild, +subsurface-9999.ebuild:
305 New package for subsurface, an open source dive log program. Ebuild
306 contributed by Martin Gysel aka bearsh, corrected by Aaron Bauman aka B-Man.
307 Fixes bug #462526.