From 3644589f84a28db9a7de2e5698440806f4bea6a2 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Wed, 8 Dec 2021 17:04:56 +0100 Subject: [PATCH] Added --- .../megapixels/megapixels-1.4.2.ebuild | 1 - net-im/cawbird/cawbird-1.4.2.ebuild | 10 ++++ .../pinephone-sources-5.15.6.ebuild | 49 +++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 sys-kernel/pinephone-sources/pinephone-sources-5.15.6.ebuild diff --git a/media-video/megapixels/megapixels-1.4.2.ebuild b/media-video/megapixels/megapixels-1.4.2.ebuild index 62d3d4b..f9c2a8f 100644 --- a/media-video/megapixels/megapixels-1.4.2.ebuild +++ b/media-video/megapixels/megapixels-1.4.2.ebuild @@ -22,7 +22,6 @@ DEPEND=" media-libs/libraw media-gfx/dcraw media-gfx/imagemagick - " RDEPEND="${DEPEND}" diff --git a/net-im/cawbird/cawbird-1.4.2.ebuild b/net-im/cawbird/cawbird-1.4.2.ebuild index 76d01b0..60d257d 100644 --- a/net-im/cawbird/cawbird-1.4.2.ebuild +++ b/net-im/cawbird/cawbird-1.4.2.ebuild @@ -36,6 +36,16 @@ BDEPEND=" dev-util/meson dev-libs/gobject-introspection " +src_prepare() { + use vala && vala_src_prepare + cmake_src_prepare + gnome2_src_prepare + + # Make CMakeLists versioned vala enabled + sed -e "s;\(find_program(VALAC\) valac);\1 ${VALAC});" \ + -e "s;\(find_program(VAPIGEN\) vapigen);\1 ${VAPIGEN});" \ + -i "${S}"/CMakeLists.txt || die +} S="${WORKDIR}/$PN-${PV}" diff --git a/sys-kernel/pinephone-sources/pinephone-sources-5.15.6.ebuild b/sys-kernel/pinephone-sources/pinephone-sources-5.15.6.ebuild new file mode 100644 index 0000000..00b8e53 --- /dev/null +++ b/sys-kernel/pinephone-sources/pinephone-sources-5.15.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +K_NOUSENAME="yes" +K_NOSETEXTRAVERSION="yes" +K_SECURITY_UNSUPPORTED="1" +ETYPE="sources" +inherit kernel-2 +detect_version + +KEYWORDS="~arm64" + +DEPEND="${RDEPEND} + >=sys-devel/patch-2.7.5" + +DESCRIPTION="Full sources for the Linux kernel, with megi's patch for pinephone" + +MEGI_PATCH_URI="https://xff.cz/kernels/${PV:0:4}/patches/all.patch" +SRC_URI="${KERNEL_URI} ${MEGI_PATCH_URI} -> all-${PV}.patch" + +PATCHES=( + ${DISTDIR}/all-${PV}.patch +) + +src_prepare() { + default + eapply_user +} + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" + einfo "To build the kernel use the following command:" + einfo "make Image Image.gz modules" + einfo "make DTC_FLAGS="-@" dtbs" + einfo "make install; make modules_intall; make dtbs_install" + einfo "If you use kernel config coming with this ebuild, don't forget to also copy dracut-pp.conf to /etc/dracut.conf.d/" + einfo "to make sure proper kernel modules are loaded into initramfs" + einfo "if you want to cross compile pinephone kernel on amd64 host, follow the https://wiki.gentoo.org/wiki/Cross_build_environment" + einfo "to setup cross toolchain environment, then create a xmake wrapper like the following, and replace make with xmake in above commands" + einfo "#!/bin/sh" + einfo "exec make ARCH='arm64' CROSS_COMPILE='aarch64-unknown-linux-gnu-' INSTALL_MOD_PATH='${SYSROOT}' '$@'" +} + +pkg_postrm() { + kernel-2_pkg_postrm +}