sys-boot/plymouth-calculate-plugin: обновление

* добавленая новая версия
pull/2/head
idziubenko 2 years ago
parent fbd4aca982
commit ba054010f1

@ -1,3 +1,4 @@
DIST plymouth-0.9.4.tar.xz 1103496 BLAKE2B abad2cefb89e9d17b77113396d7203090544759b3dd7f73f67153d9f126db28e5366d36aa11e2335566bf4046bebd50d8d9dd47c75634446fb3a0314cd458925 SHA512 83eb2de7e6d0980e9f7fa4e0b0f20c46a8238051d84bc38dbbb5dfa438e41c1a39846dcd652374256d9f1fe79967b154a3576cd9c433ef816b6c962be2d31e93
DIST plymouth-0.9.5.tar.xz 1186200 BLAKE2B 8fd073703773fcf7f3e26454c860f094fb4b3d712c56c9df6716ef11815a79f7d5b078ab6c6567b76421026d84a086f95865bf9f3e4ae6363cb1ffc2caa68537 SHA512 686220e8d5b1a8be298156786d979d0e3fb9e010b930d0e8082a2bb152cf07c1bf493d820c243838a1771ee859dc0b4723bd9f10ee434a94a096ce9236c36ce9
DIST plymouth-5b91b9ed84cc91759c986634a4d64d474e6092cf.tar.gz 1132049 BLAKE2B 0e224aad93fef4039a1a023ece051a64e1fa854f29a814957673c7ba68eb3f2348ca075f59a17f7bad692152ddcc402b2246db413886ac73ad77a36a6fb2cb3c SHA512 3d81ce379d0a11af5b557bfe86e336a40e5abdbb6dbd6cd5e046ede9a46cf2782af75b8e32e3fb2232b8a22efee1890ecb47394742041d9dcb499b38476a814c
DIST plymouth-calculate-plugin-5b91b9ed84cc91759c986634a4d64d474e6092cf.tar.gz 29909 BLAKE2B b3054ec8ababfc2ede5c13abd0d5da680480cdaf48ca2524958ac064d179d2318207db1d989dc083d27fb7dec9e569c16ad17e6bf7b2829b8401338bec3f5f20 SHA512 a85079267484e8a533e72ee33e1eaceeb4ebe2571a70b9889b3b5ea65549165cfa6d1fe0ea72a704bc702df2897de0b131d94b050000b6946f5e0228bb7e1232

@ -1,44 +1,58 @@
# Copyright 1999-2018 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic
# SRC_URI="https://dev.gentoo.org/~aidecoe/distfiles/${CATEGORY}/${PN}/gentoo-logo.png"
MY_P=plymouth-${PV}
MY_PN=plymouth
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://anongit.freedesktop.org/git/plymouth"
EGIT_REPO_URI="https://gitlab.freedesktop.org/plymouth/plymouth"
else
PRE_RELEASE_SHA="5b91b9ed84cc91759c986634a4d64d474e6092cf"
SRC_URI="${SRC_URI} https://gitlab.freedesktop.org/${MY_PN}/${MY_PN}/-/archive/${PRE_RELEASE_SHA}/${MY_PN}-${PRE_RELEASE_SHA}.tar.gz"
SRC_URI="${SRC_URI} https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PRE_RELEASE_SHA}/${PN}-${PRE_RELEASE_SHA}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
S="${WORKDIR}/${MY_PN}-${PRE_RELEASE_SHA}"
S="${WORKDIR}/${PN}-${PRE_RELEASE_SHA}"
fi
inherit autotools readme.gentoo-r1 systemd toolchain-funcs
inherit autotools readme.gentoo-r1 systemd
DESCRIPTION="Calculate plugin for plymouth"
HOMEPAGE="https://www.calculate-linux.org"
DESCRIPTION="Graphical boot animation (splash) and logger"
HOMEPAGE="https://cgit.freedesktop.org/plymouth/"
LICENSE="GPL-2"
SLOT="0"
IUSE="debug gdm +gtk +libkms +pango +split-usr static-libs +udev"
# IUSE="debug gdm +gtk +libkms +pango +split-usr static-libs +udev"
IUSE="debug +drm +gtk +pango +split-usr static-libs +udev"
CDEPEND="
~sys-boot/${MY_P}[debug?,udev?,gtk?,libkms?,pango?,split-usr?,static-libs?]
>=media-libs/libpng-1.2.16:=
drm? ( x11-libs/libdrm )
gtk? (
dev-libs/glib:2
>=x11-libs/gtk+-3.14:3
x11-libs/cairo
)
pango? ( >=x11-libs/pango-1.21 )
"
DEPEND="${CDEPEND}
elibc_musl? ( sys-libs/rpmatch-standalone )
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
virtual/pkgconfig
"
# Block due bug #383067
RDEPEND="${CDEPEND}
virtual/udev
udev? ( virtual/udev )
!<sys-kernel/dracut-0.37-r3
"
DOC_CONTENTS="
Follow the following instructions to set up Plymouth:\n
https://wiki.gentoo.org/wiki/Plymouth#Configuration
"
PATCHES=(
"${FILESDIR}"/0.9.3-glibc-sysmacros.patch
)
@ -46,6 +60,7 @@ PATCHES=(
#S="${WORKDIR}/${MY_P}"
src_prepare() {
use elibc_musl && append-ldflags -lrpmatch
default
cp ${FILESDIR}/0.9.6_pre20211225-plugin.c ${S}/src/plugins/splash/two-step/plugin.c
sed -i 's/two-step/calculate/g' ${S}/src/plugins/splash/two-step/Makefile.*
@ -53,7 +68,6 @@ src_prepare() {
eautoreconf
}
src_configure() {
local myconf=(
--with-system-root-install=no
@ -65,10 +79,10 @@ src_configure() {
$(use_enable !static-libs shared)
$(use_enable static-libs static)
$(use_enable debug tracing)
$(use_enable gtk gtk)
$(use_enable libkms drm)
$(use_enable drm)
$(use_enable gtk)
$(use_enable pango)
$(use_enable udev)
$(use_with udev)
)
econf "${myconf[@]}"
}
@ -98,3 +112,11 @@ src_install() {
newins ${FILESDIR}/0.9.6_pre20211225-calculate.plymouth calculate.plymouth
}
pkg_postinst() {
readme.gentoo_print_elog
if ! has_version "sys-kernel/dracut" && ! has_version "sys-kernel/genkernel-next[plymouth]"; then
ewarn "If you want initramfs builder with plymouth support, please emerge"
ewarn "sys-kernel/dracut or sys-kernel/genkernel-next[plymouth]."
fi
}

@ -0,0 +1,100 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic
MY_P=plymouth-${PV}
MY_PN=plymouth
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://anongit.freedesktop.org/git/plymouth"
else
PRE_RELEASE_SHA="5b91b9ed84cc91759c986634a4d64d474e6092cf"
SRC_URI="${SRC_URI} https://gitlab.freedesktop.org/${MY_PN}/${MY_PN}/-/archive/${PRE_RELEASE_SHA}/${MY_PN}-${PRE_RELEASE_SHA}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
S="${WORKDIR}/${MY_PN}-${PRE_RELEASE_SHA}"
fi
inherit autotools readme.gentoo-r1 systemd toolchain-funcs
DESCRIPTION="Calculate plugin for plymouth"
HOMEPAGE="https://www.calculate-linux.org"
LICENSE="GPL-2"
SLOT="0"
IUSE="debug gdm +gtk +libkms +pango +split-usr static-libs +udev"
CDEPEND="
~sys-boot/${MY_P}[debug?,udev?,gtk?,libkms?,pango?,split-usr?,static-libs?]
"
DEPEND="${CDEPEND}
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
virtual/pkgconfig
"
RDEPEND="${CDEPEND}
virtual/udev
!<sys-kernel/dracut-0.37-r3
"
PATCHES=(
"${FILESDIR}"/0.9.3-glibc-sysmacros.patch
)
#S="${WORKDIR}/${MY_P}"
src_prepare() {
default
cp ${FILESDIR}/0.9.6_pre20211225-plugin.c ${S}/src/plugins/splash/two-step/plugin.c
sed -i 's/two-step/calculate/g' ${S}/src/plugins/splash/two-step/Makefile.*
sed -i 's/two_step/calculate/g' ${S}/src/plugins/splash/two-step/Makefile.*
eautoreconf
}
src_configure() {
local myconf=(
--with-system-root-install=no
--localstatedir=/var
--without-rhgb-compat-link
--enable-documentation
--enable-systemd-integration
--with-systemdunitdir="$(systemd_get_systemunitdir)"
$(use_enable !static-libs shared)
$(use_enable static-libs static)
$(use_enable debug tracing)
$(use_enable gtk gtk)
$(use_enable libkms drm)
$(use_enable pango)
$(use_enable udev)
)
econf "${myconf[@]}"
}
src_compile() {
cd src/libply
emake
cd ../libply-splash-core
emake
cd ../libply-splash-graphics
emake
cd ../plugins/splash/two-step
emake
}
src_install() {
cd ${S}/src/plugins/splash/two-step
emake DESTDIR="${D}" install
cd ${S}/themes/spinfinity
insinto /usr/share/plymouth/themes/calculate
doins box.png bullet.png entry.png lock.png
cd ${S}/themes/spinner
doins throbber-00*.png
newins ${FILESDIR}/0.9.6_pre20211225-calculate.plymouth calculate.plymouth
}
Loading…
Cancel
Save