/[gentoo-x86]/dev-cpp/libcult/libcult-1.4.6-r1.ebuild
Gentoo

Contents of /dev-cpp/libcult/libcult-1.4.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Feb 23 15:51:12 2013 UTC (13 months, 3 weeks ago) by ago
Branch: MAIN
Changes since 1.5: +3 -3 lines
Add ~ppc64, wrt bug #455960

(Portage version: 2.1.11.50/cvs/Linux ppc64, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/libcult/libcult-1.4.6-r1.ebuild,v 1.5 2012/11/30 15:12:32 ago Exp $
4
5 EAPI="4"
6
7 inherit eutils toolchain-funcs versionator
8
9 DESCRIPTION="A collection of C++ libraries"
10 HOMEPAGE="http://kolpackov.net/projects/libcult/"
11 SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~arm ppc ~ppc64 x86"
15 IUSE="examples"
16
17 DEPEND="dev-util/build:0.3
18 sys-devel/m4"
19 RDEPEND=""
20
21 src_prepare() {
22 # never build the examples
23 sed -i \
24 -e 's| $(out_base)/examples/[[:alnum:]\.]*||' \
25 -e '/examples\/makefile/d' \
26 makefile || die "sed failed"
27
28 epatch "${FILESDIR}/${PV}-fix-compilation-with-gcc-4.7.patch"
29 }
30
31 src_configure() {
32 mkdir -p build/{cxx/gnu,ld}
33
34 cat >> build/configuration-dynamic.make <<- EOF
35 cult_dr := y
36 cult_threads := y
37 cult_network := y
38 EOF
39
40 cat >> build/cxx/configuration-dynamic.make <<- EOF
41 cxx_id := gnu
42 cxx_optimize := n
43 cxx_debug := n
44 cxx_rpath := n
45 cxx_pp_extra_options :=
46 cxx_extra_options := ${CXXFLAGS}
47 cxx_ld_extra_options := ${LDFLAGS}
48 cxx_extra_libs :=
49 cxx_extra_lib_paths :=
50 EOF
51
52 cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF
53 cxx_gnu := $(tc-getCXX)
54 cxx_gnu_libraries :=
55 cxx_gnu_optimization_options :=
56 EOF
57
58 cat >> build/ld/configuration-lib-dynamic.make <<- EOF
59 ld_lib_type := shared
60 EOF
61
62 MAKEOPTS+=" verbose=1"
63 }
64
65 src_install() {
66 dolib.so cult/libcult.so
67
68 find cult -iname "*.cxx" \
69 -o -iname "makefile" \
70 -o -iname "*.o" -o -iname "*.d" \
71 -o -iname "*.m4" -o -iname "*.l" \
72 -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
73 rm -rf cult/arch
74
75 insinto /usr/include
76 doins -r cult
77
78 dodoc NEWS README documentation/[[:upper:]]*
79 dohtml -A xhtml -r documentation/*
80
81 if use examples ; then
82 find examples -name makefile -delete
83 # preserving symlinks in the examples
84 cp -dpR examples "${D}/usr/share/doc/${PF}"
85 fi
86 }

  ViewVC Help
Powered by ViewVC 1.1.20