Compare commits
188 Commits
Author | SHA1 | Date |
---|---|---|
projectmoon | 86d1e2e857 | |
projectmoon | ab0280397c | |
projectmoon | 82ccc87397 | |
projectmoon | 95239c3aa9 | |
projectmoon | eda5e2ecee | |
projectmoon | 1782830001 | |
projectmoon | 6f390f2036 | |
projectmoon | fada137cb1 | |
projectmoon | e9913ee577 | |
projectmoon | bda8616506 | |
projectmoon | 49f0b8eab5 | |
projectmoon | dea32190a3 | |
projectmoon | 84ae5a22ff | |
projectmoon | f443200b25 | |
projectmoon | dab7e74c3d | |
projectmoon | 970cdb947e | |
projectmoon | c300b72235 | |
projectmoon | dc80b5bfd2 | |
projectmoon | 72eb3746fe | |
projectmoon | cbc9857c51 | |
projectmoon | ab8ae28271 | |
projectmoon | 5d58f3fa12 | |
projectmoon | 64773e0a37 | |
projectmoon | d4451829db | |
projectmoon | aee259a098 | |
projectmoon | 5b19c41052 | |
projectmoon | 0b8ee1d8d0 | |
projectmoon | ac168d7920 | |
projectmoon | bac924fd9d | |
projectmoon | fda964b4ab | |
projectmoon | 413224ca4f | |
projectmoon | 36bac1cbd3 | |
projectmoon | a5cbe2b050 | |
projectmoon | 1435c0b624 | |
projectmoon | 54c656ddbf | |
projectmoon | af3779ee4d | |
projectmoon | c3c29b44a2 | |
projectmoon | 100a1e2d40 | |
projectmoon | 7bd10f2e21 | |
projectmoon | fc23da458a | |
projectmoon | f72a5941f9 | |
projectmoon | 310cf5929a | |
projectmoon | 4b58378496 | |
projectmoon | 96e603d592 | |
projectmoon | e782a3e837 | |
projectmoon | 5805aca93e | |
projectmoon | b2364c0f6a | |
projectmoon | 7f794e2c84 | |
projectmoon | f9b55fc57c | |
projectmoon | 5df43cee2d | |
projectmoon | d40df99db5 | |
projectmoon | e8dfe7dc45 | |
projectmoon | 0981c9d088 | |
projectmoon | 34a277adf1 | |
projectmoon | 166fc28c9c | |
projectmoon | 840535708a | |
projectmoon | 8ac787f2be | |
projectmoon | 690e2519f5 | |
projectmoon | 8f2f67767f | |
projectmoon | 5029cf898b | |
projectmoon | 77a6b464eb | |
projectmoon | 6adc2574b0 | |
projectmoon | 3055122efc | |
projectmoon | 4764ab1f33 | |
projectmoon | 515ef5573b | |
projectmoon | 223caf0365 | |
projectmoon | 4b619a7331 | |
projectmoon | ede794c760 | |
projectmoon | 6c3566c789 | |
projectmoon | 4e3952a958 | |
projectmoon | 2664a2dc46 | |
projectmoon | 0ae5f901b7 | |
projectmoon | e57750c693 | |
projectmoon | 7280d559bb | |
projectmoon | 0e205bdf0c | |
projectmoon | 645456b696 | |
projectmoon | 17f297b0bc | |
projectmoon | 0025e350af | |
projectmoon | c83055165b | |
projectmoon | 2399f618a9 | |
projectmoon | 272cff5d03 | |
projectmoon | 0ab6bdfd3f | |
projectmoon | ac946b0ea2 | |
projectmoon | b16e8cd913 | |
projectmoon | a40dcf0d62 | |
projectmoon | b6f4dfb5da | |
projectmoon | 48633966c8 | |
projectmoon | 8bf03ebfa3 | |
projectmoon | 6cfc4c8a0f | |
projectmoon | bebfa186fe | |
projectmoon | aab2f80695 | |
projectmoon | 4c2f46e3e5 | |
projectmoon | 70b340af2c | |
projectmoon | f06528e6fd | |
projectmoon | ad0c01120b | |
projectmoon | f872aca016 | |
projectmoon | 7e312f93ff | |
projectmoon | f77273a861 | |
projectmoon | 15f751a940 | |
projectmoon | 486ef6474e | |
projectmoon | a8c0951e7d | |
projectmoon | 59869deebb | |
projectmoon | 9bd4dbae06 | |
projectmoon | fbad65d768 | |
projectmoon | 7cdd97c2e3 | |
projectmoon | faaba28f4d | |
projectmoon | 77ec4be71c | |
projectmoon | 5faff332e8 | |
projectmoon | 6685f38faf | |
projectmoon | e2271fcada | |
projectmoon | 7906f2427f | |
projectmoon | f2334c522e | |
projectmoon | ea0c474416 | |
projectmoon | 215b66c491 | |
projectmoon | dda85d4859 | |
projectmoon | 25c626d60c | |
projectmoon | 5eb6ffb4ff | |
projectmoon | 9760b6d3c2 | |
projectmoon | 502256bee5 | |
projectmoon | e43bd67cb6 | |
projectmoon | fccb4ef271 | |
projectmoon | 555f7fd216 | |
projectmoon | c7a931a517 | |
projectmoon | 525c937c7b | |
projectmoon | 0f2e101f9b | |
projectmoon | 17f301d3c0 | |
projectmoon | 64c89a82ed | |
projectmoon | e8ec8c7ce1 | |
projectmoon | 7fe53443d1 | |
projectmoon | 4f72bb9575 | |
projectmoon | ef03df67e8 | |
projectmoon | 3248a94c73 | |
projectmoon | c0c12e5744 | |
projectmoon | 7542bea7d0 | |
projectmoon | 3c33368712 | |
projectmoon | ebc954b175 | |
projectmoon | 099f831845 | |
projectmoon | be48403c98 | |
projectmoon | cf93b01705 | |
projectmoon | 7f6e907164 | |
projectmoon | cd3c2cc21a | |
projectmoon | 7359fc100c | |
projectmoon | c62c97027f | |
projectmoon | dbcb2d3881 | |
projectmoon | dde3d1aac4 | |
projectmoon | 9922aba742 | |
projectmoon | 516b974f16 | |
projectmoon | fc01fea95b | |
projectmoon | 61e4c3d9ff | |
projectmoon | 2f25b67385 | |
projectmoon | 9b67105a09 | |
projectmoon | d7fe9f1fc9 | |
projectmoon | 9e6ae6db11 | |
projectmoon | 98f731397c | |
projectmoon | 0690e8e7d2 | |
projectmoon | 6d6b207469 | |
projectmoon | 66af4f6efc | |
projectmoon | 4881ef8cc1 | |
projectmoon | ebbe9c4dd0 | |
projectmoon | 0332e59f40 | |
projectmoon | f3f5ec313c | |
projectmoon | 51dc35c30f | |
projectmoon | d25a833cd0 | |
projectmoon | f6eafe8605 | |
projectmoon | 03c663ad59 | |
projectmoon | 0460670c66 | |
projectmoon | 4e4d9bc80b | |
projectmoon | 4673c5c0d4 | |
projectmoon | 8bd66066c8 | |
projectmoon | 80ea504332 | |
projectmoon | d2cf1e04d5 | |
projectmoon | f1a4f3adae | |
projectmoon | 8b552d60fb | |
projectmoon | cbf3007b52 | |
projectmoon | c1a3cf09c1 | |
projectmoon | 179418c592 | |
projectmoon | 4b9a84f2b4 | |
projectmoon | 2cfe5e705b | |
projectmoon | 295a656cb0 | |
projectmoon | 5a76f1b218 | |
projectmoon | 977a529049 | |
projectmoon | 9b11d38734 | |
projectmoon | 81c542288e | |
projectmoon | 89f35eec15 | |
projectmoon | 188958a0ea | |
projectmoon | b08955fb3f | |
projectmoon | 441359e5e7 | |
projectmoon | 4bcaa5c9f5 |
|
@ -0,0 +1,2 @@
|
|||
metadata/md5-cache
|
||||
profile/use.local.desc
|
|
@ -0,0 +1,92 @@
|
|||
Personal Gentoo overlay, focusing mostly on needed tools and
|
||||
compatibility for a libre version of Gentoo on the Librem 14 computer. A
|
||||
handful of other pacakages are also provided.
|
||||
|
||||
Linux-libre and Librem-related packages:
|
||||
- **sys-kernel/libre-kernel**: A dist-kernel built from the [Linux-libre
|
||||
sources][linux-libre].
|
||||
- **media-fonts/fonts-meta**: Modified version to remove non-Free
|
||||
fonts from the dependencies.
|
||||
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
|
||||
EC ACPI kernel module][ec-acpi], necessary for proper functioning
|
||||
of the laptop's battery charging and function keys.
|
||||
* **sys-power/librem-control**: A GTK application to control
|
||||
parameters of the Librem EC (battery charge levels, etc).
|
||||
* **sys-apps/purism_ectool**: Tool for querying and flashing
|
||||
Purism EC firmware images on certain Librem laptops.v
|
||||
|
||||
Other Packages:
|
||||
- **x11-misc/input-leap**: Updated ebuild of input-leap
|
||||
(Barrier/Synergy virtual KVM switch fork) that supports Wayland via
|
||||
`libei`.
|
||||
|
||||
## How to Add This Repository
|
||||
|
||||
Using eselect-repository:
|
||||
|
||||
```
|
||||
# eselect repository add projectmoon git https://git.agnos.is/projectmoon/projectmoon-overlay
|
||||
```
|
||||
|
||||
It usually a best practice to mask packages from overlays, except the ones you want:
|
||||
|
||||
In `/etc/portage/package.mask`:
|
||||
```
|
||||
*/*::projectmoon
|
||||
```
|
||||
|
||||
Individual packages can be unmasked (and added to
|
||||
`package.accept_keywords` if necessary). For instructions on unmasking
|
||||
individual packages, see the relevant documentation below.
|
||||
|
||||
## The Linux-libre dist-kernel
|
||||
|
||||
*See [docs/Libre-Kernel.md](docs/Libre-Kernel.md).*
|
||||
|
||||
This overlay provides a dist-kernel (based on
|
||||
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
|
||||
an accompanying updated version of `virtual/dist-kernel`. It is
|
||||
maintained and tested for my personal use on amd64. The Linux-libre
|
||||
kernel removes the ability for the Linux kernel to load firmware that is
|
||||
not [Free Software][free-software]. The ebuild roughly follows the
|
||||
current stable gentoo-kernel for amd64.
|
||||
|
||||
## Purism Librem Computer Packages
|
||||
|
||||
*See [docs/Librem.md](docs/Librem.md).*
|
||||
|
||||
This overlay contains packages for Purism's Librem computers, focusing
|
||||
mostly on the Librem 14.
|
||||
|
||||
## Input Leap
|
||||
|
||||
*See [docs/Input-Leap.md](docs/Input-Leap.md)*
|
||||
|
||||
This overlay contains a working, updated ebuild for Input Leap, a fork
|
||||
of Barrier (itself a fork of Synergy), which is a "virtual KVM switch",
|
||||
allowing you to share a keyboard and mouse between several computers
|
||||
over the network.
|
||||
|
||||
The most important things about Input Leap:
|
||||
|
||||
- It is Maintained.
|
||||
- It supports Wayland.
|
||||
|
||||
## Other Packages
|
||||
|
||||
*More documentation coming soon.*
|
||||
|
||||
Packages must be unmasked and added to `package.accept_keywords` as
|
||||
necessary.
|
||||
|
||||
# Disclaimer
|
||||
|
||||
The ebuilds in this overlay are really only tested for my specific
|
||||
use-case. I do not test every combination of USE flags, for example.
|
||||
So there may be issues with non-Free dependencies etc in some cases.
|
||||
|
||||
[linux-libre]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/
|
||||
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
||||
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
|
||||
[ec-instructions]: https://puri.sm/projects/librem-ec/
|
||||
[ff-pwas]: https://github.com/filips123/PWAsForFirefox
|
|
@ -0,0 +1 @@
|
|||
DIST libportal-0.7.1.tar.xz 74268 BLAKE2B b519fa88735d640a74e18cc791ec69862f136b793a7c855b1f3873cf6b15626d69088747f1a7ff54f8cd96f79e82e3df31e5349e3da57906e769b8f809f4ba34 SHA512 cbc50bfd86787fffc975fc53835acc6c3c0fd54b7ee02fce1983f1bd0fc40b15a0537780cd5e943ecedcf951840080a0f55a23a96e706223e52a6144ee70332c
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,47 @@
|
|||
From 6cd7c2ab82575b76f876ee2bd2d31f6cb77f022f Mon Sep 17 00:00:00 2001
|
||||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Tue, 26 Dec 2023 14:35:46 +0000
|
||||
Subject: [PATCH] pyportaltest: Only create one session bus per DBusTestCase
|
||||
subclass
|
||||
|
||||
DBusTestCase.start_session_bus() is a class method, and can only be
|
||||
called once per class, because DBusTestCase.tearDownClass() will only
|
||||
clean up one session bus. In older versions of dbusmock, calling it more
|
||||
than once will result in dbus-daemon processes being leaked; since
|
||||
0.30.0, calling it more than once will result in an assertion failure.
|
||||
|
||||
Resolves: https://github.com/flatpak/libportal/issues/136
|
||||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058245
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
---
|
||||
tests/pyportaltest/__init__.py | 10 +++++++++-
|
||||
1 file changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/pyportaltest/__init__.py b/tests/pyportaltest/__init__.py
|
||||
index af053c2a..80f04a91 100644
|
||||
--- a/tests/pyportaltest/__init__.py
|
||||
+++ b/tests/pyportaltest/__init__.py
|
||||
@@ -83,6 +83,14 @@ def setUpClass(cls):
|
||||
except AttributeError:
|
||||
pytest.skip("Updated version of dbusmock required")
|
||||
|
||||
+ cls.__have_session_bus = False
|
||||
+
|
||||
+ @classmethod
|
||||
+ def ensure_session_bus(cls):
|
||||
+ if not cls.__have_session_bus:
|
||||
+ cls.__have_session_bus = True
|
||||
+ cls.start_session_bus()
|
||||
+
|
||||
def setUp(self):
|
||||
self.p_mock = None
|
||||
self._mainloop = None
|
||||
@@ -96,7 +104,7 @@ def setup_daemon(self, params=None, extra_templates: List[Tuple[str, Dict]] = []
|
||||
portal name as first value and the param dict to be passed to that
|
||||
template as second value, e.g. ("ScreenCast", {...}).
|
||||
"""
|
||||
- self.start_session_bus()
|
||||
+ self.ensure_session_bus()
|
||||
self.p_mock, self.obj_portal = self.spawn_server_template(
|
||||
template=f"pyportaltest/templates/{self.PORTAL_NAME.lower()}.py",
|
||||
parameters=params,
|
|
@ -0,0 +1,118 @@
|
|||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit flag-o-matic meson python-any-r1 vala virtualx
|
||||
|
||||
DESCRIPTION="Flatpak portal library"
|
||||
HOMEPAGE="https://github.com/flatpak/libportal"
|
||||
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt5}.so
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
IUSE="gtk gtk-doc +introspection qt5 test +vala wayland X"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
gtk-doc? ( introspection )
|
||||
vala? ( introspection )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.58:2
|
||||
introspection? ( dev-libs/gobject-introspection:= )
|
||||
gtk? (
|
||||
>=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?]
|
||||
>=gui-libs/gtk-4.12.5-r2:4[X?,wayland?]
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:=
|
||||
dev-qt/qtgui:=
|
||||
dev-qt/qtx11extras:=
|
||||
dev-qt/qtwidgets:=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? (
|
||||
test? ( dev-qt/qttest:= )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
virtual/pkgconfig
|
||||
gtk-doc? ( dev-util/gi-docgen )
|
||||
qt5? (
|
||||
test? ( dev-qt/linguist-tools )
|
||||
)
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/python-dbusmock[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# backport fix for tests incompatibility with dbusmock 0.30.0
|
||||
"${FILESDIR}"/6cd7c2ab82575b76f876ee2bd2d31f6cb77f022f.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version \
|
||||
"dev-python/pytest[${PYTHON_USEDEP}]" \
|
||||
"dev-python/dbus-python[${PYTHON_USEDEP}]" \
|
||||
"dev-python/python-dbusmock[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use test; then
|
||||
python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
vala_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# defang automagic dependencies
|
||||
use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
|
||||
use X || append-cflags -DGENTOO_GTK_HIDE_X11
|
||||
|
||||
local emesonargs=(
|
||||
$(meson_feature gtk backend-gtk3)
|
||||
$(meson_feature gtk backend-gtk4)
|
||||
$(meson_feature qt5 backend-qt5)
|
||||
-Dportal-tests=false
|
||||
$(meson_use introspection)
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use gtk-doc docs)
|
||||
$(meson_use test tests)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests only exist for Qt5
|
||||
if use qt5; then
|
||||
virtx meson_src_test
|
||||
else
|
||||
# run meson_src_test to notice if tests are added
|
||||
meson_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use gtk-doc; then
|
||||
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
fi
|
||||
}
|
|
@ -0,0 +1,121 @@
|
|||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit flag-o-matic meson python-any-r1 vala virtualx
|
||||
|
||||
DESCRIPTION="Flatpak portal library"
|
||||
HOMEPAGE="https://github.com/flatpak/libportal"
|
||||
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt5}.so
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
IUSE="gtk gtk-doc +introspection inputcapture qt5 test +vala wayland X"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
gtk-doc? ( introspection )
|
||||
vala? ( introspection )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.58:2
|
||||
introspection? ( dev-libs/gobject-introspection:= )
|
||||
gtk? (
|
||||
>=x11-libs/gtk+-3.24.41-r1:3[X?,wayland?]
|
||||
>=gui-libs/gtk-4.12.5-r2:4[X?,wayland?]
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:=
|
||||
dev-qt/qtgui:=
|
||||
dev-qt/qtx11extras:=
|
||||
dev-qt/qtwidgets:=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? (
|
||||
test? ( dev-qt/qttest:= )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
virtual/pkgconfig
|
||||
gtk-doc? ( dev-util/gi-docgen )
|
||||
qt5? (
|
||||
test? ( dev-qt/linguist-tools )
|
||||
)
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/python-dbusmock[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# backport fix for tests incompatibility with dbusmock 0.30.0
|
||||
"${FILESDIR}"/6cd7c2ab82575b76f876ee2bd2d31f6cb77f022f.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version \
|
||||
"dev-python/pytest[${PYTHON_USEDEP}]" \
|
||||
"dev-python/dbus-python[${PYTHON_USEDEP}]" \
|
||||
"dev-python/python-dbusmock[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use test; then
|
||||
python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if use inputcapture; then
|
||||
eapply "${FILESDIR}"/0001-Input-capture-support.patch
|
||||
fi
|
||||
vala_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# defang automagic dependencies
|
||||
use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
|
||||
use X || append-cflags -DGENTOO_GTK_HIDE_X11
|
||||
|
||||
local emesonargs=(
|
||||
$(meson_feature gtk backend-gtk3)
|
||||
$(meson_feature gtk backend-gtk4)
|
||||
$(meson_feature qt5 backend-qt5)
|
||||
-Dportal-tests=false
|
||||
$(meson_use introspection)
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use gtk-doc docs)
|
||||
$(meson_use test tests)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests only exist for Qt5
|
||||
if use qt5; then
|
||||
virtx meson_src_test
|
||||
else
|
||||
# run meson_src_test to notice if tests are added
|
||||
meson_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use gtk-doc; then
|
||||
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
fi
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit meson python-any-r1 vala virtualx
|
||||
|
||||
DESCRIPTION="Flatpak portal library"
|
||||
HOMEPAGE="https://github.com/flatpak/libportal"
|
||||
SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0/1-1-1-1" # soname of libportal{,-gtk3,-gtk4,-qt5}.so
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
IUSE="gtk gtk-doc +introspection qt5 test +vala"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
gtk-doc? ( introspection )
|
||||
vala? ( introspection )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.58:2
|
||||
introspection? ( dev-libs/gobject-introspection:= )
|
||||
gtk? (
|
||||
x11-libs/gtk+:3
|
||||
gui-libs/gtk:4
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:=
|
||||
dev-qt/qtgui:=
|
||||
dev-qt/qtx11extras:=
|
||||
dev-qt/qtwidgets:=
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? (
|
||||
test? ( dev-qt/qttest:= )
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/glib-utils
|
||||
virtual/pkgconfig
|
||||
gtk-doc? ( dev-util/gi-docgen )
|
||||
qt5? (
|
||||
test? ( dev-qt/linguist-tools )
|
||||
)
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep '
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/python-dbusmock[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# backport fix for tests incompatibility with dbusmock 0.30.0
|
||||
"${FILESDIR}"/6cd7c2ab82575b76f876ee2bd2d31f6cb77f022f.patch
|
||||
)
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version \
|
||||
"dev-python/pytest[${PYTHON_USEDEP}]" \
|
||||
"dev-python/dbus-python[${PYTHON_USEDEP}]" \
|
||||
"dev-python/python-dbusmock[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use test; then
|
||||
python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
vala_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_feature gtk backend-gtk3)
|
||||
$(meson_feature gtk backend-gtk4)
|
||||
$(meson_feature qt5 backend-qt5)
|
||||
-Dportal-tests=false
|
||||
$(meson_use introspection)
|
||||
$(meson_use vala vapi)
|
||||
$(meson_use gtk-doc docs)
|
||||
$(meson_use test tests)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests only exist for Qt5
|
||||
if use qt5; then
|
||||
virtx meson_src_test
|
||||
else
|
||||
# run meson_src_test to notice if tests are added
|
||||
meson_src_test
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use gtk-doc; then
|
||||
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
mv "${ED}"/usr/share/doc/${PN}-1 "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
fi
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnome@gentoo.org</email>
|
||||
<name>Gentoo GNOME Desktop</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">flatpak/libportal</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="inputcapture">
|
||||
Enable not-yet-released inputcapture patches from upstream.
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,2 @@
|
|||
DIST rust-analyzer-2022-12-12.gz 12848044 BLAKE2B b3c6e1b192d8db6518997b93b12551c1f43e70ca74a306395b764a73982b329712931f34932dd98f866d3e6850bd59dd533edaca8f06ca9f7b41ac6526552388 SHA512 b9d787307021a3753df7a2ef05e52aaf8b0389000770dadd326d5476ac20ef6b328741412601fb5dc467e0511911065f59bd86b5b96f5da265658c0579e54a72
|
||||
DIST rust-analyzer-x86_64-unknown-linux-gnu.gz 11550409 BLAKE2B 6d1dc7dd15375016f153d53c408f882f219778dfbeaa98e15fcb51a5f6704b29a73205c1c2ed1162ad2794387d9abc3fc569a19d243135428fc4ab6b46b9bcac SHA512 c23b2e9d645863b84e0961429c654365887f265faf883f94b62bedc4a9b8de25c00cc3e1653d614f485bebb9cbe4abb241072955d8d46bdc082795d597285422
|
|
@ -0,0 +1,31 @@
|
|||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
|
||||
HOMEPAGE="https://rust-analyzer.github.io"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# rust-analyzer makes date-based releases at the moment.
|
||||
DATE=${PV:3:8}
|
||||
YEAR=${DATE:0:4}
|
||||
MONTH=${DATE:4:2}
|
||||
DAY=${DATE:6:2}
|
||||
VERSION="${YEAR}-${MONTH}-${DAY}"
|
||||
|
||||
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
||||
|
||||
LICENSE="Apache-2.0 MIT-with-advertising"
|
||||
SLOT="0"
|
||||
PROPERTIES="live"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
|
||||
HOMEPAGE="https://rust-analyzer.github.io"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# rust-analyzer makes date-based releases at the moment.
|
||||
DATE=${PV:3:8}
|
||||
YEAR=${DATE:0:4}
|
||||
MONTH=${DATE:4:2}
|
||||
DAY=${DATE:6:2}
|
||||
VERSION="${YEAR}-${MONTH}-${DAY}"
|
||||
|
||||
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
||||
LICENSE="Apache-2.0 MIT-with-advertising"
|
||||
SLOT="0"
|
||||
PROPERTIES="live"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
|
||||
HOMEPAGE="https://rust-analyzer.github.io"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# rust-analyzer makes date-based releases at the moment.
|
||||
DATE=${PV:3:8}
|
||||
YEAR=${DATE:0:4}
|
||||
MONTH=${DATE:4:2}
|
||||
DAY=${DATE:6:2}
|
||||
VERSION="${YEAR}-${MONTH}-${DAY}"
|
||||
|
||||
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
||||
LICENSE="Apache-2.0 MIT-with-advertising"
|
||||
SLOT="0"
|
||||
PROPERTIES="live"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
newbin rust-analyzer-x86_64-unknown-linux-gnu rust-analyzer
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2021-2022 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="An implementation of Language Server Protocol for the Rust programming language"
|
||||
HOMEPAGE="https://rust-analyzer.github.io"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# rust-analyzer makes date-based releases at the moment.
|
||||
DATE=${PV:3:8}
|
||||
YEAR=${DATE:0:4}
|
||||
MONTH=${DATE:4:2}
|
||||
DAY=${DATE:6:2}
|
||||
VERSION="${YEAR}-${MONTH}-${DAY}"
|
||||
|
||||
SRC_URI="https://github.com/rust-analyzer/rust-analyzer/releases/download/${VERSION}/rust-analyzer-x86_64-unknown-linux-gnu.gz -> rust-analyzer-${VERSION}.gz"
|
||||
LICENSE="Apache-2.0 MIT-with-advertising"
|
||||
SLOT="0"
|
||||
PROPERTIES="live"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
newbin "rust-analyzer-${VERSION}" rust-analyzer
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Make sure to add your desired rust toolchain (e.g. with rustup) for rust-analyzer to work correctly"
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
# Input Leap
|
||||
|
||||
This overlay has a working, updated version of Input Leap, a fork of
|
||||
Barrier (itself a fork of Synergy), which is a "virtual KVM switch",
|
||||
allowing you to share a keyboard and mouse between several computers
|
||||
over the network.
|
||||
|
||||
The most important things about Input Leap:
|
||||
- Maintained.
|
||||
- Supports Wayland.
|
||||
|
||||
## Project Status
|
||||
|
||||
Input Leap is technically alpha quality, because it does not yet have a
|
||||
stable release. Thus, the ebuild is a `9999` version ebuild.
|
||||
|
||||
Building from `HEAD` is highly unstable and _NOT_ recommended. See below.
|
||||
|
||||
## Setup
|
||||
|
||||
To use this overlay's version of Input Leap, unmask the following packages:
|
||||
|
||||
```
|
||||
dev-libs/libportal::projectmoon
|
||||
x11-misc/input-leap::projectmoon
|
||||
```
|
||||
|
||||
Then add the package accept keywords:
|
||||
|
||||
```
|
||||
dev-libs/libportal::projectmoon
|
||||
x11-misc/input-leap::projectmoon **
|
||||
```
|
||||
|
||||
*The double star allows unstable git builds.*
|
||||
|
||||
A portage env config is currently required to install this ebuild.
|
||||
Create a file `/etc/portage/env/input-leap.conf` and then add an entry
|
||||
to `/etc/portage/package.env`. The latest commits to input-leap have
|
||||
broken the git build. The last known working build of a stable release
|
||||
is v3.0.1.
|
||||
|
||||
The `input-leap.conf` file should have the following:
|
||||
```
|
||||
MYCMAKEARGS="-DQT_DEFAULT_MAJOR_VERSION=5"
|
||||
EGIT_OVERRIDE_COMMIT_INPUT_LEAP_INPUT_LEAP="v3.0.1"
|
||||
```
|
||||
|
||||
Then the `package.env` entry should be:
|
||||
```
|
||||
x11-misc/input-leap::projectmoon input-leap.conf
|
||||
```
|
||||
|
||||
## USE Flags
|
||||
|
||||
This ebuild of Input Leap supports Wayland integration via `libei`, on
|
||||
supported compositors (notably, wlroots is apparently not supported by
|
||||
upstream). To use the `libei` integration, you must have a version of
|
||||
`libportal` with Input Capture support, which at time of writing
|
||||
(libportal 0.7.1) is not yet released.
|
||||
|
||||
This overlay contains a custom ebuild of `dev-libs/libportal` that can
|
||||
enable Input Capture. The patch is cherry-picked from the upstream
|
||||
commits.
|
||||
|
||||
To configure Input Leap to use `libei` for Wayland support, add the
|
||||
following USE declarations:
|
||||
|
||||
```
|
||||
dev-libs/libportal inputcapture
|
||||
x11-misc/input-leap wayland
|
||||
```
|
||||
|
||||
Note that `inputcapture` is NOT a USE flag on the main Gentoo ebuild. So
|
||||
if you haven't unmasked this overlay's version of `libportal`, you will
|
||||
receive an error when trying to install Input Leap.
|
|
@ -0,0 +1,143 @@
|
|||
# The Linux-libre dist-kernel
|
||||
|
||||
This overlay provides a dist-kernel (based on
|
||||
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
|
||||
an accompanying updated version of `virtual/dist-kernel`. It is
|
||||
maintained and tested for my personal use on amd64. The Linux-libre
|
||||
kernel removes the ability for the Linux kernel to load firmware that
|
||||
is not [Free Software][free-software]. The ebuild roughly follows the
|
||||
current stable 5.15.x gentoo-kernel for amd64.
|
||||
|
||||
The libre kernel can be installed alongside other dist-kernels, and
|
||||
works with the `dist-kernel` and `initramfs` USE flags. The ebuild
|
||||
does NOT fail if non-free firmware (i.e. `sys-kernel/linux-firmware`
|
||||
with `redistributable` USE flag set) is installed, but it will warn
|
||||
you if this is the case. It will also warn you if the `linux-firmware`
|
||||
package is not found at all, like normal dist-kernel ebuilds.
|
||||
|
||||
The kernel installed by this ebuild has the version suffix
|
||||
`-gnu-dist`, making it easy to determine which kernel it is.
|
||||
|
||||
## Quick Setup
|
||||
|
||||
This is a quick guide for setting up the system to properly install the
|
||||
Linux-libre Kernel. It assumes you have set up the overlay as described
|
||||
in the README.
|
||||
|
||||
In `/etc/portage/package.use`:
|
||||
|
||||
```
|
||||
# Install only libre firmware
|
||||
sys-kernel/linux-firmware -redistributable -unknown-license
|
||||
|
||||
# libre kernel with gentoo kernel patches applied
|
||||
sys-kernel/libre-kernel verify-sig
|
||||
|
||||
# or, if you do not want gentoo patches applied
|
||||
sys-kernel/libre-kernel verify-sig -gentoo
|
||||
```
|
||||
|
||||
In `/etc/portage/package.unmask`:
|
||||
|
||||
```
|
||||
sys-kernel/libre-kernel::projectmoon
|
||||
virtual/dist-kernel::projectmoon
|
||||
virtual/linux-sources::projectmoon
|
||||
sec-keys/openpgp-keys-linux-libre::projectmoon
|
||||
```
|
||||
|
||||
In `/etc/portage/package.accept_keywords`:
|
||||
|
||||
```
|
||||
sys-kernel/librem-ec-acpi::projectmoon
|
||||
sys-kernel/libre-kernel::projectmoon ~amd64
|
||||
virtual/dist-kernel::projectmoon
|
||||
virtual/linux-sources::projectmoon
|
||||
```
|
||||
|
||||
In `/etc/portage/package.mask`:
|
||||
|
||||
```
|
||||
# stay on libre kernel
|
||||
sys-kernel/gentoo-kernel
|
||||
sys-kernel/gentoo-kernel-bin
|
||||
sys-kernel/vanilla-kernel
|
||||
virtual/linux-sources::gentoo
|
||||
```
|
||||
|
||||
## Detailed Instructions
|
||||
|
||||
The rest of this documentation covers the quick steps above in detail,
|
||||
and extra information about the Linux firmware package, the Librem EC
|
||||
ACPI module, etc.
|
||||
|
||||
### Signature Verification
|
||||
|
||||
It is recommended to enable GPG signature verification of
|
||||
`sys-kenrel/libre-kernel` by adding the USE flag to
|
||||
o`/etc/portage/package.use`:
|
||||
|
||||
```
|
||||
sys-kernel/libre-kernel verify-sig
|
||||
```
|
||||
|
||||
### Keeping the Linux-libre Kernel Installed
|
||||
|
||||
Portage will sometimes try to install `sys-kernel/gentoo-kernel` or
|
||||
another dist-kernel if there is a newer stable version than
|
||||
`sys-kernel/libre-kernel`. This happens because of a version bump to
|
||||
`virtual/dist-kernel` before this overlay has updated its own copy of
|
||||
`virtual/dist-kernel`.
|
||||
|
||||
To prevent portage from attempting to install another dist-kernel
|
||||
instead of the Linux-libre kernel, you should mask other dist-kernels in
|
||||
`/etc/portage/package.mask`:
|
||||
|
||||
```
|
||||
# stay on libre kernel
|
||||
sys-kernel/gentoo-kernel
|
||||
sys-kernel/gentoo-kernel-bin
|
||||
sys-kernel/vanilla-kernel
|
||||
```
|
||||
|
||||
### Linux Firmware
|
||||
|
||||
*Note: If you are running the Linux-libre kernel, it is unlikely (though
|
||||
not impossible) that you need to install `sys-kernel/linux-firmware`.*
|
||||
|
||||
To install only the Linux firmware that meets the [Free Software
|
||||
Definition][free-software], configure `/etc/portage/package.use`
|
||||
accordingly:
|
||||
|
||||
```
|
||||
# Install only libre firmware
|
||||
sys-kernel/linux-firmware -redistributable -unknown-license
|
||||
```
|
||||
|
||||
You can also edit `/etc/portage/profile/package.use.mask` to prevent
|
||||
the linux-firmware package from ever installing the closed-source
|
||||
firmware by adding this line:
|
||||
|
||||
```
|
||||
# forcibly stop non-free firmware installation
|
||||
sys-kernel/linux-firmware redistributable unknown-license
|
||||
```
|
||||
|
||||
### Using the Librem EC ACPI kernel module
|
||||
|
||||
The Librem EC ACPI kernel module should install and be automatically
|
||||
available (via modprobe) after installation, using `emerge
|
||||
sys-kernel/librem-ec-acpi`. The module is currently installed to
|
||||
`/lib/modules/<kernel>/librem/`.
|
||||
|
||||
This ebuild supports the `dist-kernel` USE flag, and the module will
|
||||
automatically be rebuilt when installing a new dist-kernel if that
|
||||
flag is enabled.
|
||||
|
||||
If you are not using a dist-kernel, you will need to do `emerge
|
||||
@modules-rebuild` to install the module after you upgrade or install a
|
||||
new kernel.
|
||||
|
||||
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
||||
[linux-libre]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/
|
||||
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
|
@ -0,0 +1,58 @@
|
|||
# Packages for Purism Librem Computers
|
||||
|
||||
This overlay provides a handful of ebuilds for Purism Librem computers (particularly, the Librem 14):
|
||||
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
|
||||
EC ACPI kernel module][ec-acpi], necessary for proper functioning
|
||||
of the laptop's battery charging and function keys.
|
||||
* **sys-power/librem-control**: A GTK application to control
|
||||
parameters of the Librem EC (battery charge levels, etc).
|
||||
* **sys-apps/purism_ectool**: Tool for querying and flashing
|
||||
Purism EC firmware images on certain Librem laptops.
|
||||
|
||||
## Quick Setup
|
||||
|
||||
This is a quick guide for setting up the system to properly install
|
||||
Librem-related packages. It assumes you have set up the overlay as
|
||||
described in the README.
|
||||
|
||||
In `/etc/portage/package.unmask`:
|
||||
|
||||
```
|
||||
sys-kernel/librem-ec-acpi::projectmoone
|
||||
sys-apps/purism_ectool::projectmoon
|
||||
sys-power/librem-control::projectmoon
|
||||
```
|
||||
|
||||
In `/etc/portage/package.accept_keywords`:
|
||||
|
||||
```
|
||||
sys-kernel/librem-ec-acpi::projectmoon
|
||||
sys-apps/purism_ectool::projectmoon
|
||||
sys-power/librem-control::projectmoon **
|
||||
```
|
||||
|
||||
## The Librem EC ACPI kernel module
|
||||
|
||||
The Librem EC ACPI kernel module should install and be automatically
|
||||
available (via modprobe) after installation, using `emerge
|
||||
sys-kernel/librem-ec-acpi`. The module is currently installed to
|
||||
`/lib/modules/<kernel>/librem/`.
|
||||
|
||||
This ebuild supports the `dist-kernel` USE flag, and the module will
|
||||
automatically be rebuilt when installing a new dist-kernel if that
|
||||
flag is enabled.
|
||||
|
||||
If you are not using a dist-kernel, you will need to do `emerge
|
||||
@modules-rebuild` to install the module after you upgrade or install a
|
||||
new kernel.
|
||||
|
||||
### Librem Control and the Purism EC Tool
|
||||
|
||||
These two appliations can be used to manipulate device-specific
|
||||
features of the Librem 14, including the flashing of firmware images.
|
||||
It is not recommended to use the EC tool from this overlay for
|
||||
flashing a firmware image. Instead, follow the official [firmware
|
||||
flashing instrutions][ec-instructions].
|
||||
|
||||
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
|
||||
[ec-instructions]: https://puri.sm/projects/librem-ec/
|
|
@ -0,0 +1,14 @@
|
|||
How to create new version of the Firefox PWA Connector:
|
||||
|
||||
- Check Firefox PWA repo for new version.
|
||||
- Pull latest changes of repo and check out proper tag.
|
||||
- Run `cargo vendor` in the repo, under the `native/` directory.
|
||||
- Create tarball of vendored cargo deps: `tar -czvf vendor-X.Y.Z.tar.gz vendor/`.
|
||||
- Move vendor tarball to the overlay files repo under `www-plugins/firefox-pwa-connector`.
|
||||
- Push vendored tarball for new version.
|
||||
- Copy over ebuild to new version.
|
||||
- Check the Cargo.toml of the connector for any new git deps, and add to
|
||||
the git crates if necessary. Cargo.lock can be checked to find the
|
||||
proper commit hashes.
|
||||
- Check repo Makefile.toml for any new installation instructions for the
|
||||
Linux target. Replicate in `src_install` phase.
|
|
@ -0,0 +1,26 @@
|
|||
How to update the Linux-libre Kernel ebuild for a new version
|
||||
---
|
||||
|
||||
1. Check for new stable version of `gentoo-kernel` on packages.gentoo.org.
|
||||
2. If so, version bump `libre-kernel` ebuild to match new
|
||||
`gentoo-kernel` version.
|
||||
3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and
|
||||
patches versions.
|
||||
4. If the Gentoo patchset version has changed:
|
||||
1. Make sure the patch version offset thingy matches gentoo-kernel.
|
||||
2. Make sure config version is the same.
|
||||
3. Make sure the config hash is the same.
|
||||
4. Make sure ebuild applies config changes with `ebuild
|
||||
libre-kernel-X.Y.Z.ebuild clean prepare`.
|
||||
5. Run `pkgdev manifest` to have portage download the libre kernel files
|
||||
and update the manifest.
|
||||
5. Attempt to build the kernel using `ebuild libre-kernel-X.Y.Z.ebuild
|
||||
clean merge`. You might need to use `sudo` or `doas` for this.
|
||||
6. Update `virtual/dist-kernel` package to new version, by copying the
|
||||
proper dist-kernel ebuild from the gentoo repo, and adding
|
||||
`sys-kernel/libre-kernel` to its list of possible deps.
|
||||
7. Make sure `virtual/linux-sources` is up to date. This package rarely
|
||||
changes, but updating it follows the same procedure as
|
||||
`virtual/dist-kernel`.
|
||||
|
||||
If the build succeeds, the new ebuilds can be pushed to the repository.
|
|
@ -0,0 +1,110 @@
|
|||
# Copyright 1999-2022 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Meta package for fonts to cover most needs"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||||
|
||||
LICENSE="metapackage"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~loong ~riscv x86"
|
||||
IUSE="cjk emoji +latin ms"
|
||||
|
||||
LANGS="as bn bo brx doi dz gu hi km kn kok ks mai ml mr ne or pa ru sa sat sd si syc ta te th"
|
||||
for lang in ${LANGS}; do
|
||||
IUSE+=" l10n_${lang}"
|
||||
done
|
||||
unset lang LANGS
|
||||
|
||||
RDEPEND="media-fonts/cantarell
|
||||
media-fonts/droid
|
||||
media-fonts/noto
|
||||
media-fonts/oldstandard
|
||||
media-fonts/powerline-symbols
|
||||
media-fonts/ubuntu-font-family
|
||||
media-libs/fontconfig
|
||||
|| (
|
||||
media-fonts/source-code-pro
|
||||
media-fonts/anonymous-pro
|
||||
media-fonts/cascadia-code
|
||||
media-fonts/fantasque-sans-mono
|
||||
media-fonts/fira-code
|
||||
media-fonts/fira-mono
|
||||
media-fonts/hack
|
||||
media-fonts/hermit
|
||||
media-fonts/ibm-plex
|
||||
media-fonts/inconsolata
|
||||
media-fonts/iosevka
|
||||
media-fonts/jetbrains-mono
|
||||
media-fonts/montecarlo
|
||||
media-fonts/roboto
|
||||
media-fonts/terminus-font
|
||||
)
|
||||
cjk? (
|
||||
media-fonts/noto-cjk
|
||||
)
|
||||
emoji? (
|
||||
|| (
|
||||
media-fonts/noto-emoji
|
||||
media-fonts/joypixels
|
||||
)
|
||||
)
|
||||
l10n_as? ( media-fonts/lohit-assamese )
|
||||
l10n_bn? ( media-fonts/lohit-bengali )
|
||||
l10n_bo? ( media-fonts/tibetan-machine-font )
|
||||
l10n_brx? ( media-fonts/lohit-devanagari )
|
||||
l10n_doi? ( media-fonts/lohit-devanagari )
|
||||
l10n_dz? ( media-fonts/dzongkha-fonts )
|
||||
l10n_gu? ( media-fonts/lohit-gujarati )
|
||||
l10n_hi? ( media-fonts/lohit-devanagari )
|
||||
l10n_km? ( media-fonts/khmer )
|
||||
l10n_kn? ( media-fonts/lohit-kannada )
|
||||
l10n_kok? ( media-fonts/lohit-devanagari )
|
||||
l10n_ks? ( media-fonts/lohit-devanagari )
|
||||
l10n_mai? ( media-fonts/lohit-devanagari )
|
||||
l10n_ml? ( media-fonts/lohit-malayalam )
|
||||
l10n_mr? (
|
||||
media-fonts/lohit-devanagari
|
||||
media-fonts/lohit-marathi
|
||||
)
|
||||
l10n_ne? (
|
||||
media-fonts/lohit-devanagari
|
||||
media-fonts/lohit-nepali
|
||||
)
|
||||
l10n_or? ( media-fonts/lohit-odia )
|
||||
l10n_pa? ( media-fonts/lohit-gurmukhi )
|
||||
l10n_ru? (
|
||||
media-fonts/font-misc-cyrillic
|
||||
media-fonts/paratype
|
||||
media-fonts/paratype-astra
|
||||
)
|
||||
l10n_sa? ( media-fonts/lohit-devanagari )
|
||||
l10n_sat? ( media-fonts/lohit-devanagari )
|
||||
l10n_sd? ( media-fonts/lohit-devanagari )
|
||||
l10n_si? ( media-fonts/lklug )
|
||||
l10n_syc? ( media-fonts/font-misc-meltho )
|
||||
l10n_ta? (
|
||||
media-fonts/lohit-tamil
|
||||
media-fonts/lohit-tamil-classical
|
||||
)
|
||||
l10n_te? ( media-fonts/lohit-telugu )
|
||||
l10n_th? ( media-fonts/thaifonts-scalable )
|
||||
latin? (
|
||||
media-fonts/courier-prime
|
||||
media-fonts/dejavu
|
||||
media-fonts/font-cursor-misc
|
||||
media-fonts/liberation-fonts
|
||||
media-fonts/open-sans
|
||||
media-fonts/quivira
|
||||
media-fonts/signika
|
||||
media-fonts/tex-gyre
|
||||
media-fonts/ttf-bitstream-vera
|
||||
media-fonts/urw-fonts
|
||||
)
|
||||
ms? (
|
||||
media-fonts/corefonts
|
||||
media-fonts/croscorefonts
|
||||
media-fonts/crosextrafonts-caladea
|
||||
media-fonts/crosextrafonts-carlito
|
||||
)"
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>alexey+gentoo@asokolov.org</email>
|
||||
<name>Alexey Sokolov</name>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="proxy">
|
||||
<email>juippis@gentoo.org</email>
|
||||
<name>Joonas Niilola</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>fonts@gentoo.org</email>
|
||||
<name>Fonts</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="emoji">Install a font supporting emojis</flag>
|
||||
<flag name="latin">Install additional latin fonts</flag>
|
||||
<flag name="ms">Install (free) fonts for the "ms" preset</flag>
|
||||
</use>
|
||||
<stabilize-allarches/>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,27 @@
|
|||
Title: Libre Kernel Gentoo USE Flag and Fixes
|
||||
Author: Yuan Liao <liaoyuan@gmail.com>
|
||||
Posted: 2023-03-01
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
The latest libre-kernel ebuild (6.1.2) has been revised to support a new
|
||||
gentoo USE flag, as well as fixes to the kernel configuration version.
|
||||
The new USE flag applies a subset of the Gentoo kernel patchset (from
|
||||
the gentoo-kernel package) to the Linux-libre kernel source. Most of the
|
||||
patches apply, but the larger patchsets for the kernel do not, in many
|
||||
cases because it seems like those patches have already been applied to
|
||||
the upstream source.
|
||||
|
||||
Applying of the Gentoo kernel patchset is controlled by the new local
|
||||
USE flag gentoo. It is enabled by default. The USE flag can be disabled
|
||||
by turning it off in /etc/portage/package.use:
|
||||
|
||||
sys-kernel/libre-kernel -gentoo
|
||||
|
||||
Note: whether or not the USE flag is enabled, the patch for the default
|
||||
Gentoo kernel configuration will always be applied.
|
||||
|
||||
Additionally, the Gentoo kernel config version has been fixed in the r1
|
||||
ebuild. The kernel configuration applied was being used from a 5.x
|
||||
build. In the future, the correct kernel config version will follow the
|
||||
gentoo-kernel package.
|
|
@ -0,0 +1,27 @@
|
|||
Title: Libre Kernel Gentoo USE Flag and Fixes
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2023-03-01
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
The latest libre-kernel ebuild (6.1.2) has been revised to support a new
|
||||
gentoo USE flag, as well as fixes to the kernel configuration version.
|
||||
The new USE flag applies a subset of the Gentoo kernel patchset (from
|
||||
the gentoo-kernel package) to the Linux-libre kernel source. Most of the
|
||||
patches apply, but the larger patchsets for the kernel do not, in many
|
||||
cases because it seems like those patches have already been applied to
|
||||
the upstream source.
|
||||
|
||||
Applying of the Gentoo kernel patchset is controlled by the new local
|
||||
USE flag gentoo. It is enabled by default. The USE flag can be disabled
|
||||
by turning it off in /etc/portage/package.use:
|
||||
|
||||
sys-kernel/libre-kernel -gentoo
|
||||
|
||||
Note: whether or not the USE flag is enabled, the patch for the default
|
||||
Gentoo kernel configuration will always be applied.
|
||||
|
||||
Additionally, the Gentoo kernel config version has been fixed in the r1
|
||||
ebuild. The kernel configuration applied was being used from a 5.x
|
||||
build. In the future, the correct kernel config version will follow the
|
||||
gentoo-kernel package.
|
|
@ -0,0 +1,13 @@
|
|||
Title: Libre Kernel Gentoo USE Flag and Fixes
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2023-03-29
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
The libre-kernel ebuilds now have the main Linux-libre release URLs as
|
||||
fallback SRC_URIs, in case the mirror hosting the files is down. The
|
||||
mirrors exist because sometimes the Linux-libre project removes releases
|
||||
if they discover that the release violates the Free Software
|
||||
Distribution guidelines. While good for freedom purity, this can make
|
||||
upgrades difficult. Thus, the files are mirrored on an external for the
|
||||
libre-kernel ebuilds.
|
|
@ -0,0 +1,13 @@
|
|||
Title: Libre Kernel Gentoo USE Flag and Fixes
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2023-03-29
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
The libre-kernel ebuilds now have the main Linux-libre release URLs as
|
||||
fallback SRC_URIs, in case the mirror hosting the files is down. The
|
||||
mirrors exist because sometimes the Linux-libre project removes releases
|
||||
if they discover that the release violates the Free Software
|
||||
Distribution guidelines. While good for freedom purity, this can make
|
||||
upgrades difficult. Thus, the files are mirrored on an external for the
|
||||
libre-kernel ebuilds.
|
|
@ -0,0 +1,15 @@
|
|||
Title: virtual/linux-sources unmask required
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2023-04-14
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
Changes to the linux-sources virtual have required that this overlay
|
||||
patches that ebuild when using the libre-kernel. If you have set up this
|
||||
overlay to only unmask specific packages, you should also add the
|
||||
linux-sources package to your package.unmask file:
|
||||
|
||||
virtual/linux-sources::projectmoon
|
||||
|
||||
This will prevent portage from also installing linux sources package
|
||||
like gentoo-sources when you already have the libre-kernel installed.
|
|
@ -0,0 +1,15 @@
|
|||
Title: virtual/linux-sources unmask required
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2023-04-14
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
Changes to the linux-sources virtual have required that this overlay
|
||||
patches that ebuild when using the libre-kernel. If you have set up this
|
||||
overlay to only unmask specific packages, you should also add the
|
||||
linux-sources package to your package.unmask file:
|
||||
|
||||
virtual/linux-sources::projectmoon
|
||||
|
||||
This will prevent portage from also installing linux sources package
|
||||
like gentoo-sources when you already have the libre-kernel installed.
|
|
@ -0,0 +1,9 @@
|
|||
Title: Libre Kernel 6.x
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2024-08-22
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
From this point, I will now be following the stable 6.x releases of
|
||||
gentoo-kernel for the libre-kernel package. The last available 5.15.x
|
||||
version will remain 5.15.163, for the time being.
|
|
@ -0,0 +1,9 @@
|
|||
Title: Libre Kernel 6.x
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2024-08-22
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
From this point, I will now be following the stable 6.x releases of
|
||||
gentoo-kernel for the libre-kernel package. The last available 5.15.x
|
||||
version will remain 5.15.163, for the time being.
|
|
@ -0,0 +1,13 @@
|
|||
Title: Input Leap 3.0.0
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2024-10-04
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
Input Leap 3.0 is available. The ebuild is a 9999 version, so in order
|
||||
to install it, you will need to rebuild input leap manually, e.g. emerge
|
||||
-1 x11-misc/input-leap. The Gentoo ebuild repository still has not
|
||||
updated to libportal 0.8 at time of writing, so the custom version of
|
||||
libportal from this overlay is still required. When they do update, the
|
||||
ebuild of input-leap will be adjusted to require libportal >= 0.8, and
|
||||
properly versioned.
|
|
@ -0,0 +1,13 @@
|
|||
Title: Input Leap 3.0.0
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2024-10-04
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
Input Leap 3.0 is available. The ebuild is a 9999 version, so in order
|
||||
to install it, you will need to rebuild input leap manually, e.g. emerge
|
||||
-1 x11-misc/input-leap. The Gentoo ebuild repository still has not
|
||||
updated to libportal 0.8 at time of writing, so the custom version of
|
||||
libportal from this overlay is still required. When they do update, the
|
||||
ebuild of input-leap will be adjusted to require libportal >= 0.8, and
|
||||
properly versioned.
|
|
@ -0,0 +1,12 @@
|
|||
Title: Input Leap Latest Builds Broken
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2024-08-22
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
The latest commits to input-leap have broken the git build. The last
|
||||
known working build of a stable release is v3.0.1. To force this, create
|
||||
an env configuration for input-leap:
|
||||
|
||||
MYCMAKEARGS="-DQT_DEFAULT_MAJOR_VERSION=5"
|
||||
EGIT_OVERRIDE_COMMIT_INPUT_LEAP_INPUT_LEAP="v3.0.1"
|
|
@ -0,0 +1,12 @@
|
|||
Title: Input Leap Latest Builds Broken
|
||||
Author: projectmoon <projectmoon@agnos.is>
|
||||
Posted: 2024-08-22
|
||||
Revision: 1
|
||||
News-Item-Format: 2.0
|
||||
|
||||
The latest commits to input-leap have broken the git build. The last
|
||||
known working build of a stable release is v3.0.1. To force this, create
|
||||
an env configuration for input-leap:
|
||||
|
||||
MYCMAKEARGS="-DQT_DEFAULT_MAJOR_VERSION=5"
|
||||
EGIT_OVERRIDE_COMMIT_INPUT_LEAP_INPUT_LEAP="v3.0.1"
|
|
@ -0,0 +1,3 @@
|
|||
move sys-kernel/librem-ec-acpi sys-apps/librem-ec-acpi
|
||||
move sys-firmware/purism_ectool sys-apps/purism_ectool
|
||||
move sys-apps/librem-ec-acpi sys-kernel/librem-ec-acpi
|
|
@ -0,0 +1 @@
|
|||
DIST BCB7CF877E7D47A7.asc 1213 BLAKE2B 5c7cd96062200e3419915a95977e3201299b52f35886de504cc669b5b5192519805f53301f7d70c4f0ac5a261733eb169a1372c1da1a48b0cd86a42ecbfbccae SHA512 1cc1b5bc86cf5b853e1b03f8d06e2080aadefb4b6b8af55f23a7b44afb57face718227c8401162fed2cbc394cf6fddcc65d121e313905b1acd16a4cf63d21e4b
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2022 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="OpenPGP keys used to sign Linux-libre-related packages"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
SRC_URI="https://linux-libre.fsfla.org/pub/linux-libre/SIGNING-KEY -> BCB7CF877E7D47A7.asc"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
local files=( ${A} )
|
||||
insinto /usr/share/openpgp-keys
|
||||
newins - linux-libre.asc < <(cat "${files[@]/#/${DISTDIR}/}" || die)
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
DIST ansi_term-0.11.0.crate 17087 BLAKE2B 9bd35c045a01ce4c6c4a5db1b4f15e9412bb97426eec19d4421dffbec633de8d13452c13c1dc1b30998690b78d7ed38311aca700087f13a81f66bd1d5d7300c4 SHA512 a637466a380748f939b3af090b8c0333f35581925bc03f4dda9b3f95d338836403cf5487ae3af9ff68f8245a837f8ab061aabe57a126a6a2c20f2e972c77d1fa
|
||||
DIST atty-0.2.14.crate 5470 BLAKE2B 2db856a9e898a430258f059aeaf7c844a153293e8856d90ac81f7d91a888c89198768ad5cb09303c23241fe85c560a55148fa56a303651a82b0edb895616bfab SHA512 d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9
|
||||
DIST bitflags-1.2.1.crate 16745 BLAKE2B 0fa6d3ce44aad7616d5cd02aad8c1d0b0fed4022650eb43067c4a72e6fc88da05442674fa51826e4858a47c9de233e1ba2229820af094197cd11bb416ceffb2b SHA512 ad89b3798845e23737a620bba581c2ff1ff3e15bac12555c765e201d2c0b90ecea0cdbc5b5b1a3fa9858c385e8e041f8226f5acfae5bbbe9925643fff2bf3f0b
|
||||
DIST cc-1.0.67.crate 53486 BLAKE2B 42fd02a5886df50857075c909819c8afcf091cee6b7bc517848786f287f4559e70a07f0a0f42a742baa2665465dfdb2139ecac7e93f1a41b16eab30556eb0259 SHA512 f1ad4abdaad2667b190d1f8df8515f603107be1f69bdbdc02b5159764a6ed18b3f672d6b06af50c7f2fd3e6e3dad5df0fcd0dda762d909ba0922c769f1efbe05
|
||||
DIST clap-2.33.3.crate 201925 BLAKE2B bec9c866481c5b3fddeb314f68af9bce38fc421e42816182de3209e8ea3447b72cf033e6251eea27fe974eff8085b7d98cdd2911b5cc0ec6b4bf4c750deb8a25 SHA512 3eb0fd648e2e3f9e5ff69a5e6cf0d867304fe18523accd036f28a86de368e4774088a6936c108ccc045092c539fe7f7494ea96420ebf6b4bec16880cea84bedf
|
||||
DIST downcast-rs-1.2.0.crate 11670 BLAKE2B 7d44d708c1ac068a02ea5d72dd3caa8a7f6d18b7ee653d520600acc9c52365824f5b8d3c68143d1d13aa438a18b16ff9975e15131cac7ec48b2d995184673d37 SHA512 b80b72f30b42c5e6b2bd33287f2dd22be5673b2fa5c1a8c75c5de224fc7eca46a55f2fce63c02d225dfbc94ac3462b4b2fec53d63331c70da6307ebcdcc6cb14
|
||||
DIST hermit-abi-0.1.18.crate 9936 BLAKE2B a5a1d1c9bdf83fdca8edc392f8fa7d9b9b248ac8d716e009300220befa5d8d80601643e768037be89bbbe6e21adbe6349c94c595cee3837c4b92b5f98ba838ad SHA512 54f060c6c1c80d41f40cec7102345147efb535aff9fa5cc0ed4ccd7f010bfdb6daaf40626fd5069af60ceb42058452803b59d4bbcfbed4c5546c79b57ae0f914
|
||||
DIST hidapi-1.2.5.crate 130695 BLAKE2B cbc920845e1ce108741925c7c8dbc15bfa864b251abd5659acdad9b7ac60a598c16a4b822bb29bfb9b0bdb2d1f68b745398c73d74155ceea03b1319a065f95b8 SHA512 38783fcba1b3d08b86ab2a2f03a8a955de82f60111f6014b1d143d09728f95d5ef825ec4b73fd04700e6170c2634e07b50310e9745ce3259019590248c2c27b0
|
||||
DIST libc-0.2.89.crate 515952 BLAKE2B f8af6016b2613ef21f83bbb47b4f2a04939ab6f2d4d525959aa90c6874348327319c7a44084f27ca52d01cca37e95e2b1c5c809e4a82fd5fcfc670d445f23ee8 SHA512 da6668611b87837532de9844bb3db18d992ebfe7e0c064646f0d24014730c9451fe74c6d9374191172c2dd091e8b9ce83a7cf56fc0644088190c8963221f5b9a
|
||||
DIST pkg-config-0.3.19.crate 15451 BLAKE2B dc23b5ef12719b4b3d2fc5c93c087399ba954a5e127be91b26619466d5d7422e71684d02905304dca65273d69b66338d94c0642e3810a14df845ef507ddc0bfb SHA512 42bc13c4e39c8f71690db527d815884acdfd2ccf5fbfea700c6ed60257e852cdcb1c443e7774409e51da53612b0ff0aa165554b99fd0cba973f94a8df52982d9
|
||||
DIST purism_ectool-9999.tar.gz 232692 BLAKE2B 8025dde406aa718336ece55430151ec30acf7b29bb9f50581abfe70d469a4780e87356bf2ea3dac601277bb117b1684876debeacff23ff3961e1cf939316a1dc SHA512 edbb688535084c8d6ebe7de9d2448248c575d7448afec6078ea90f09150079a33c96ea3b18b38b62005626db9e0c1bc201e5300954380e4dd0aa14b60ea9fd97
|
||||
DIST redox_hwio-0.1.3.crate 3264 BLAKE2B e4a1f50d8f45ce3ab7a9760f070f9882930f3b0be7754854577d483e6bbd797f1f5e5ca16dc3677351572882368597ceeaad9ff7cdcc0f91195634524245c96e SHA512 d3cc726435da87dbb10adc7ce65257e0a3e9f9668b28fd4667027c9bbcad4ec9659c3fc7c91e94aac24cd8d6439036546d13e2134eaea7209c6265b3fa67bb66
|
||||
DIST strsim-0.8.0.crate 9309 BLAKE2B 40a8be506c43ee1ffe006ddc7dee98c3d418bdd205d57b78f5d1e4c9312feb57e1eaf952e02d92d4e0932db240c6fba45beb06ea8c4fc6de1cf1faa8b6a3a939 SHA512 1d55a8d946cd55f5f37d06aea536549ded95739fa58c0f2da285a0041154c181f663682bdcac643aa198b3e762d694a04f058db985c62ebe22b5c16327ba6d34
|
||||
DIST textwrap-0.11.0.crate 17322 BLAKE2B 257428908342774593bbd3528fcdae710712ff54e8a711393a24356d8ba0e16e466a4b20c05f942c48ca76b3b5b5aaa90ec202f782cad892caa8b71ccf124da6 SHA512 f5c0fe4f28ff1a3a0931e8e235b5157a45f67967985bcc752418c5ec3481fca44a8ae4800088889b37e8cd0533f53d3c456d5ffd19b767b3f83a87b49a2e209a
|
||||
DIST unicode-width-0.1.8.crate 16732 BLAKE2B 5aa7b87eef1322e4151a3fcf981ade311b8fa030527d7561815950e58d3f15156163dfe34da6a708c37dccc3f7652bf7fc2cd899fe8bb0118b67c4113ff3a2d2 SHA512 0abba6da6981a2451e01d93bbd47652c46eb6fb07cc0214f33259fb29945bfd5ee2b302e883ddca8f68e921635f222701b7310e7da2a5e225f854980d1e474b0
|
||||
DIST vec_map-0.8.2.crate 14466 BLAKE2B 8f109fbff19604b82ea2aa61c952e2ce9b5597ccc8e1ef4e847648e2de08dece8c4debe92889edeccb8d393645fd0b62436b49d236ded7ad181c4a51239a9539 SHA512 4f1ef59bc2c437e79f1f84fe021bce5aa8ccd581f500f3d5776913d5f17d45b03ccee64f5bd03d47656318cfc9344a1f4311079d471fa409a8e4e94c143973f9
|
||||
DIST winapi-0.3.9.crate 1200382 BLAKE2B cb5799749ccd935ea2d7068d953cecf19f543d9db7dc16ad4584bb7005373ada34937a3ced7225544d8bc765da599911c7a3190efefb3a25b7c1bb7123b4f673 SHA512 ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97
|
||||
DIST winapi-i686-pc-windows-gnu-0.4.0.crate 2918815 BLAKE2B 4d357e4d30f9552972170d65b9a5358b69c46a3e772fe05efc22f3d4ffc1caeeaad7aacdc7abd503a7ad0545f8bd7d22bf351dcb6df76f812fa4d45c34d65df0 SHA512 a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2
|
||||
DIST winapi-x86_64-pc-windows-gnu-0.4.0.crate 2947998 BLAKE2B 2ad1ea8b5fa07d544e910ccba043ae925269b76b26c9da356305b34b86741dd8b9aff0b9ffe3d562db4fcd7d7c46a11ce9e3168b782b1d89ae6881742b7ede82 SHA512 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
|
|
@ -0,0 +1,44 @@
|
|||
# Copyright 2017-2024 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Auto-Generated by cargo-ebuild 0.5.4-r1
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
ansi_term@0.11.0
|
||||
atty@0.2.14
|
||||
bitflags@1.2.1
|
||||
cc@1.0.67
|
||||
clap@2.33.3
|
||||
downcast-rs@1.2.0
|
||||
hermit-abi@0.1.18
|
||||
hidapi@1.2.5
|
||||
libc@0.2.89
|
||||
pkg-config@0.3.19
|
||||
redox_hwio@0.1.3
|
||||
strsim@0.8.0
|
||||
textwrap@0.11.0
|
||||
unicode-width@0.1.8
|
||||
vec_map@0.8.2
|
||||
winapi@0.3.9
|
||||
winapi-i686-pc-windows-gnu@0.4.0
|
||||
winapi-x86_64-pc-windows-gnu@0.4.0
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
|
||||
EC_VERSION="l14-freeze-202404-test-20240425"
|
||||
|
||||
DESCRIPTION="Purism Librem EC tool"
|
||||
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
|
||||
SRC_URI="
|
||||
$(cargo_crate_uris ${CRATES})
|
||||
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
|
||||
RESTRICT="mirror"
|
|
@ -0,0 +1,36 @@
|
|||
{%- block header -%}
|
||||
# Copyright 2017-{{ this_year }} Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }}
|
||||
{% endblock %}
|
||||
EAPI={%- block eapi -%}7{%- endblock %}
|
||||
|
||||
{% block crates -%}
|
||||
CRATES="
|
||||
{% for crate in crates -%}
|
||||
{{ crate }}
|
||||
{%- endfor -%}"
|
||||
{%- endblock %}
|
||||
|
||||
inherit {% block inherit -%}cargo{%- endblock %}
|
||||
|
||||
EC_VERSION="l14-shutoff-202403"
|
||||
|
||||
DESCRIPTION={%- block description -%}"{{ description | trim }}"{%- endblock %}
|
||||
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
|
||||
SRC_URI={%- block src_uri -%}{% raw -%}"
|
||||
$(cargo_crate_uris ${CRATES})
|
||||
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
|
||||
"{%- endraw %}{%- endblock %}
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT={%- block slot -%}"0"{%- endblock %}
|
||||
KEYWORDS={%- block keyword -%}"~amd64"{%- endblock %}
|
||||
{% block variables -%}
|
||||
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
|
||||
RESTRICT="mirror"
|
||||
{%- endblock %}
|
||||
|
||||
{%- block phases -%}
|
||||
{%- endblock -%}
|
|
@ -0,0 +1,20 @@
|
|||
DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e121acf4a95d130866f37ac0113a8697df1996c13bbf65e14f4a5703f7bb3f4dd3ebfb29e258ca358d191c0580a7f8e61fbf7c0c SHA512 3fc49566b23ef50590a3b9f90eb99558c9e37847259e0defdfb0ca036c37b7f45c4989d58787b8488c67ea031114173319346c1c17799680ebfdc581ae7e4588
|
||||
DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041
|
||||
DIST genpatches-6.6-54.base.tar.xz 2922380 BLAKE2B f65404127bb6547208aeddac1996a4a2659bd99ff7429bcaff28247a867c000e962457725eab80db2c76297f1e5c27806dc6fb23e31d5694b6df783e65995227 SHA512 102f721f87478ad18599bb5ff65cd236180dd3d9d058786a5306cb36be3f30a2d2ef684e83b6f458d4de78a196323e87d346eba704bfbce733010aed6ac3d7f9
|
||||
DIST genpatches-6.6-54.extras.tar.xz 4060 BLAKE2B 22ea7d143bfe168bc5d9d30832423bcd33b49c1b3b5ddf031000d7d9fce96f6fa0fb1d06fd33b27a5de9c9f3833a139557f0ed7408ef12b23568784ff38ca7a9 SHA512 1b1a229b5923e7f3426139b17608b5feae6061313f7aea66de23f09a54696def39bf4b384c4e884a3e5c758c08e04dcfe1ab7f2aa331db74b59f5e511c6f2c5b
|
||||
DIST genpatches-6.6-58.base.tar.xz 3154204 BLAKE2B 5b9456e93cb0984599e065fab0d05e40b7efbc8079763ede75ed7a6e7f0e241de96f0c6438cde52f64a5074f5bfcc5d55b5d3c21a9e9528138ea5c36e164ea58 SHA512 e775ac64564c201c3e1293d34a70f347a5afd5691a006d958f69959d2eea0af690cf66f7bdd450034ef9eb43daeccbedd58819dc688cd3e7e9933da9312cbf75
|
||||
DIST genpatches-6.6-58.extras.tar.xz 4060 BLAKE2B 7e16c5d713aaf221335b81f3a301e9bb1e7f243d9bc6739c3dd07bb3cfedbe6bd5a763ce418172c838fbd3de82909cabff7c2e5c4b4f1b675098b709ddc5203e SHA512 315bfdf633398b3b1a9650dae88fdd0c1442336cabe45a3f2722e968f510da13050657e8d35acf8a313981bd9403f5056abea182a0115a79952a2740ceb4ff88
|
||||
DIST genpatches-6.6-65.base.tar.xz 3582916 BLAKE2B 3d750c677e61c122144de989a55db6f04a2a545981858b71c602c156f802478ad19f4d87629760be724a9b522b377479df9f0c5f9a859235c5fc438df95c2aae SHA512 1ac5e7fb36e50227a6bdf035562f11401ef6a19c1a7af2d001d224b8710e3aa10434d828a3a0213a1f5cce101992bb803199e5d4e76474b657dc5c4d6328c385
|
||||
DIST genpatches-6.6-65.extras.tar.xz 4060 BLAKE2B 53cdbf5d680c9943d189e7606caa10c18bd3317789ffc1f120bf535255d80bfb5e3969fe952eb0da3c1001ee41e93755616332363465d4714a67a90140c43bfb SHA512 b5b3c817426be391a72633740beb4ba7b4e2546ee441081906d77ba31636321501af414140d487d284de325f80d004aefb241f3e349ef3ccd62d2c6fc4d7cf7e
|
||||
DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6
|
||||
DIST gentoo-kernel-config-g14.tar.gz 5686 BLAKE2B e5147ff4ffab92428b3e7f1b0897b997f8a298805f4f43b0a4d3047607bbb1a5ebfc268e0bb9688372a5eda561df9f256c78e00cdd7e3caf7868724214722f56 SHA512 f79638f9ff9dd0154512baf0234024216b6708d35a3c03a580ca5913286ad1ea13bdde5ea9b4722c6a7cd8d591c11ec52c1e225111a260343cd56aa1f1a88502
|
||||
DIST kernel-x86_64-fedora.config.6.1.102-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c
|
||||
DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa0ba395570cd0173af0210afe63faa48d7a147327110652e3aab5c339cf10ed22a6a20e81e505aee84311beb21fda3eb577e06ea55ecac8 SHA512 c484403a60670dd006ecbe65240cb00d97e8b3fe22d1169c5b6ccb92bcdbddb3ecd474d2b57880b30baf6a38bcef11fc8d56b8b0b02fcddd859833c3640cdc9c
|
||||
DIST linux-libre-5.15.165-gnu.tar.xz 119931308 BLAKE2B 312d6a2091f48fe013d9207c749ff6fd850565e1a77b8bd437167fe8b7863f2b4c39b4ee43bd00614c3b8229a6de2ae671863e1a258e8248d8dc19e5333e309d SHA512 475063e224e3fc3c9bcc64b79dc5d3e41159bbf144c7cd1dd7b024c90996d788718b1ebceb19412b357cb6b8976f7135ad202a2b36197dbb7a311c4b1be9997b
|
||||
DIST linux-libre-5.15.165-gnu.tar.xz.sign 195 BLAKE2B 69c860aeb656c3207d31209ff71c8d75aab95842611500aec2c59ab222ff7e2c27535cbe952da02edfa425afb6c18cd4a29668e0a46a40ee295bfad856e26287 SHA512 7418b5312cf8a2c5f0ab00f1a3906858256a1d172adfc493d95f7e1f06ece7efa00c9bc71b9cccf447bbb6b76c42ee8201044d46fa028b49be47edcc05983c77
|
||||
DIST linux-libre-6.6.47-gnu.tar.xz 131910236 BLAKE2B 34c90f7f96a00b05f6de5bab316a538f091afbc34c5d5abe5febb930077e81426bafa0f1997b25b1acb67242691e2b782a18f878f271b172cf37757862df9cc0 SHA512 305a92fcbe22efc33c1098156195c281fc9235a39151a59f32ff1de515409732f5793eacccec83c089925f5cc206baf28b16002e1010c95db5af56ed041869cc
|
||||
DIST linux-libre-6.6.47-gnu.tar.xz.sign 195 BLAKE2B ebc1564bc0b0de60050af17f78af8b6ba38aa59bba52c4b9c1a2f32e941fe6214ed42b5e4e986700a3e5871b4298bfac06790cb7b903830b34639eb2a8d6a44d SHA512 8a88e80b8702d1d68ad012dd72ccc32e512fdf994761850f187a19e90cd1534588150fdd2dfb942a152b1c56cd3f5ac5fba0586cb784a3d7af13c9ca517f6199
|
||||
DIST linux-libre-6.6.51-gnu.tar.xz 131971516 BLAKE2B f39f9c6b61eb2c1a479082f7f8054973fc532a363ce79251fc0cddf3651302835959e3177fb1b1cd87ad4246fba04bf99d0ddb362064ad4d67a3104def5988f5 SHA512 aa00b79c71d7d496546a85e31e0d53b706e03c7f6aa067ca1a09fc841ed062efb6a194f25ec0cf7ad27f239d90524b88f6e90d76e6d88f0d4fa0cc65bdf2a342
|
||||
DIST linux-libre-6.6.51-gnu.tar.xz.sign 195 BLAKE2B 53b3cc4f8a7ebeb10e43bed19cfd1b009b925c77116846169084491c44c27b18edb4f6cc60283bfee16f45dd4cf9b94b992067bcd6871848c2a02f176468507a SHA512 b0ba576d98b682a4ab19936228540b551cd2dbb0157046d17f964974862b8189c0b40877fe848e96e396b8bf9d970120562afdf9dbefdd98bfd5acdfb526abb3
|
||||
DIST linux-libre-6.6.58-gnu.tar.xz 131974404 BLAKE2B 36b2c780289aa047ef935ab033f593a11326c827a3ee3b94ad93904d639d94d36cad8ae48eb47371b68418fdfd615033922800686be9675ca0c6eca43aa2b0f0 SHA512 551d27412b42877de5a38e20dbcd2f6bda041e1f64a91da805725253956206adf8d19b5a56af5b15693e8dd486f73451615d96002c532f994ff4961801fef1c9
|
||||
DIST linux-libre-6.6.58-gnu.tar.xz.sign 195 BLAKE2B 6012a731e63d326d59ae3bfc9532ecb80ca63a9936c4d2524acd0773d67d7faa7862ea6a59ee85862c347868e3c5ed872d38f76c893de5626f0eea4432ac98f0 SHA512 76e0ecd9d63fc66a4bbf7d02e4de4d5e30541ef6ca4b0dfb467ef42669f8ce00ec4e461714f4ab036e04b0b35c9809adf83870ff3559a5a24e42cc86fcea6c83
|
|
@ -0,0 +1,148 @@
|
|||
# Copyright 2020-2024 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build verify-sig
|
||||
|
||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||
RESTRICT="mirror"
|
||||
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
|
||||
CONFIG_VER=6.1.102-gentoo
|
||||
#CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||
GENTOO_CONFIG_VER=g13
|
||||
|
||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
SRC_URI+="
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
|
||||
# Workdir is named linux-PV.
|
||||
MY_P=linux-${PV}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="debug +gentoo"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
||||
ewarn "but it is configured to install non-Free firmware files."
|
||||
ewarn "The non-Free firmware files may be required for some hardware"
|
||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
||||
ewarn "To install only the Free firmware, set the -redistributable"
|
||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to change or remove linux-firmware later, you"
|
||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
else
|
||||
if ! has_version -d sys-kernel/linux-firmware; then
|
||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
||||
ewarn "on your system. This package provides various firmware files that"
|
||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
||||
ewarn "to pause or abort the build process and install it before"
|
||||
ewarn "resuming."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
||||
elog "the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
||||
verify-sig_verify_detached $FILE $SIGFILE
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES
|
||||
if use gentoo; then
|
||||
# Fiters out the kernel incremental version upgrade patches,
|
||||
# leaving only the Gentoo bug fix/functionality changes. The
|
||||
# regex removes any patches starting with 10XX to 14XX.
|
||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
||||
else
|
||||
# If no patches are to be applied, apply only the config changes
|
||||
# for a Gentoo installation, as this does not change any actual
|
||||
# Kernel functionality.
|
||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
||||
die 'could not remove EXTRAVERSION'
|
||||
|
||||
local myversion="-gnu-dist"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
# Copyright 2020-2024 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build verify-sig
|
||||
|
||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||
RESTRICT="mirror"
|
||||
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
#CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||
GENTOO_CONFIG_VER=g13
|
||||
|
||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
SRC_URI+="
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
|
||||
# Workdir is named linux-PV.
|
||||
MY_P=linux-${PV}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="debug +gentoo"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
||||
ewarn "but it is configured to install non-Free firmware files."
|
||||
ewarn "The non-Free firmware files may be required for some hardware"
|
||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
||||
ewarn "To install only the Free firmware, set the -redistributable"
|
||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to change or remove linux-firmware later, you"
|
||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
else
|
||||
if ! has_version -d sys-kernel/linux-firmware; then
|
||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
||||
ewarn "on your system. This package provides various firmware files that"
|
||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
||||
ewarn "to pause or abort the build process and install it before"
|
||||
ewarn "resuming."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
||||
elog "the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
||||
verify-sig_verify_detached $FILE $SIGFILE
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES
|
||||
if use gentoo; then
|
||||
# Fiters out the kernel incremental version upgrade patches,
|
||||
# leaving only the Gentoo bug fix/functionality changes. The
|
||||
# regex removes any patches starting with 10XX to 14XX.
|
||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
||||
else
|
||||
# If no patches are to be applied, apply only the config changes
|
||||
# for a Gentoo installation, as this does not change any actual
|
||||
# Kernel functionality.
|
||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
||||
die 'could not remove EXTRAVERSION'
|
||||
|
||||
local myversion="-gnu-dist"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
# Copyright 2020-2024 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build verify-sig
|
||||
|
||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||
RESTRICT="mirror"
|
||||
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
#CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||
GENTOO_CONFIG_VER=g13
|
||||
|
||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
SRC_URI+="
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
|
||||
# Workdir is named linux-PV.
|
||||
MY_P=linux-${PV}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="debug +gentoo"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
||||
ewarn "but it is configured to install non-Free firmware files."
|
||||
ewarn "The non-Free firmware files may be required for some hardware"
|
||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
||||
ewarn "To install only the Free firmware, set the -redistributable"
|
||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to change or remove linux-firmware later, you"
|
||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
else
|
||||
if ! has_version -d sys-kernel/linux-firmware; then
|
||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
||||
ewarn "on your system. This package provides various firmware files that"
|
||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
||||
ewarn "to pause or abort the build process and install it before"
|
||||
ewarn "resuming."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
||||
elog "the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
||||
verify-sig_verify_detached $FILE $SIGFILE
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES
|
||||
if use gentoo; then
|
||||
# Fiters out the kernel incremental version upgrade patches,
|
||||
# leaving only the Gentoo bug fix/functionality changes. The
|
||||
# regex removes any patches starting with 10XX to 14XX.
|
||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
||||
else
|
||||
# If no patches are to be applied, apply only the config changes
|
||||
# for a Gentoo installation, as this does not change any actual
|
||||
# Kernel functionality.
|
||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
||||
die 'could not remove EXTRAVERSION'
|
||||
|
||||
local myversion="-gnu-dist"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
# Copyright 2020-2024 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit kernel-build verify-sig
|
||||
|
||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||
RESTRICT="mirror"
|
||||
|
||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
|
||||
CONFIG_VER=6.6.12-gentoo
|
||||
#CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||
GENTOO_CONFIG_VER=g14
|
||||
|
||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
SRC_URI+="
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||
verify-sig? (
|
||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||
)
|
||||
amd64? (
|
||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
||||
)
|
||||
"
|
||||
|
||||
# Workdir is named linux-PV.
|
||||
MY_P=linux-${PV}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="debug +gentoo"
|
||||
|
||||
BDEPEND="
|
||||
debug? ( dev-util/pahole )
|
||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
||||
"
|
||||
PDEPEND="
|
||||
>=virtual/dist-kernel-${PV}
|
||||
"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
||||
ewarn "but it is configured to install non-Free firmware files."
|
||||
ewarn "The non-Free firmware files may be required for some hardware"
|
||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
||||
ewarn "To install only the Free firmware, set the -redistributable"
|
||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to change or remove linux-firmware later, you"
|
||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
else
|
||||
if ! has_version -d sys-kernel/linux-firmware; then
|
||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
||||
ewarn "on your system. This package provides various firmware files that"
|
||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
||||
ewarn "to pause or abort the build process and install it before"
|
||||
ewarn "resuming."
|
||||
|
||||
if use initramfs; then
|
||||
elog
|
||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
||||
elog "the initramfs via issuing a command equivalent to:"
|
||||
elog
|
||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if use verify-sig; then
|
||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
||||
verify-sig_verify_detached $FILE $SIGFILE
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES
|
||||
if use gentoo; then
|
||||
# Fiters out the kernel incremental version upgrade patches,
|
||||
# leaving only the Gentoo bug fix/functionality changes. The
|
||||
# regex removes any patches starting with 10XX to 14XX.
|
||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
||||
else
|
||||
# If no patches are to be applied, apply only the config changes
|
||||
# for a Gentoo installation, as this does not change any actual
|
||||
# Kernel functionality.
|
||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
||||
fi
|
||||
|
||||
default
|
||||
|
||||
local biendian=false
|
||||
|
||||
# prepare the default config
|
||||
case ${ARCH} in
|
||||
amd64)
|
||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||
;;
|
||||
*)
|
||||
die "Unsupported arch ${ARCH}"
|
||||
;;
|
||||
esac
|
||||
|
||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
||||
die 'could not remove EXTRAVERSION'
|
||||
|
||||
local myversion="-gnu-dist"
|
||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
||||
|
||||
local merge_configs=(
|
||||
"${T}"/version.config
|
||||
"${dist_conf_path}"/base.config
|
||||
)
|
||||
use debug || merge_configs+=(
|
||||
"${dist_conf_path}"/no-debug.config
|
||||
)
|
||||
|
||||
# this covers ppc64 and aarch64_be only for now
|
||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
||||
fi
|
||||
|
||||
kernel-build_merge_configs "${merge_configs[@]}"
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>projectmoon@agnos.is</email>
|
||||
<name>projectmoon</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="initramfs">Build initramfs along with the kernel.</flag>
|
||||
<flag name="gentoo">Apply selected patches from the Gentoo kernel patchset.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
|
@ -1,3 +0,0 @@
|
|||
DIST linux-5.10.tar.xz 114230900 BLAKE2B 86103699a6bc906e85429430df098b0ddb7cfc8c887f98b37f994498388d634554e119eadb1b15f591bdf4f463e7efb7420e3e370af0029b7ed9e988a5f26b01 SHA512 ccc52db049a66ff146d9fc84fb00e783f2d04211156233a382f87589fec7631b8fbb3e76bfd94279607b883d25f9745e6c7d2bd62b13311dc6b425002bd42ec0
|
||||
DIST patch-5.10-gnu-5.10.47-gnu.xz 1542276 BLAKE2B 88c69d768103da84571bc3ec3a819dd41cd543411a191f25a8f8e8f3c5472c9f78a364845203b090e911e8dcc13d20cfddbfc533adef052652d95d97c6c7bf61 SHA512 deb1ea9b54af09c3ea48ee066a8a315da0d82459c3e46cbcff71d69de5a6549ebe75fb9ce94da89164338dc2680f312f8ff8ef7ac35d40ce404b1bbb679661cf
|
||||
DIST patch-5.10-gnu-5.10.48-gnu.xz 1542880 BLAKE2B 26dd0d4b9a60c315aa9ebf376ab29c6a93d75a7be554af75df4e0d6a81252ae8d72b5d26daab9ac6e0010cb024f36b681da6610fae91d1423abee5a76eecc54a SHA512 60751c93cb5f8fbe65ea8709f5dd35783840c2e912010ac87101882035540cc7983a6d92720647cbaa2f054492a3ad1f0e6118354e632c5e9abbaa4151278649
|
|
@ -1,26 +0,0 @@
|
|||
EAPI="6"
|
||||
K_SECURITY_UNSUPPORTED="1"
|
||||
K_PREDEBLOBBED="1"
|
||||
ETYPE="sources"
|
||||
inherit kernel-2
|
||||
detect_version
|
||||
|
||||
DESCRIPTION="Full sources for the Linux Libre kernel"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
|
||||
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
|
||||
SRC_URI="${BASE_URI} ${PATCH_URI}"
|
||||
RESTRICT="mirror"
|
||||
KEYWORDS="~amd64"
|
||||
UNIPATCH_LIST_DEFAULT=""
|
||||
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-5.10.47-gnu.xz"
|
||||
|
||||
pkg_postinst() {
|
||||
kernel-2_pkg_postinst
|
||||
einfo "For more info on this patchset, and how to report problems, see:"
|
||||
einfo "${HOMEPAGE}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
kernel-2_pkg_postrm
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
EAPI="6"
|
||||
K_SECURITY_UNSUPPORTED="1"
|
||||
K_PREDEBLOBBED="1"
|
||||
ETYPE="sources"
|
||||
inherit kernel-2
|
||||
detect_version
|
||||
|
||||
DESCRIPTION="Full sources for the Linux Libre kernel"
|
||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||
BASE_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${KV_MAJOR}.${KV_MINOR}-gnu/linux-libre-${KV_MAJOR}.${KV_MINOR}-gnu.tar.xz -> linux-${KV_MAJOR}.${KV_MINOR}.tar.xz"
|
||||
PATCH_URI="http://linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-gnu/patch-${KV_MAJOR}.${KV_MINOR}-gnu-${PV}-gnu.xz"
|
||||
SRC_URI="${BASE_URI} ${PATCH_URI}"
|
||||
RESTRICT="mirror"
|
||||
KEYWORDS="~amd64"
|
||||
UNIPATCH_LIST_DEFAULT=""
|
||||
UNIPATCH_LIST="${DISTDIR}/patch-5.10-gnu-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}-gnu.xz"
|
||||
|
||||
pkg_postinst() {
|
||||
kernel-2_pkg_postinst
|
||||
einfo "For more info on this patchset, and how to report problems, see:"
|
||||
einfo "${HOMEPAGE}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
kernel-2_pkg_postrm
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
DIST librem-ec-acpi-dkms-v0.9.1.tar.gz 13003 BLAKE2B 87d7988be2de75d491eaaa49918db354d426deefd57b4afa72b1447e5993d9b5b06b6964092c050ef039d7d9faa33e55137c1879a1b959e6f4f3ce877137e6db SHA512 93ee26917eddbef9aa9c0eb83007452ebf57c279f41c3061ee52756bb1f748c72935067b19c3417ed7b8a9795990b0f060241c0b7f2348d7f8ec01e9f88dcd3c
|
||||
DIST librem-ec-acpi-dkms-v0.9.2.tar.gz 13093 BLAKE2B 0c29aeec2f4804be98f628b16c2219acf805d3659d8dd4797db2cdcc94316bfb5ab5c396d2b3584de12b573907e671b0422e89c0a774516e4b1e573032fd5843 SHA512 b5d10fcf34a8b424138f9db1b06e916d809462ea55c7ca2565f13154da4fa49736ac95fb1b131c27ee49aa5f170f3e8a1a9c9a61c69e0364bcee37669759e8f6
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 2021 projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit linux-info linux-mod
|
||||
|
||||
DESCRIPTION="Librem EC ACPI Driver"
|
||||
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
|
||||
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="dist-kernel"
|
||||
RDEPEND="dist-kernel? ( virtual/dist-kernel:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
|
||||
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
|
||||
BUILD_TARGETS="clean all"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Makefile hardcoded to point at running kernel
|
||||
# but we want the user-chosen kernel.
|
||||
linux-info_get_any_version
|
||||
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
||||
|| die "could not set kernel version in makefile"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if ! use kernel_linux ; then
|
||||
die "Unable to install"
|
||||
fi
|
||||
|
||||
BUILD_PARAMS="KV=${KV_FULL} KSRC=${KERNEL_DIR} KERNELDIR=${KV_DIR}"
|
||||
linux-mod_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
einstalldocs
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
# Copyright 2021 projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit linux-info linux-mod
|
||||
|
||||
DESCRIPTION="Librem EC ACPI Driver"
|
||||
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
|
||||
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
|
||||
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
|
||||
BUILD_TARGETS="clean all"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Makefile hardcoded to point at running kernel
|
||||
# but we want the user-chosen kernel.
|
||||
linux-info_get_any_version
|
||||
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
||||
|| die "could not set kernel version in makefile"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
BUILD_PARAMS="KERNELDIR=${KV_DIR}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
einstalldocs
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 2021-2023 projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit linux-info linux-mod
|
||||
|
||||
DESCRIPTION="Librem EC ACPI Driver"
|
||||
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
|
||||
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="dist-kernel"
|
||||
RDEPEND="dist-kernel? ( virtual/dist-kernel:= )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
|
||||
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
|
||||
BUILD_TARGETS="clean all"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Makefile hardcoded to point at running kernel
|
||||
# but we want the user-chosen kernel.
|
||||
linux-info_get_any_version
|
||||
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
||||
|| die "could not set kernel version in makefile"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if ! use kernel_linux ; then
|
||||
die "Unable to install"
|
||||
fi
|
||||
|
||||
BUILD_PARAMS="KV=${KV_FULL} KSRC=${KERNEL_DIR} KERNELDIR=${KV_DIR}"
|
||||
linux-mod_pkg_setup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
einstalldocs
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
DIST librem-control-9999.tar.gz 19126 BLAKE2B e5721e04c8a7996e35aa51f40e4d56acb9f59880a8266b0d6e5c515b2a6367d628973113c9776ef7d79070d7dfeda09704686340843c835e685a93922756f841 SHA512 0d3bd3d38bc0c3f476d96214e68883a2f6ad270842b4b4922ea0f4706aaf14f188ebf08f0a23fd5524c9f8e3360aa70288b0c730d56df69b0c0f137d2694e8e7
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2022 Gentoo Authors, projectmoon
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit gnome.org xdg
|
||||
|
||||
MY_COMMIT="a19bfbf4f6bd1d2b0d2d6abf02252e1e0cbc2d61"
|
||||
RESTRICT="mirror"
|
||||
|
||||
DESCRIPTION="App to control some system settings of Librem devices."
|
||||
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-control"
|
||||
SRC_URI="https://source.puri.sm/nicole.faerber/librem-control/-/archive/${MY_COMMIT}/${PN}-${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_COMMIT}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="
|
||||
>=sys-kernel/librem-ec-acpi-0.9.1-r1
|
||||
>=gui-libs/gtk-4.6:4
|
||||
>=sys-auth/polkit-121
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||
SLOT="0/${PVR}"
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
~sys-kernel/gentoo-kernel-${PV}
|
||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||
~sys-kernel/vanilla-kernel-${PV}
|
||||
~sys-kernel/libre-kernel-${PV}
|
||||
)
|
||||
"
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||
SLOT="0/${PVR}"
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
~sys-kernel/gentoo-kernel-${PV}
|
||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||
~sys-kernel/vanilla-kernel-${PV}
|
||||
~sys-kernel/libre-kernel-${PV}
|
||||
)
|
||||
"
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||
SLOT="0/${PVR}"
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
~sys-kernel/gentoo-kernel-${PV}
|
||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||
~sys-kernel/vanilla-kernel-${PV}
|
||||
~sys-kernel/libre-kernel-${PV}
|
||||
)
|
||||
"
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||
SLOT="0/${PVR}"
|
||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
~sys-kernel/gentoo-kernel-${PV}
|
||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||
~sys-kernel/vanilla-kernel-${PV}
|
||||
~sys-kernel/libre-kernel-${PV}
|
||||
)
|
||||
"
|
|
@ -0,0 +1,28 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Virtual for Linux kernel sources"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
IUSE="firmware"
|
||||
|
||||
RDEPEND="
|
||||
firmware? ( sys-kernel/linux-firmware )
|
||||
|| (
|
||||
sys-kernel/gentoo-sources
|
||||
sys-kernel/vanilla-sources
|
||||
sys-kernel/git-sources
|
||||
sys-kernel/mips-sources
|
||||
sys-kernel/pf-sources
|
||||
sys-kernel/rt-sources
|
||||
sys-kernel/zen-sources
|
||||
sys-kernel/raspberrypi-sources
|
||||
sys-kernel/gentoo-kernel
|
||||
sys-kernel/gentoo-kernel-bin
|
||||
sys-kernel/vanilla-kernel
|
||||
sys-kernel/linux-next
|
||||
sys-kernel/asahi-sources
|
||||
sys-kernel/libre-kernel
|
||||
)"
|
|
@ -0,0 +1,289 @@
|
|||
From 2ca65310de96d2493f5cfc8937239a00056d3f2b Mon Sep 17 00:00:00 2001
|
||||
From: projectmoon <projectmoon@agnos.is>
|
||||
Date: Fri, 4 Oct 2024 12:46:52 +0200
|
||||
Subject: [PATCH] remove files not needed for gentoo
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 -
|
||||
res/io.github.input_leap.InputLeap.desktop | 9 -
|
||||
res/io.github.input_leap.InputLeap.svg | 239 ---------------------
|
||||
3 files changed, 250 deletions(-)
|
||||
delete mode 100644 res/io.github.input_leap.InputLeap.desktop
|
||||
delete mode 100644 res/io.github.input_leap.InputLeap.svg
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d1d1d212..417d1845 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -303,8 +303,6 @@ elseif (UNIX AND NOT APPLE)
|
||||
install(FILES res/io.github.input_leap.InputLeap.appdata.xml DESTINATION share/metainfo)
|
||||
|
||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/rpm ${CMAKE_BINARY_DIR}/rpm)
|
||||
- install(FILES res/io.github.input_leap.InputLeap.svg DESTINATION share/icons/hicolor/scalable/apps)
|
||||
- install(FILES res/io.github.input_leap.InputLeap.desktop DESTINATION share/applications)
|
||||
endif()
|
||||
|
||||
#
|
||||
diff --git a/res/io.github.input_leap.InputLeap.desktop b/res/io.github.input_leap.InputLeap.desktop
|
||||
deleted file mode 100644
|
||||
index 13d9d73f..00000000
|
||||
--- a/res/io.github.input_leap.InputLeap.desktop
|
||||
+++ /dev/null
|
||||
@@ -1,9 +0,0 @@
|
||||
-[Desktop Entry]
|
||||
-Type=Application
|
||||
-Name=Input Leap
|
||||
-Comment=Keyboard and mouse sharing solution
|
||||
-Exec=input-leap
|
||||
-Icon=io.github.input_leap.InputLeap
|
||||
-Terminal=false
|
||||
-Categories=Network
|
||||
-Keywords=keyboard;mouse;sharing;network;share;
|
||||
diff --git a/res/io.github.input_leap.InputLeap.svg b/res/io.github.input_leap.InputLeap.svg
|
||||
deleted file mode 100644
|
||||
index 6b81c466..00000000
|
||||
--- a/res/io.github.input_leap.InputLeap.svg
|
||||
+++ /dev/null
|
||||
@@ -1,239 +0,0 @@
|
||||
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
-
|
||||
-<svg
|
||||
- width="100"
|
||||
- height="100"
|
||||
- viewBox="0 0 26.458333 26.458333"
|
||||
- version="1.1"
|
||||
- id="svg699"
|
||||
- inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||
- sodipodi:docname="io.github.input_leap.InputLeap.svg"
|
||||
- xml:space="preserve"
|
||||
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
- xmlns="http://www.w3.org/2000/svg"
|
||||
- xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
- id="namedview701"
|
||||
- pagecolor="#ffffff"
|
||||
- bordercolor="#000000"
|
||||
- borderopacity="0.25"
|
||||
- inkscape:showpageshadow="2"
|
||||
- inkscape:pageopacity="0.0"
|
||||
- inkscape:pagecheckerboard="0"
|
||||
- inkscape:deskcolor="#d1d1d1"
|
||||
- inkscape:document-units="mm"
|
||||
- showgrid="false"
|
||||
- showguides="false"
|
||||
- inkscape:zoom="4.0000001"
|
||||
- inkscape:cx="32.749999"
|
||||
- inkscape:cy="46.999999"
|
||||
- inkscape:window-width="2560"
|
||||
- inkscape:window-height="1412"
|
||||
- inkscape:window-x="0"
|
||||
- inkscape:window-y="0"
|
||||
- inkscape:window-maximized="1"
|
||||
- inkscape:current-layer="layer1"
|
||||
- inkscape:lockguides="false"><sodipodi:guide
|
||||
- position="13.229166,23.8125"
|
||||
- orientation="0,1"
|
||||
- id="guide10631"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="23.8125,13.229166"
|
||||
- orientation="-1,0"
|
||||
- id="guide10641"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="13.229166,2.6458333"
|
||||
- orientation="0,1"
|
||||
- id="guide10643"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="2.6458333,13.229166"
|
||||
- orientation="-1,0"
|
||||
- id="guide10645"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="13.229166,13.229166"
|
||||
- orientation="0,1"
|
||||
- id="guide10705"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(78,154,6)" /><sodipodi:guide
|
||||
- position="13.229167,6.0978193"
|
||||
- orientation="-1,0"
|
||||
- id="guide10707"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(78,154,6)" /><sodipodi:guide
|
||||
- position="17.271309,10.628642"
|
||||
- orientation="0.70710678,-0.70710678"
|
||||
- id="guide10709"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="13.229166,13.229166"
|
||||
- orientation="-0.70710678,-0.70710678"
|
||||
- id="guide10711"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="13.229166,22.489583"
|
||||
- orientation="0,1"
|
||||
- id="guide11277"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="3.96875,13.229166"
|
||||
- orientation="-1,0"
|
||||
- id="guide12005"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="13.229167,3.9687503"
|
||||
- orientation="0,1"
|
||||
- id="guide14185"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="22.400418,14.522835"
|
||||
- orientation="-1,0"
|
||||
- id="guide14187"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="39.495086,5.0181873"
|
||||
- orientation="0,1"
|
||||
- id="guide21375"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="17.784392,8.67394"
|
||||
- orientation="0,1"
|
||||
- id="guide22047"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="13.229166,21.166666"
|
||||
- orientation="0,1"
|
||||
- id="guide22049"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="5.2916666,13.229166"
|
||||
- orientation="-1,0"
|
||||
- id="guide22051"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="21.166666,13.229166"
|
||||
- orientation="-1,0"
|
||||
- id="guide22053"
|
||||
- inkscape:locked="false"
|
||||
- inkscape:label=""
|
||||
- inkscape:color="rgb(0,134,229)" /><sodipodi:guide
|
||||
- position="25.878604,5.0181873"
|
||||
- orientation="-0.70710678,-0.70710678"
|
||||
- id="guide7550"
|
||||
- inkscape:locked="false" /><sodipodi:guide
|
||||
- position="13.229167,2.0009114"
|
||||
- orientation="0,-1"
|
||||
- id="guide12036"
|
||||
- inkscape:locked="false" /><sodipodi:guide
|
||||
- position="0.046772166,30.808144"
|
||||
- orientation="0,-1"
|
||||
- id="guide454"
|
||||
- inkscape:locked="false" /></sodipodi:namedview><defs
|
||||
- id="defs696"><inkscape:path-effect
|
||||
- effect="spiro"
|
||||
- id="path-effect8894"
|
||||
- is_visible="true"
|
||||
- lpeversion="1" /><inkscape:path-effect
|
||||
- effect="spiro"
|
||||
- id="path-effect22164"
|
||||
- is_visible="true"
|
||||
- lpeversion="1" /><inkscape:path-effect
|
||||
- effect="bspline"
|
||||
- id="path-effect22045"
|
||||
- is_visible="true"
|
||||
- lpeversion="1"
|
||||
- weight="33.333333"
|
||||
- steps="2"
|
||||
- helper_size="0"
|
||||
- apply_no_weight="true"
|
||||
- apply_with_weight="true"
|
||||
- only_selected="false" /><inkscape:path-effect
|
||||
- effect="bspline"
|
||||
- id="path-effect22041"
|
||||
- is_visible="true"
|
||||
- lpeversion="1"
|
||||
- weight="33.333333"
|
||||
- steps="2"
|
||||
- helper_size="0"
|
||||
- apply_no_weight="true"
|
||||
- apply_with_weight="true"
|
||||
- only_selected="false" /><inkscape:path-effect
|
||||
- effect="spiro"
|
||||
- id="path-effect22017"
|
||||
- is_visible="true"
|
||||
- lpeversion="1" /><inkscape:path-effect
|
||||
- effect="spiro"
|
||||
- id="path-effect22013"
|
||||
- is_visible="true"
|
||||
- lpeversion="1" /><inkscape:path-effect
|
||||
- effect="spiro"
|
||||
- id="path-effect22005"
|
||||
- is_visible="true"
|
||||
- lpeversion="1" /><linearGradient
|
||||
- id="linearGradient11273"
|
||||
- inkscape:swatch="solid"><stop
|
||||
- style="stop-color:#ff00cf;stop-opacity:0.61176473;"
|
||||
- offset="0"
|
||||
- id="stop11271" /></linearGradient><linearGradient
|
||||
- id="linearGradient1606"
|
||||
- inkscape:swatch="solid"><stop
|
||||
- style="stop-color:#000000;stop-opacity:1;"
|
||||
- offset="0"
|
||||
- id="stop1604" /></linearGradient></defs><g
|
||||
- inkscape:label="Layer 1"
|
||||
- inkscape:groupmode="layer"
|
||||
- id="layer1"><rect
|
||||
- style="fill:#4096b9;fill-opacity:1;stroke:#233f92;stroke-width:0.265;stroke-dasharray:none;stroke-opacity:1"
|
||||
- id="rect925"
|
||||
- width="9.9269505"
|
||||
- height="7.4202018"
|
||||
- x="2.1983447"
|
||||
- y="4.1871085" /><path
|
||||
- style="fill:none;fill-opacity:1;stroke:#233f92;stroke-width:0.79375;stroke-dasharray:none;stroke-opacity:1"
|
||||
- d="M 8.3496831,12.332784 6.0193016,12.332106"
|
||||
- id="path37578"
|
||||
- sodipodi:nodetypes="cc" /><path
|
||||
- style="fill:none;fill-opacity:1;stroke:#233f92;stroke-width:0.264999;stroke-dasharray:none;stroke-opacity:1"
|
||||
- d="m 4.4758708,13.05758 5.4172431,3.4e-5"
|
||||
- id="path37578-9-5-3"
|
||||
- sodipodi:nodetypes="cc" /><path
|
||||
- id="path6593-5"
|
||||
- style="fill:#98c43d;fill-opacity:1;stroke:#040501;stroke-width:0.132;stroke-opacity:1;stroke-dasharray:none"
|
||||
- d="m 21.035357,13.274256 2.183939,-1.23e-4 c 2.97e-4,-0.01343 8.16e-4,-0.02646 0.0011,-0.0399 -0.0147,-5.0986268 -2.812533,-9.2048343 -6.314919,-9.2136068 l 0.437346,-1.968175 -3.978052,2.9383218 3.978051,3.0959351 -0.569186,-2.1248427 c 2.823247,0.1552185 4.250535,3.3859171 4.261687,7.3123976 z m -4.075233,-9.3292648 -3.3e-5,6.3e-6"
|
||||
- sodipodi:nodetypes="ccccccccccc" /><path
|
||||
- id="path6593-5-2"
|
||||
- style="fill:#98c43d;fill-opacity:1;stroke:#040501;stroke-width:0.132;stroke-opacity:1;stroke-dasharray:none"
|
||||
- d="m 7.3457166,14.047745 -2.183939,1.23e-4 c -2.97e-4,0.01343 -8.16e-4,0.02646 -0.0011,0.0399 0.0147,5.098626 2.8125329,9.204834 6.3149194,9.213606 l -0.437346,1.968175 3.978051,-2.938321 -3.97805,-3.095936 0.569185,2.124843 C 8.7841906,21.204917 7.3569025,17.974218 7.3457506,14.047738 Z m 4.0752334,9.329264 3.3e-5,-6e-6"
|
||||
- sodipodi:nodetypes="ccccccccccc" /><path
|
||||
- style="fill:#51d1cb;fill-opacity:1;stroke:#000000;stroke-width:0.132;stroke-dasharray:none;stroke-opacity:1"
|
||||
- d="m 19.376425,22.452116 1.631929,-0.859453 -2.918061,-2.013736 -2.918061,-2.013736 0.940335,6.605828 1.631929,-0.859451 0.761321,2.096398 2.485174,-1.308811 z"
|
||||
- id="path5593-5"
|
||||
- sodipodi:nodetypes="ccccccccc" /><path
|
||||
- style="fill:#279a95;fill-opacity:1;stroke:#00100f;stroke-width:0.132;stroke-dasharray:none;stroke-opacity:1"
|
||||
- d="m 21.185865,20.352059 1.631929,-0.859453 -2.918061,-2.013736 -2.918061,-2.013736 0.940335,6.605828 1.631929,-0.859451 0.761321,2.096398 2.485174,-1.308811 z"
|
||||
- id="path5593-5-6"
|
||||
- sodipodi:nodetypes="ccccccccc" /><path
|
||||
- style="fill:#1a625f;fill-opacity:1;stroke:#000000;stroke-width:0.132;stroke-dasharray:none;stroke-opacity:1"
|
||||
- d="m 23.030806,18.194971 1.631929,-0.859453 -2.918061,-2.013736 -2.918061,-2.013736 0.940335,6.605828 1.631929,-0.859451 0.761321,2.096398 2.485174,-1.308811 z"
|
||||
- id="path5593-5-2"
|
||||
- sodipodi:nodetypes="ccccccccc" /></g></svg>
|
||||
--
|
||||
2.46.2
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop virtualx xdg cmake git-r3
|
||||
|
||||
DESCRIPTION="Share a mouse and keyboard between computers (fork of Barrier)"
|
||||
HOMEPAGE="https://github.com/input-leap/input-leap"
|
||||
EGIT_REPO_URI="https://github.com/input-leap/input-leap.git"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="wayland gui test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
net-misc/curl
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXinerama
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXtst
|
||||
wayland? (
|
||||
dev-libs/libei
|
||||
dev-libs/libportal[inputcapture]
|
||||
)
|
||||
gui? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtwidgets:5
|
||||
net-dns/avahi[mdnsresponder-compat]
|
||||
)
|
||||
dev-libs/openssl:0=
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-cpp/gtest
|
||||
dev-cpp/gulrak-filesystem
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
|
||||
DOCS=(
|
||||
ChangeLog
|
||||
README.md
|
||||
doc/${PN}.conf.example{,-advanced,-basic}
|
||||
)
|
||||
|
||||
MYWORK="${WORKDIR}/input-leap-9999/"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/0001-remove-files.patch
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# gentoo is on qt5; but upstream defaults to 6.
|
||||
local mycmakeargs=(
|
||||
-DQT_DEFAULT_MAJOR_VERSION=5
|
||||
-DBARRIER_BUILD_GUI=$(usex gui)
|
||||
-DBARRIER_BUILD_INSTALLER=OFF
|
||||
-DBARRIER_BUILD_TESTS=$(usex test)
|
||||
-DINPUTLEAP_BUILD_LIBEI=$(usex wayland)
|
||||
-DBARRIER_REVISION=00000000
|
||||
-DBARRIER_USE_EXTERNAL_GTEST=ON
|
||||
-DBARRIER_VERSION_STAGE=gentoo
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${BUILD_DIR}"/bin/unittests || die
|
||||
virtx "${BUILD_DIR}"/bin/integtests || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
einstalldocs
|
||||
doman doc/${PN}{c,s}.1
|
||||
|
||||
if use gui; then
|
||||
doicon -s 256 res/${PN}.png
|
||||
make_desktop_entry ${PN} "Input Leap" ${PN} Utility
|
||||
fi
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zdanevich.vitaly@ya.ru</email>
|
||||
<name>Vitaly Zdanevich</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="libei">
|
||||
Enable integration with dev-libs/libei (requires patched libportal!)
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">input-leap/input-leap</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue