Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/systemd-boot/
Date: Fri, 04 Nov 2016 16:23:54
Message-Id: 1478276627.a2b40dadc2b68b344896b8e7ac49dab9aabe1c4e.floppym@gentoo
1 commit: a2b40dadc2b68b344896b8e7ac49dab9aabe1c4e
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 16:23:12 2016 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 16:23:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2b40dad
7
8 sys-boot/systemd-boot: bump to 232
9
10 Package-Manager: portage-2.3.2_p4
11
12 sys-boot/systemd-boot/Manifest | 1 +
13 sys-boot/systemd-boot/systemd-boot-232.ebuild | 111 ++++++++++++++++++++++++++
14 2 files changed, 112 insertions(+)
15
16 diff --git a/sys-boot/systemd-boot/Manifest b/sys-boot/systemd-boot/Manifest
17 index b8044e3..e2bcea5 100644
18 --- a/sys-boot/systemd-boot/Manifest
19 +++ b/sys-boot/systemd-boot/Manifest
20 @@ -1 +1,2 @@
21 DIST systemd-231.tar.gz 4381464 SHA256 899733ad6c157cedbb89aec4efe3bc824dcfd65a1d6f6bebc7b043f7924e39b4 SHA512 199fa33a0494d1d15f7fe3c796fe14913ad386766571d4d3fbb1cb1c446e04f6d06a965213be4c594a7183e810fc2fd4804fe14f64f21b0a1278b717889811c6 WHIRLPOOL 7779291e9fb9873cb1773b8583cf6d4b7dec837363ea89c4a73c1e397a76752b66f8b57d8fc4d9cef768cc1855b5e325ad88a8a69eb5380aa924e0a6dead41b1
22 +DIST systemd-232.tar.gz 4529048 SHA256 1172c7c7d5d72fbded53186e7599d5272231f04cc8b72f9a0fb2c5c20dfc4880 SHA512 5dbe52f655ec2901b1bfbb1256f83ba26bc82c13097ac9a82e4fbb97886551530f9888c369592f1b410cfff40d6d127b985533a3e29cfab5b30d18739ee5dcb1 WHIRLPOOL f2a1499584c5b5c4d9e945e45ef5e0eef2e8be77acdbd7b3b29a8c8b62dc7a10c162a856df7107c19e2eb19e63bc43a33433686472ca30909237981683cbe980
23
24 diff --git a/sys-boot/systemd-boot/systemd-boot-232.ebuild b/sys-boot/systemd-boot/systemd-boot-232.ebuild
25 new file mode 100644
26 index 00000000..03bc1dd
27 --- /dev/null
28 +++ b/sys-boot/systemd-boot/systemd-boot-232.ebuild
29 @@ -0,0 +1,111 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +inherit autotools eutils toolchain-funcs
37 +
38 +DESCRIPTION="UEFI boot manager from systemd (formerly gummiboot)"
39 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/"
40 +SRC_URI="https://github.com/systemd/systemd/archive/v${PV}.tar.gz -> systemd-${PV}.tar.gz"
41 +
42 +LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE=""
46 +
47 +COMMON_DEPEND="
48 + >=sys-apps/util-linux-2.27.1:0=
49 + sys-libs/libcap:=
50 +"
51 +DEPEND="${COMMON_DEPEND}
52 + app-text/docbook-xml-dtd:4.2
53 + app-text/docbook-xml-dtd:4.5
54 + app-text/docbook-xsl-stylesheets
55 + dev-libs/libxslt:0
56 + >=dev-util/intltool-0.50
57 + >=sys-boot/gnu-efi-3.0.2
58 +"
59 +RDEPEND="${COMMON_DEPEND}
60 + !sys-apps/systemd
61 +"
62 +
63 +S="${WORKDIR}/systemd-${PV}"
64 +
65 +src_prepare() {
66 + default
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + local myeconfargs=(
72 + EFI_CC="$(tc-getPROG "EFI_CC CC" gcc)"
73 + cc_cv_CFLAGS__flto=no
74 + cc_cv_LDFLAGS__Wl__fuse_ld_gold=no
75 + --enable-blkid
76 + --enable-efi
77 + --enable-gnuefi
78 + --disable-acl
79 + --disable-apparmor
80 + --disable-audit
81 + --disable-bzip2
82 + --disable-elfutils
83 + --disable-gcrypt
84 + --disable-gnutls
85 + --disable-kmod
86 + --disable-libcryptsetup
87 + --disable-libcurl
88 + --disable-libidn
89 + --disable-lz4
90 + --disable-microhttpd
91 + --disable-myhostname
92 + --disable-pam
93 + --disable-qrencode
94 + --disable-seccomp
95 + --disable-selinux
96 + --disable-xkbcommon
97 + --disable-xz
98 + --disable-zlib
99 + )
100 + econf "${myeconfargs[@]}"
101 +}
102 +
103 +src_compile() {
104 + local targets=(
105 + libsystemd-shared.la
106 + bootctl
107 + man/bootctl.1
108 + man/kernel-install.8
109 + '$(bootlib_DATA)'
110 + )
111 + emake built-sources
112 + echo "gentoo: ${targets[*]}" | emake -f Makefile -f - gentoo
113 +}
114 +
115 +src_install() {
116 + local args=(
117 + DESTDIR="${D%/}"
118 +
119 + # libsystemd-shared
120 + rootlibexec_LTLIBRARIES=libsystemd-shared.la
121 + install-rootlibexecLTLIBRARIES
122 +
123 + # bootctl
124 + bin_PROGRAMS=bootctl
125 + install-binPROGRAMS
126 +
127 + # kernel-install
128 + install-dist_binSCRIPTS
129 + install-dist_kernelinstallSCRIPTS
130 +
131 + man_MANS="man/bootctl.1 man/kernel-install.8"
132 + install-man1
133 + install-man8
134 +
135 + install-bootlibDATA
136 + )
137 + emake "${args[@]}"
138 + prune_libtool_files
139 + einstalldocs
140 +}