You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-board/ccgo/ccgo-0.3.6.5-r1.ebuild

62 lines
1.3 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="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}"
BDEPEND="virtual/pkgconfig
nls? ( sys-devel/gettext )"
PATCHES=(
"${FILESDIR}"/${P}-gcc4.patch
"${FILESDIR}"/${P}-tinfo.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|=.*|=${EPREFIX}/usr/share/pixmaps|" \
-e "/^desktopdir/s|=.*|=${EPREFIX}/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="${EPREFIX}"/usr/share/locale \
$(use_enable nls)
}
src_compile() {
emake AR="$(tc-getAR)"
}