blob: 53fc3d6c5d64aeb3b81bfe3f7294e602926cbf05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2008 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.9 2008/12/02 10:42:35 s4t4n 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
#Fix LDFLAGS ordering for bug #248641
sed -i 's/$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(DALIB) -o $@/$(CC) $(CFLAGS) $(OBJS) $(DALIB) -o $@ $(LDFLAGS)/' "${S}"/Makefile
}
src_compile() {
emake -j1 CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed."
}
src_install() {
dobin ${PN}
doman ${PN}.1
dodoc NEWS README TODO
}
|