diff options
author | Jeroen Roovers <jer@gentoo.org> | 2012-09-12 15:51:50 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2012-09-12 15:51:50 +0000 |
commit | 8cd3443cb1c6f9346b855397e22a6c1166a1a4d4 (patch) | |
tree | 3075838f558b0a988b094d32a2dcb1a203dbdee0 /dev-vcs/cssc | |
parent | move dev-haskell/parsec/parsec-2.1.0.1.ebuild ebuild to mirror://hackage (diff) | |
download | gentoo-2-8cd3443cb1c6f9346b855397e22a6c1166a1a4d4.tar.gz gentoo-2-8cd3443cb1c6f9346b855397e22a6c1166a1a4d4.tar.bz2 gentoo-2-8cd3443cb1c6f9346b855397e22a6c1166a1a4d4.zip |
Fix building with GCC 4.7 (bug #422571).
(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs/cssc')
-rw-r--r-- | dev-vcs/cssc/ChangeLog | 10 | ||||
-rw-r--r-- | dev-vcs/cssc/cssc-1.3.0-r1.ebuild | 42 | ||||
-rw-r--r-- | dev-vcs/cssc/files/cssc-1.3.0-gcc47.patch | 10 |
3 files changed, 60 insertions, 2 deletions
diff --git a/dev-vcs/cssc/ChangeLog b/dev-vcs/cssc/ChangeLog index b072ab10a71d..c3032cbdcb6a 100644 --- a/dev-vcs/cssc/ChangeLog +++ b/dev-vcs/cssc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-vcs/cssc -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.13 2011/05/19 22:19:16 jer Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.14 2012/09/12 15:51:50 jer Exp $ + +*cssc-1.3.0-r1 (12 Sep 2012) + + 12 Sep 2012; Jeroen Roovers <jer@gentoo.org> +cssc-1.3.0-r1.ebuild, + +files/cssc-1.3.0-gcc47.patch: + Fix building with GCC 4.7 (bug #422571). 19 May 2011; Jeroen Roovers <jer@gentoo.org> -cssc-1.2.0.ebuild: DEL diff --git a/dev-vcs/cssc/cssc-1.3.0-r1.ebuild b/dev-vcs/cssc/cssc-1.3.0-r1.ebuild new file mode 100644 index 000000000000..1f8c7c1894b3 --- /dev/null +++ b/dev-vcs/cssc/cssc-1.3.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/cssc-1.3.0-r1.ebuild,v 1.1 2012/09/12 15:51:50 jer Exp $ + +EAPI=4 +inherit eutils + +DESCRIPTION="CSSC is the GNU Project's replacement for SCCS" +SRC_URI="mirror://gnu/${PN}/CSSC-${PV}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/cssc/" +SLOT="0" +LICENSE="GPL-3" +S=${WORKDIR}/CSSC-${PV} +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +DOCS=( README NEWS ChangeLog AUTHORS ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc47.patch + + # The large test takes a long time + sed -i tests/Makefile.* \ + -e 's|\([[:space:]]\)test-large |\1|g' \ + || die "sed failed" +} + +src_configure() { + econf --enable-binary --without-valgrind +} + +src_compile() { + emake all +} + +src_test() { + if [[ ${UID} = 0 ]]; then + einfo "The test suite can not be run as root" + else + emake check + fi +} diff --git a/dev-vcs/cssc/files/cssc-1.3.0-gcc47.patch b/dev-vcs/cssc/files/cssc-1.3.0-gcc47.patch new file mode 100644 index 000000000000..4c319016eccd --- /dev/null +++ b/dev-vcs/cssc/files/cssc-1.3.0-gcc47.patch @@ -0,0 +1,10 @@ +--- a/src/file.h ++++ b/src/file.h +@@ -31,6 +31,7 @@ + #define CSSC__FILE_H__ + + #include "filelock.h" ++#include <unistd.h> /* gid_t */ + + enum create_mode { + CREATE_EXCLUSIVE = 001, |