summaryrefslogtreecommitdiff
path: root/net-misc/ipcalc/ipcalc-0.42_p2-r1.ebuild
blob: ebe3896fd5238b1760a0ed9e071e1df9e781500f (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="IP Calculator prints broadcast/network/etc for an IP address and netmask"
HOMEPAGE="http://jodies.de/ipcalc"
SRC_URI="
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
"
S="${WORKDIR}"/${PN}-0.5

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"

RDEPEND=">=dev-lang/perl-5.6.0
	!net-misc/ipcalc-ng"

src_prepare() {
	eapply "${WORKDIR}"/debian/patches/*.patch
	eapply_user
}

src_install() {
	dobin ${PN}
	doman ${PN}.1
	dodoc changelog contributors README.md
}