1 |
commit: c9996364e0fc6014365fcc138d13737603915610 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 2 09:00:25 2017 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 2 09:00:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9996364 |
7 |
|
8 |
media-libs/rply: EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
media-libs/rply/rply-1.01-r1.ebuild | 23 +++++++++++++---------- |
13 |
1 file changed, 13 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/media-libs/rply/rply-1.01-r1.ebuild b/media-libs/rply/rply-1.01-r1.ebuild |
16 |
index f29daf7..5bfefd5 100644 |
17 |
--- a/media-libs/rply/rply-1.01-r1.ebuild |
18 |
+++ b/media-libs/rply/rply-1.01-r1.ebuild |
19 |
@@ -1,10 +1,10 @@ |
20 |
-# Copyright 1999-2012 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
-EAPI="4" |
26 |
+EAPI=6 |
27 |
|
28 |
-inherit cmake-utils eutils |
29 |
+inherit cmake-utils |
30 |
|
31 |
DESCRIPTION="A library to read and write PLY files" |
32 |
HOMEPAGE="http://w3.impa.br/~diego/software/rply/" |
33 |
@@ -20,6 +20,13 @@ IUSE="doc" |
34 |
DEPEND="" |
35 |
RDEPEND="${DEPEND}" |
36 |
|
37 |
+PATCHES=( |
38 |
+ # Use int16_t and int32_t instead of assuming e.g. that sizeof(long) == 4 |
39 |
+ "${FILESDIR}/${P}-stdint.h.patch" |
40 |
+ # Switch LC_NUMERIC locale to "C" to ensure "." is the decimal separator |
41 |
+ "${FILESDIR}/${P}-lc_numeric.patch" |
42 |
+) |
43 |
+ |
44 |
pkg_setup() { |
45 |
use doc && HTML_DOCS="manual/*" |
46 |
} |
47 |
@@ -27,12 +34,8 @@ pkg_setup() { |
48 |
src_prepare() { |
49 |
# rply doesn't have *any* build system - not even a Makefile! |
50 |
# For simplicity, use the cmake file that Fedora maintainers have created |
51 |
- cp "${FILESDIR}/rply_CMakeLists.txt" CMakeLists.txt |
52 |
- mkdir -p CMake/export |
53 |
+ cp "${FILESDIR}/rply_CMakeLists.txt" CMakeLists.txt || die |
54 |
+ mkdir -p CMake/export || die |
55 |
|
56 |
- # Use int16_t and int32_t instead of assuming e.g. that sizeof(long) == 4 |
57 |
- epatch "${FILESDIR}/${P}-stdint.h.patch" |
58 |
- |
59 |
- # Switch LC_NUMERIC locale to "C" to ensure "." is the decimal separator |
60 |
- epatch "${FILESDIR}/${P}-lc_numeric.patch" |
61 |
+ cmake-utils_src_prepare |
62 |
} |