diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/ccgo/ccgo-0.3.6.5-r1.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/ccgo/ccgo-0.3.6.5-r1.ebuild')
-rw-r--r-- | games-board/ccgo/ccgo-0.3.6.5-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games-board/ccgo/ccgo-0.3.6.5-r1.ebuild b/games-board/ccgo/ccgo-0.3.6.5-r1.ebuild new file mode 100644 index 000000000000..9f19d9aa9e48 --- /dev/null +++ b/games-board/ccgo/ccgo-0.3.6.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils toolchain-funcs flag-o-matic + +DESCRIPTION="An IGS client written in C++" +HOMEPAGE="https://ccdw.org/~cjj/prog/ccgo/" +SRC_URI="https://ccdw.org/~cjj/prog/ccgo/src/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +RDEPEND=" + >=dev-cpp/gconfmm-2.6 + >=dev-cpp/gtkmm-2.4:2.4 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +PATCHES=( + "${FILESDIR}"/${P}-gcc4.patch +) + +src_prepare() { + default + + 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' {} + || die + find . -name '*.cc' -exec sed -i -e 's/(bind(/(sigc::bind(/' {} + || die + + eautoreconf +} + +src_configure() { + econf \ + --localedir=/usr/share/locale \ + $(use_enable nls) +} + +src_compile() { + emake AR="$(tc-getAR)" +} |