blob: 962adb187376652504617270df00704947019b3a (
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
43
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ncp/ncp-1.2.4.ebuild,v 1.4 2012/05/29 05:24:21 xmw Exp $
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="utility for copying files in a LAN (npoll, npush)"
HOMEPAGE="http://www.fefe.de/ncp/"
SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="diet"
RDEPEND=""
DEPEND=">=dev-libs/libowfat-0.28-r1
diet? ( dev-libs/dietlibc )"
src_prepare() {
rm Makefile || die
sed -e '/^ncp:/,+5s:strip:#strip:' \
-i GNUmakefile || die
}
src_compile() {
emake \
CC="$(use diet && echo "diet -Os ")$(tc-getCC)" \
CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
LDFLAGS="${LDFLAGS}" \
STRIP="#"
}
src_install() {
dobin ${PN}
dosym ${PN} /usr/bin/npoll
dosym ${PN} /usr/bin/npush
doman ncp.1 npush.1
dodoc NEWS
}
|