diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2012-06-01 20:39:38 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2012-06-01 20:39:38 +0000 |
commit | 169595ec9ac96825bef076b8ecbc0b2669afd5f7 (patch) | |
tree | fc1956c92769950f0a213685b3ec3dccf2e24408 /dev-cpp/libcult | |
parent | Drop old revision. Set dependency for xqilla to 2.2* (bug #418387). (diff) | |
download | historical-169595ec9ac96825bef076b8ecbc0b2669afd5f7.tar.gz historical-169595ec9ac96825bef076b8ecbc0b2669afd5f7.tar.bz2 historical-169595ec9ac96825bef076b8ecbc0b2669afd5f7.zip |
Fix compilation of dependent libs with gcc-4.7.
Package-Manager: portage-2.1.10.56/cvs/Linux x86_64
Diffstat (limited to 'dev-cpp/libcult')
-rw-r--r-- | dev-cpp/libcult/ChangeLog | 10 | ||||
-rw-r--r-- | dev-cpp/libcult/Manifest | 16 | ||||
-rw-r--r-- | dev-cpp/libcult/files/1.4.6-fix-compilation-with-gcc-4.7.patch | 57 | ||||
-rw-r--r-- | dev-cpp/libcult/libcult-1.4.6-r1.ebuild | 86 |
4 files changed, 159 insertions, 10 deletions
diff --git a/dev-cpp/libcult/ChangeLog b/dev-cpp/libcult/ChangeLog index c294e9875750..e4d03291336e 100644 --- a/dev-cpp/libcult/ChangeLog +++ b/dev-cpp/libcult/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-cpp/libcult -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libcult/ChangeLog,v 1.3 2011/08/26 02:02:32 mattst88 Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libcult/ChangeLog,v 1.4 2012/06/01 20:39:38 dev-zero Exp $ + +*libcult-1.4.6-r1 (01 Jun 2012) + + 01 Jun 2012; Tiziano Müller <dev-zero@gentoo.org> + +files/1.4.6-fix-compilation-with-gcc-4.7.patch, +libcult-1.4.6-r1.ebuild: + Fix compilation of dependent libs with gcc-4.7. 26 Aug 2011; Matt Turner <mattst88@gentoo.org> libcult-1.4.6.ebuild: Added sys-devel/m4 to DEPEND, bug 380663. diff --git a/dev-cpp/libcult/Manifest b/dev-cpp/libcult/Manifest index db71601d38bc..a81e040ce516 100644 --- a/dev-cpp/libcult/Manifest +++ b/dev-cpp/libcult/Manifest @@ -1,16 +1,16 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA1 +AUX 1.4.6-fix-compilation-with-gcc-4.7.patch 1422 RMD160 f8e74f8674611d135eb07bc1aafc4522a0fd698e SHA1 be76c84273f1dffe9aeb5d17be8ad9f977cde257 SHA256 90d1f5af3c75a6f14c5cf12c9f40b833c4207621ab5118a4bb240e8a4ccb8047 DIST libcult-1.4.6.tar.bz2 51036 RMD160 c8740d2184254dc246f0b9f3ed6efef5254bde36 SHA1 a2a440951693e62e458f42532da332e31bdfa041 SHA256 f1b51023880440d3e673bf9c3d2b034f1e16511b33ab006cd9f7d937246e48ac +EBUILD libcult-1.4.6-r1.ebuild 2025 RMD160 0adc000c8161212b7127c7c89901485a90007e9e SHA1 f565dd82d8058f834abee4358daabcff7d471cc0 SHA256 e487edc907ebe031cf21c91260d30c7029b8be3e2b65ab9e4ff12671f34654b5 EBUILD libcult-1.4.6.ebuild 1951 RMD160 9656ab02d19ec3e7da365a26dd039aaf9fe290a2 SHA1 c9416337a7ea1ffba8f3267fb72b6c709ae64725 SHA256 9131190ee62e49b529c994768abc13a9d04bba80135e6e8013ce7876376b1101 -MISC ChangeLog 633 RMD160 1f59dc58ab62ec969080ea5244445da440ae5804 SHA1 264649febe5c11d0b1c572e9d0eb07b6c58f8464 SHA256 b8e72c43d5dda4750aac73748c5734d8851392e99105977764d6caa56ccfff08 +MISC ChangeLog 847 RMD160 ab2b654ac6e4d3ef6a3881f89bb1e906e6fffbe8 SHA1 1700874b8b7ade6e90fca03c791ce81575b3af75 SHA256 bbf5599ba5471df7ef3e479ad6e0ce06a6e1d9b0822ac8bd0ba345a3c31be125 MISC metadata.xml 242 RMD160 bf8fb4bc12761699c440007688f6a746000d600d SHA1 e5458781e3b9a76e136bfeb4a50260c8deb5ed75 SHA256 94e76679af5ab7f70d6e580c503ecf19d9955e64e073c0b8cd5c08a8a18930a7 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) +Version: GnuPG v2.0.19 (GNU/Linux) -iJwEAQEIAAYFAk59AvgACgkQfXuS5UK5QB3EIQP/SCDDLWnLZsFJwo64EBe0TvA3 -0nf0kSUd1QnUVlYQUQO0DP+nUT5XWTn0JofpJ+TD+EDI09F1NWewsCGbVCkCdRQ+ -83njKhxo9AetGqK67S8J6c1V8tNsaPbS4pUJobQLrJPNgeHyDhW+E+QeiJ2DDbBL -R6CveRVdeyvdAHhYbVI= -=CGKr +iEYEARECAAYFAk/JKI8ACgkQGwVqY66cHjCgZQCfdfW5QpSy3dqCACL4sEiRqSBY +oU4An2PDW2DYaaybqwlaZX3pqQFgV8uy +=mpeM -----END PGP SIGNATURE----- diff --git a/dev-cpp/libcult/files/1.4.6-fix-compilation-with-gcc-4.7.patch b/dev-cpp/libcult/files/1.4.6-fix-compilation-with-gcc-4.7.patch new file mode 100644 index 000000000000..f7b169a7cde2 --- /dev/null +++ b/dev-cpp/libcult/files/1.4.6-fix-compilation-with-gcc-4.7.patch @@ -0,0 +1,57 @@ +From 2ef8e0426baad35a3438f9497005c3e3391e23f0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tiziano=20M=C3=BCller?= <tm@dev-zero.ch> +Date: Fri, 1 Jun 2012 10:12:33 +0200 +Subject: [PATCH 2/2] fix compilation with gcc-4.7 + +--- + cult/mm/evptr.hxx | 4 ++-- + cult/mm/shptr.hxx | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/cult/mm/evptr.hxx b/cult/mm/evptr.hxx +index 18f232c..ed0bd93 100644 +--- a/cult/mm/evptr.hxx ++++ b/cult/mm/evptr.hxx +@@ -70,7 +70,7 @@ namespace Cult + Evptr& + operator= (Evptr const& ep) + { +- assign (ep.cp_ ? ep.cp_ : ep.p_, ep.c_); ++ this->assign (ep.cp_ ? ep.cp_ : ep.p_, ep.c_); + + return *this; + } +@@ -79,7 +79,7 @@ namespace Cult + Evptr& + operator= (Evptr<Y> const& ep) + { +- assign (ep.cp_ ? ep.cp_ : ep.p_, ep.c_); ++ this->assign (ep.cp_ ? ep.cp_ : ep.p_, ep.c_); + + return *this; + } +diff --git a/cult/mm/shptr.hxx b/cult/mm/shptr.hxx +index a5e1257..6630b1c 100644 +--- a/cult/mm/shptr.hxx ++++ b/cult/mm/shptr.hxx +@@ -45,7 +45,7 @@ namespace Cult + Shptr& + operator= (Shptr const& ap) + { +- assign (ap); ++ this->assign (ap); + return *this; + } + +@@ -53,7 +53,7 @@ namespace Cult + Shptr& + operator= (Shptr<Y> const& ap) + { +- assign (ap); ++ this->assign (ap); + return *this; + } + +-- +1.7.8.5 + diff --git a/dev-cpp/libcult/libcult-1.4.6-r1.ebuild b/dev-cpp/libcult/libcult-1.4.6-r1.ebuild new file mode 100644 index 000000000000..8e8067a31c01 --- /dev/null +++ b/dev-cpp/libcult/libcult-1.4.6-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="4" + +inherit eutils toolchain-funcs versionator + +DESCRIPTION="A collection of C++ libraries" +HOMEPAGE="http://kolpackov.net/projects/libcult/" +SRC_URI="ftp://kolpackov.net/pub/projects/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +DEPEND="dev-util/build:0.3 + sys-devel/m4" +RDEPEND="" + +src_prepare() { + # never build the examples + sed -i \ + -e 's| $(out_base)/examples/[[:alnum:]\.]*||' \ + -e '/examples\/makefile/d' \ + makefile || die "sed failed" + + epatch "${FILESDIR}/${PV}-fix-compilation-with-gcc-4.7.patch" +} + +src_configure() { + mkdir -p build/{cxx/gnu,ld} + + cat >> build/configuration-dynamic.make <<- EOF +cult_dr := y +cult_threads := y +cult_network := y + EOF + + cat >> build/cxx/configuration-dynamic.make <<- EOF +cxx_id := gnu +cxx_optimize := n +cxx_debug := n +cxx_rpath := n +cxx_pp_extra_options := +cxx_extra_options := ${CXXFLAGS} +cxx_ld_extra_options := ${LDFLAGS} +cxx_extra_libs := +cxx_extra_lib_paths := + EOF + + cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF +cxx_gnu := $(tc-getCXX) +cxx_gnu_libraries := +cxx_gnu_optimization_options := + EOF + + cat >> build/ld/configuration-lib-dynamic.make <<- EOF +ld_lib_type := shared + EOF + + MAKEOPTS+=" verbose=1" +} + +src_install() { + dolib.so cult/libcult.so + + find cult -iname "*.cxx" \ + -o -iname "makefile" \ + -o -iname "*.o" -o -iname "*.d" \ + -o -iname "*.m4" -o -iname "*.l" \ + -o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f + rm -rf cult/arch + + insinto /usr/include + doins -r cult + + dodoc NEWS README documentation/[[:upper:]]* + dohtml -A xhtml -r documentation/* + + if use examples ; then + find examples -name makefile -delete + # preserving symlinks in the examples + cp -dpR examples "${D}/usr/share/doc/${PF}" + fi +} |