forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnap-dev-2.0.ebuild
42 lines (35 loc) · 1000 Bytes
/
gnap-dev-2.0.ebuild
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-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_P=${P/gnap-dev/gnap-sources}
S="${WORKDIR}/gnap-${PV}"
DESCRIPTION="Gentoo-based Network Appliance building system development tools"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="
mirror://gentoo/${MY_P}.tar.bz2
!minimal? ( mirror://gentoo/gnap-stageseed-${PV}.tar.bz2
mirror://gentoo/gnap-portagesnapshot-${PV}.tar.bz2 )
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="minimal"
RDEPEND="
>=dev-util/catalyst-2.0_rc40
sys-fs/squashfs-tools:0
app-cdr/cdrtools
"
src_unpack() {
unpack ${MY_P}.tar.bz2
}
src_install() {
dobin gnap_make
doman gnap_make.1
dodir /usr/lib/gnap
tar jc -f ${D}/usr/lib/gnap/gnap-specs.tar.bz2 -C specs .
if ! use minimal; then
insinto /usr/lib/gnap
newins ${DISTDIR}/gnap-stageseed-${PV}.tar.bz2 gnap-stage3seed.tar.bz2
newins ${DISTDIR}/gnap-portagesnapshot-${PV}.tar.bz2 gnap-portagesnapshot.tar.bz2
fi
}