/[gentoo-x86]/media-libs/rply/rply-1.01-r1.ebuild
Gentoo

Contents of /media-libs/rply/rply-1.01-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon May 21 19:06:42 2012 UTC (7 years, 8 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Need eutils for epatch.

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/rply/rply-1.01-r1.ebuild,v 1.2 2012/02/17 20:55:06 tetromino Exp $
4
5 EAPI="4"
6
7 inherit cmake-utils eutils
8
9 DESCRIPTION="A library to read and write PLY files"
10 HOMEPAGE="http://w3.impa.br/~diego/software/rply/"
11 # SRC_URI="http://w3.impa.br/~diego/software/rply/${P}.tar.gz"
12 # Tarball no longer available from upstream website
13 SRC_URI="http://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}.tar.gz"
14
15 LICENSE="MIT"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="doc"
19
20 DEPEND=""
21 RDEPEND="${DEPEND}"
22
23 pkg_setup() {
24 use doc && HTML_DOCS="manual/*"
25 }
26
27 src_prepare() {
28 # rply doesn't have *any* build system - not even a Makefile!
29 # For simplicity, use the cmake file that Fedora maintainers have created
30 cp "${FILESDIR}/rply_CMakeLists.txt" CMakeLists.txt
31 mkdir -p CMake/export
32
33 # Use int16_t and int32_t instead of assuming e.g. that sizeof(long) == 4
34 epatch "${FILESDIR}/${P}-stdint.h.patch"
35
36 # Switch LC_NUMERIC locale to "C" to ensure "." is the decimal separator
37 epatch "${FILESDIR}/${P}-lc_numeric.patch"
38 }

  ViewVC Help
Powered by ViewVC 1.1.20