diff options
author | 2015-12-31 17:34:42 -0500 | |
---|---|---|
committer | 2015-12-31 17:35:40 -0500 | |
commit | 2df150c18b6db01faf4e0a7aedd191315e3fbf3f (patch) | |
tree | 067eda8e9dabc82c5df45eddd261cf4b26bd5526 /games-board/ccgo/ccgo-0.3.6.5.ebuild | |
parent | dev-perl/Data-Dump-Streamer: Version bump; remove old (diff) | |
download | gentoo-2df150c18b6db01faf4e0a7aedd191315e3fbf3f.tar.gz gentoo-2df150c18b6db01faf4e0a7aedd191315e3fbf3f.tar.bz2 gentoo-2df150c18b6db01faf4e0a7aedd191315e3fbf3f.zip |
games-board/ccgo: version bump and fix building with libsigc++-2.6
Package-Manager: portage-2.2.24
Diffstat (limited to 'games-board/ccgo/ccgo-0.3.6.5.ebuild')
-rw-r--r-- | games-board/ccgo/ccgo-0.3.6.5.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games-board/ccgo/ccgo-0.3.6.5.ebuild b/games-board/ccgo/ccgo-0.3.6.5.ebuild new file mode 100644 index 000000000000..bb3959fc174e --- /dev/null +++ b/games-board/ccgo/ccgo-0.3.6.5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils toolchain-funcs flag-o-matic games + +DESCRIPTION="An IGS client written in C++" +HOMEPAGE="http://ccdw.org/~cjj/prog/ccgo/" +SRC_URI="http://ccdw.org/~cjj/prog/ccgo/src/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="nls" + +RDEPEND=">=dev-cpp/gtkmm-2.4:2.4 + >=dev-cpp/gconfmm-2.6 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e '/^Encoding/d' \ + -e '/^Categories/ { s/Application;//; s/$/GTK;/ }' \ + ccgo.desktop.in || die + sed -i \ + -e '/^localedir/s/=.*/=@localedir@/' \ + -e '/^appicondir/s:=.*:=/usr/share/pixmaps:' \ + -e '/^desktopdir/s:=.*:=/usr/share/applications:' \ + Makefile.am || die + # cargo cult from bug #569528 + append-cxxflags -std=c++11 -fpermissive + find . -name '*.hh' -exec sed -i -e '/sigc++\/object.h/d' {} + + find . -name '*.cc' -exec sed -i -e 's/(bind(/(sigc::bind(/' {} + + epatch "${FILESDIR}"/${P}-gcc4.patch + eautoreconf +} + +src_configure() { + egamesconf \ + --localedir=/usr/share/locale \ + $(use_enable nls) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + prepgamesdirs +} |