1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Dog is better than cat"
9 # the best HOMEPAGE we have.
10 HOMEPAGE="https://packages.gentoo.org/package/sys-apps/dog"
11 SRC_URI="mirror://gentoo/${P}.tar.gz"
15 KEYWORDS="~alpha amd64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris"
18 "${FILESDIR}"/${P}-check-ctime.diff
19 "${FILESDIR}"/${PV}-manpage-touchup.patch
20 "${FILESDIR}"/${P}-64bit-goodness.patch
21 "${FILESDIR}"/${P}-strfry.patch
27 if [[ "${CHOST}" == *-solaris* ]]; then
28 sed -i '/gcc.*-o dog/s/$/ -lsocket -lnsl/' \
29 Makefile || die "sed Makefile failed"
33 -e 's,^CFLAGS,#CFLAGS,' \
34 -e "s,gcc,$(tc-getCC)," \
35 -e 's:-o dog:$(LDFLAGS) -o dog:g' \
36 Makefile || die "sed Makefile failed"