Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/libcult: libcult-1.4.6-r1.ebuild ChangeLog
Date: Fri, 01 Jun 2012 20:39:47
Message-Id: 20120601203938.51F512004B@flycatcher.gentoo.org
1 dev-zero 12/06/01 20:39:38
2
3 Modified: ChangeLog
4 Added: libcult-1.4.6-r1.ebuild
5 Log:
6 Fix compilation of dependent libs with gcc-4.7.
7
8 (Portage version: 2.1.10.56/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 dev-cpp/libcult/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/libcult/ChangeLog?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/libcult/ChangeLog?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/libcult/ChangeLog?r1=1.3&r2=1.4
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/libcult/ChangeLog,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- ChangeLog 26 Aug 2011 02:02:32 -0000 1.3
24 +++ ChangeLog 1 Jun 2012 20:39:38 -0000 1.4
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-cpp/libcult
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libcult/ChangeLog,v 1.3 2011/08/26 02:02:32 mattst88 Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libcult/ChangeLog,v 1.4 2012/06/01 20:39:38 dev-zero Exp $
31 +
32 +*libcult-1.4.6-r1 (01 Jun 2012)
33 +
34 + 01 Jun 2012; Tiziano Müller <dev-zero@g.o>
35 + +files/1.4.6-fix-compilation-with-gcc-4.7.patch, +libcult-1.4.6-r1.ebuild:
36 + Fix compilation of dependent libs with gcc-4.7.
37
38 26 Aug 2011; Matt Turner <mattst88@g.o> libcult-1.4.6.ebuild:
39 Added sys-devel/m4 to DEPEND, bug 380663.
40
41
42
43 1.1 dev-cpp/libcult/libcult-1.4.6-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/libcult/libcult-1.4.6-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/libcult/libcult-1.4.6-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libcult-1.4.6-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/libcult/libcult-1.4.6-r1.ebuild,v 1.1 2012/06/01 20:39:38 dev-zero Exp $
53
54 EAPI="4"
55
56 inherit eutils toolchain-funcs versionator
57
58 DESCRIPTION="A collection of C++ libraries"
59 HOMEPAGE="http://kolpackov.net/projects/libcult/"
60 SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="examples"
65
66 DEPEND="dev-util/build:0.3
67 sys-devel/m4"
68 RDEPEND=""
69
70 src_prepare() {
71 # never build the examples
72 sed -i \
73 -e 's| $(out_base)/examples/[[:alnum:]\.]*||' \
74 -e '/examples\/makefile/d' \
75 makefile || die "sed failed"
76
77 epatch "${FILESDIR}/${PV}-fix-compilation-with-gcc-4.7.patch"
78 }
79
80 src_configure() {
81 mkdir -p build/{cxx/gnu,ld}
82
83 cat >> build/configuration-dynamic.make <<- EOF
84 cult_dr := y
85 cult_threads := y
86 cult_network := y
87 EOF
88
89 cat >> build/cxx/configuration-dynamic.make <<- EOF
90 cxx_id := gnu
91 cxx_optimize := n
92 cxx_debug := n
93 cxx_rpath := n
94 cxx_pp_extra_options :=
95 cxx_extra_options := ${CXXFLAGS}
96 cxx_ld_extra_options := ${LDFLAGS}
97 cxx_extra_libs :=
98 cxx_extra_lib_paths :=
99 EOF
100
101 cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF
102 cxx_gnu := $(tc-getCXX)
103 cxx_gnu_libraries :=
104 cxx_gnu_optimization_options :=
105 EOF
106
107 cat >> build/ld/configuration-lib-dynamic.make <<- EOF
108 ld_lib_type := shared
109 EOF
110
111 MAKEOPTS+=" verbose=1"
112 }
113
114 src_install() {
115 dolib.so cult/libcult.so
116
117 find cult -iname "*.cxx" \
118 -o -iname "makefile" \
119 -o -iname "*.o" -o -iname "*.d" \
120 -o -iname "*.m4" -o -iname "*.l" \
121 -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
122 rm -rf cult/arch
123
124 insinto /usr/include
125 doins -r cult
126
127 dodoc NEWS README documentation/[[:upper:]]*
128 dohtml -A xhtml -r documentation/*
129
130 if use examples ; then
131 find examples -name makefile -delete
132 # preserving symlinks in the examples
133 cp -dpR examples "${D}/usr/share/doc/${PF}"
134 fi
135 }