Сравнение aboot-1.0_pre20040408-r3 с aboot-2.0_pre20210801

/usr/portage/sys-boot/aboot/aboot-2.0_pre20210801.ebuild 2023-10-09 14:52:35.444368500 +0300
5 5

  
6 6
inherit toolchain-funcs
7 7

  
8
KERN_VER="2.6.22"
8
if [[ ${PV} = 9999* ]]; then
9
	EGIT_REPO_URI="https://github.com/mattst88/${PN}.git"
10
	inherit git-r3
11
else
12
	COMMIT_ID="dde7f7b85f7631668f1da7c0b0ecf7ddbbde004e"
13
	SRC_URI="https://github.com/mattst88/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
14
	S="${WORKDIR}/${PN}-${COMMIT_ID}"
15
	KEYWORDS="-* ~alpha"
16
fi
9 17

  
10 18
DESCRIPTION="Alpha Linux boot loader for SRM"
11
HOMEPAGE="http://aboot.sourceforge.net/"
12
SRC_URI="http://aboot.sourceforge.net/tarballs/${P}.tar.bz2
13
	mirror://gentoo/gentoo-headers-base-${KERN_VER}.tar.bz2
14
	mirror://gentoo/${PN}_gentoo.diff.bz2
15
	https://dev.gentoo.org/~armin76/dist/${PN}_gentoo.diff.bz2"
19
HOMEPAGE="https://github.com/mattst88/aboot https://sourceforge.net/projects/aboot/"
16 20

  
17 21
LICENSE="GPL-2"
18 22
SLOT="0"
19
KEYWORDS="-* ~alpha"
20
IUSE=""
21 23

  
22
DEPEND=""
23
RDEPEND=""
24

  
25
src_unpack() {
26
	unpack ${A}
27
	# setup local copies of kernel headers since we rely so
28
	# heavily on linux internals.
29
	mv gentoo-headers-base-${KERN_VER}/include/{linux,asm-generic,asm-alpha} "${S}"/include/ || die
30
	cd "${S}"/include
31
	ln -s asm-alpha asm || die
32
	touch linux/config.h || die
33
}
34

  
35
src_prepare() {
36
	eapply "${FILESDIR}/aboot-gcc-3.4.patch"
37
	eapply "${FILESDIR}/aboot-pt_note.patch"
38
	# Bug 364697
39
	eapply "${FILESDIR}/aboot-define_stat_only_in_userspace.patch"
40
	eapply "${FILESDIR}"/aboot-respect-AR.patch
41
	eapply "${FILESDIR}"/aboot-gnu90.patch
42

  
43
	# Modified patch from Debian to add netboot support
44
	eapply "${WORKDIR}"/aboot_gentoo.diff
45

  
46
	eapply_user
47
}
24
BDEPEND="app-text/docbook-sgml-utils"
48 25

  
49 26
src_compile() {
50
	# too many problems with parallel building
51
	emake -j1 AR="$(tc-getAR)" CC="$(tc-getCC)" LD="$(tc-getLD)"
27
	emake AR="$(tc-getAR)" CC="$(tc-getCC)" LD="$(tc-getLD)" \
28
		all netabootwrap
29

  
30
	einfo "Building man pages"
31
	emake -C doc/man
52 32
}
53 33

  
54 34
src_install() {
55 35
	dodir /boot /sbin /usr/share/man/man{1,5,8}
56
	make \
57
		root="${D}" \
58
		bindir="${D}"/sbin \
59
		bootdir="${D}"/boot \
60
		mandir="${D}"/usr/share/man \
61
		install
36
	emake root="${D}" install
62 37

  
63 38
	insinto /boot
64 39
	doins net_aboot.nh
Спасибо!