summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/dog/dog-1.7-r4.ebuild')
-rw-r--r--sys-apps/dog/dog-1.7-r4.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-apps/dog/dog-1.7-r4.ebuild b/sys-apps/dog/dog-1.7-r4.ebuild
new file mode 100644
index 000000000000..2bd8abc03dcd
--- /dev/null
+++ b/sys-apps/dog/dog-1.7-r4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Dog is better than cat"
+# the best HOMEPAGE we have.
+HOMEPAGE="http://packages.gentoo.org/package/sys-apps/dog"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc64-solaris"
+IUSE=""
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-check-ctime.diff \
+ "${FILESDIR}"/${PV}-manpage-touchup.patch \
+ "${FILESDIR}"/${P}-64bit-goodness.patch \
+ "${FILESDIR}"/${P}-strfry.patch
+
+ if [[ "${CHOST}" == *-solaris* ]]
+ then
+ sed -i '/gcc.*-o dog/s/$/ -lsocket/' \
+ Makefile || die "sed Makefile failed"
+ fi
+
+ sed -i \
+ -e 's,^CFLAGS,#CFLAGS,' \
+ -e "s,gcc,$(tc-getCC)," \
+ -e 's:-o dog:$(LDFLAGS) -o dog:g' \
+ Makefile || die "sed Makefile failed"
+}
+
+src_install() {
+ dobin dog || die
+ doman dog.1 || die
+ dodoc README AUTHORS || die
+}