# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmget/wmget-0.6.0.ebuild,v 1.11 2014/08/10 20:06:39 slyfox Exp $ inherit toolchain-funcs DESCRIPTION="a libcurl based dockapp for automated downloads" HOMEPAGE="http://amtrickey.net/wmget/" SRC_URI="http://amtrickey.net/download/${P}-src.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="amd64 ppc ~sparc x86" IUSE="" RDEPEND="x11-libs/libX11 x11-libs/libXext x11-libs/libXpm >=net-misc/curl-7.9.7" DEPEND="${RDEPEND} x11-proto/xproto x11-proto/xextproto" S=${WORKDIR}/${PN} src_unpack() { unpack ${A} sed -i -e "s:ar rc:$(tc-getAR) rc:" "${S}"/dockapp/Makefile sed -i 's/$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(DALIB) -o $@/$(CC) $(CFLAGS) $(OBJS) $(DALIB) $(LDFLAGS) -o $@ $(LIBS)/' "${S}"/Makefile sed -i 's/LDFLAGS=/LIBS=/' "${S}"/Makefile } src_compile() { emake -j1 CFLAGS="${CFLAGS}" CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "emake failed." } src_install() { dobin ${PN} doman ${PN}.1 dodoc NEWS README TODO }