Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ncp/
Date: Fri, 22 Feb 2019 20:51:21
Message-Id: 1550868655.fadcab79ce2a55794c009b4c3fb5c4c53dac6985.asturm@gentoo
1 commit: fadcab79ce2a55794c009b4c3fb5c4c53dac6985
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 21 19:57:23 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 22 20:50:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fadcab79
7
8 net-misc/ncp: EAPI7 bump, use HTTPS
9
10 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/11126
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 net-misc/ncp/ncp-1.2.4-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++
15 1 file changed, 42 insertions(+)
16
17 diff --git a/net-misc/ncp/ncp-1.2.4-r1.ebuild b/net-misc/ncp/ncp-1.2.4-r1.ebuild
18 new file mode 100644
19 index 00000000000..6309febf029
20 --- /dev/null
21 +++ b/net-misc/ncp/ncp-1.2.4-r1.ebuild
22 @@ -0,0 +1,42 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit toolchain-funcs
29 +
30 +DESCRIPTION="Utility for copying files in a LAN (npoll, npush)"
31 +HOMEPAGE="https://www.fefe.de/ncp/"
32 +SRC_URI="https://dl.fefe.de/${P}.tar.bz2"
33 +
34 +LICENSE="public-domain" # mail from author, bug 446540
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE="diet"
38 +
39 +DEPEND=">=dev-libs/libowfat-0.28-r1
40 + diet? ( dev-libs/dietlibc )"
41 +
42 +src_prepare() {
43 + default
44 + rm Makefile || die
45 + sed -e '/^ncp:/,+5s:strip:#strip:' \
46 + -i GNUmakefile || die
47 +}
48 +
49 +src_compile() {
50 + emake \
51 + CC="$(use diet && echo "diet -Os ")$(tc-getCC)" \
52 + CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
53 + LDFLAGS="${LDFLAGS}" \
54 + STRIP="#"
55 +}
56 +
57 +src_install() {
58 + dobin ${PN}
59 + dosym ${PN} /usr/bin/npoll
60 + dosym ${PN} /usr/bin/npush
61 +
62 + doman ncp.1 npush.1
63 + dodoc NEWS
64 +}