первая публикация
This commit is contained in:
2
app-editors/sublime-merge/Manifest
Normal file
2
app-editors/sublime-merge/Manifest
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DIST sublime_merge_build_2091_x64.tar.xz 5347224 BLAKE2B 5027eb92f6a67764bba7928469cc2fb53478946a5ab1121a8ea6e8096c191e09fbe62cce6dfca1ec60a87f0eac60a971e6a53f0a5049a45ad97e27a1d407edcf SHA512 ccad0b16941539788ffd7f549eb3ffa2089a483b0aaa1fa9dc48dba4840342e79735cd16305f83dacf706780f099036c17fa348b7c22d5cfe7244cbb29d57e3e
|
||||||
|
EBUILD sublime-merge-2091.ebuild 1334 BLAKE2B b672347f9b5098ef6c44c282c1abd2c72873fb56b9b6fc6bc13ef35d492c9cecd7df066b6cbf426687b5d66be32a1ff9f654011cf7cf2305da2ab0c1b283a969 SHA512 bc1928821630b33f5359ca8343d0dd4ede194dfa13ecf1c706136334f9fb5e9ad9c39b80e8e2f398bf1aeb6bce3ced0299771120c0d932732ef8199de606535e
|
||||||
57
app-editors/sublime-merge/sublime-merge-2091.ebuild
Normal file
57
app-editors/sublime-merge/sublime-merge-2091.ebuild
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit eutils gnome2-utils
|
||||||
|
|
||||||
|
# get the major version from PV
|
||||||
|
# MV=${PV:0:1}
|
||||||
|
# MY_PV=${PV#*_beta}
|
||||||
|
|
||||||
|
DESCRIPTION="Meet a new Git Client, from the makers of Sublime Text"
|
||||||
|
HOMEPAGE="https://www.sublimemerge.com/"
|
||||||
|
SRC_URI="https://download.sublimetext.com/sublime_merge_build_${PV}_x64.tar.xz"
|
||||||
|
S=${WORKDIR}/sublime_merge
|
||||||
|
|
||||||
|
LICENSE="Sublime"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="dbus"
|
||||||
|
RESTRICT="bindist mirror strip"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/glib:2
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
x11-libs/libX11
|
||||||
|
dbus? ( sys-apps/dbus )"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /opt/sublime_merge
|
||||||
|
exeinto /opt/sublime_merge
|
||||||
|
|
||||||
|
doins -r Packages Icon
|
||||||
|
doexe sublime_merge
|
||||||
|
|
||||||
|
dosym /opt/sublime_merge/sublime_merge /usr/bin/sublime_merge
|
||||||
|
|
||||||
|
# local size
|
||||||
|
# for size in 32 48 128 256; do
|
||||||
|
# dosym ../../../../../../opt/${PN}${PV}/Icon/${size}x${size}/sublime-merge.png \
|
||||||
|
# /usr/share/icons/hicolor/${size}x${size}/apps/sublime-merge.png
|
||||||
|
# done
|
||||||
|
|
||||||
|
# make_desktop_entry "sublime-merge" "Sublime Merge ${PV}" "sublime-merge" \
|
||||||
|
# "TextEditor;IDE;Development" "StartupNotify=true"
|
||||||
|
|
||||||
|
# needed to get WM_CLASS lookup right
|
||||||
|
# mv "${ED%/}"/usr/share/applications/subl{-sublime-merge,}.desktop || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
gnome2_icon_cache_update
|
||||||
|
}
|
||||||
15
app-emulation/wine-staging/Manifest
Normal file
15
app-emulation/wine-staging/Manifest
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
AUX wine-staging-7.17-noexecstack.patch 223 BLAKE2B 6e6cfc208f11c2c2b7bbc392e3703c50669ba9abf088dac0dd7aa8d6e59fcdd6656f5ad6955e4ef87c25d6f4082d83af71a09b2928934222b25847b8b2b5089f SHA512 43fc5c50c33e09f028c2369a660499fbb6c240931c6b7d44c4e838deee1df0390706967b375d36ee8eea339e86a5af1c7a49a76d884860c045c3476d8c8d2a5f
|
||||||
|
AUX wine-staging-7.20-unwind.patch 1450 BLAKE2B 80e9222c95393aaa4b95e05597a4181030fc988d95e416d2f92631f29f640b9abb3dd0853d005de4725b41c09224e478741902075259d48a30830a923790579f SHA512 e1a72f1463be32975daa02064acb96189cd79cb41ff98f89b58e46c97100a3ac46405b1b9982378c9de275acbdb74168853e47b932e06398cdd2981b23f483ce
|
||||||
|
DIST wine-8.0.tar.xz 29054044 BLAKE2B baf8f96b665119c9f38a148a2472dbe8f6ca8d4641d9d09d48cb72cb4de2585c274b8b7981c2fa622ead6da2f087c57652e9b48edc8a17c0cfd6be9a36732f02 SHA512 53ba813b260a65a271ec575822725b97631f60038fb026dcc0fe66862711eedcc29a8feb29ff54ae4f64458f85c290d8f3838eff5e4c77a5420a7d2b951fef77
|
||||||
|
DIST wine-8.3.tar.xz 28983532 BLAKE2B b811a13aaa87f186c744254059d40fdf0740da42cf788acb2375c04cf3ecc281c92afc7bb7830d5797624d96f803edcb2d2778c5da378d89938fe0b68e72a287 SHA512 9c0c86f1d523cc65fe6bcb2f98e73f8909282eda1c04516ff35a32833e469421e099fe1351c3078ac96aa7884fc194a77fcf2ba8863e2a227316fd84562f1f5a
|
||||||
|
DIST wine-8.4.tar.xz 29031312 BLAKE2B 0b91267a68e4e332544d273646bb1e9389c3af3f48069ab7942096af5512e86a61d39788d91c221b4ae96e81858cfdff1e43a658ba407ff1450b6d752b8a3235 SHA512 8de144a65c0a3a2984fabc1294b647b8581da5fa8bd28a9ff756ab59256ee2b453d898453fc902bbc372a4e017a8e29b1eeef917f137ec1134ac08b671eccc7d
|
||||||
|
DIST wine-8.5.tar.xz 29064032 BLAKE2B 35fa6d7ec88ff67d9acf13466b3618eb45d664bed0a9ee581e46cb6e7692395837c8c8e86dead1dbcad582ef29c674a0df4b7180addee837b466eba7fdcd350a SHA512 f6aaab8a32eb7bce7f48d21d99417c9e6e8fe41b3d36320762775ef954db7ddd4fcff01d56475f35038d814557834a41a9e3ae85e5cae8a1b820c5044b42a327
|
||||||
|
DIST wine-staging-8.0.tar.gz 9529620 BLAKE2B c9540195ea885d9f1e980232b0af471e92c61eb079cae35fdb3af5c13d4660b3466f751772440e38f15874082db296d16d1f1d68827a505b2dd949617eda0203 SHA512 76a729d7ced1ff634ddb455ddfaa66ca103b652f43cd152b57ada7431bb5fbb74f5e92bf2f4f329b6df6f5908130afad84e609cbce6df645d6cf8131e9b949f9
|
||||||
|
DIST wine-staging-8.3.tar.gz 9523336 BLAKE2B 3fdb6343ab3735e9235ea3d99e3da4d392de9620d93e85e2bd3b13ae2e0eca2654b2b48230a3bfd7c66ead1fb751ddb092b361943f7a95eb3df5a240c2b9e32b SHA512 e2b1dc107088f716f1c7e80bc25b152ff5c2c4c4a6f29a60e42eabdea0e8b5df84eaeaf8b978f5aefc3f9ad5962eb74784d5a98b95fa3694485d00f3fa628ce6
|
||||||
|
DIST wine-staging-8.4.tar.gz 9522340 BLAKE2B b9fb08f529c9c24d9d6b09adbb359b265e246b8f4651eef0983d10b9c84afbdc9c58e04180e802cd3a7d0951f12ff46495b1ec0508e02f5b76ae7d0d987dc22c SHA512 96a6a870020e59f8437c65604536fec4b80d7d9e5a937e5d0a6cb0b2b4e544e6153fa0cdf2a8fd2c32d090001334e68124c2855c6a2a1454fdcdb6ea23d75fd7
|
||||||
|
DIST wine-staging-8.5.tar.gz 9530306 BLAKE2B 9457fb44aea427c2c09d6329f2f585ae7e14ca32950204019136616d73ad1b83b629297499197b91fb542784b8e5b6edd8743ee6a72794ce58ef5c6b1d27f308 SHA512 9d347c55a62f661bdcc102d373e05d162217b7b1348bdb6f2b114d20e35146862379d2cf03a96916bd1d52166a538af55d48e25a169cd6ee23818673bd35909a
|
||||||
|
EBUILD wine-staging-8.0.ebuild 11426 BLAKE2B 616e32fb223e84e7267eac5399b666e8364572316d4dcfa8023eb22243f16240a67699e69947cb75b7c557b02ac3f8cc65860a81878abe68e72b4384ae5a67c2 SHA512 5bf84720e364705f7f88ebb3fb37bcf6eaf7ecbb8d540ac37f3ef0dd4d467b2c28a9932b979ca4c1b251fe677c6a2aa360fc7c9020504d30275e19f9d48c1741
|
||||||
|
EBUILD wine-staging-8.3.ebuild 11531 BLAKE2B 31c630f056c1c46f7e064ac0761dcf36b89c320ab896c62ce1a68e751549a9fa08ba7e5a311181465354c9bd45296a48b97c21a9992c1ef1c7f18e373e927efc SHA512 c4439acbb1cc16387e2489789c9ff3435ac27a18d2dd83b13e11c76ec65d8bcef18aeff0ed9960b6eb98f0adde1c5ab4b451bee357ca8c9085f5428c86973c19
|
||||||
|
EBUILD wine-staging-8.4.ebuild 11613 BLAKE2B 404d37d25e8c747e6313e94c550eb1f6e6848a0c32b0ba400b71c6a7f484bf17bf540a7a04c3bcb558d9349a5e0f4a369cef82f1d3bffa950fb0ee8ab9c2b86b SHA512 e54f8ac543ce6e6cfbd6e7245f91ab18c107843cf6cd13659bfa45cd660d4fc3e0384588b1e01011558c6be5dcc1d449778c09201a433ad27b2028ed39b37f33
|
||||||
|
EBUILD wine-staging-8.5.ebuild 11613 BLAKE2B 404d37d25e8c747e6313e94c550eb1f6e6848a0c32b0ba400b71c6a7f484bf17bf540a7a04c3bcb558d9349a5e0f4a369cef82f1d3bffa950fb0ee8ab9c2b86b SHA512 e54f8ac543ce6e6cfbd6e7245f91ab18c107843cf6cd13659bfa45cd660d4fc3e0384588b1e01011558c6be5dcc1d449778c09201a433ad27b2028ed39b37f33
|
||||||
|
MISC metadata.xml 2301 BLAKE2B 9b65253f5a19d8aafc6c9ccd361a0b8cdd14a600ddd51bf163603c7400b2c39bf147f7fe671e3aba68ff8f8f2874eec0b64dd73afe4dabad3667cd23ca99aee0 SHA512 885f7c8e2239733193d16b32bb29a21285ff732092ae0c095056ee311bdf9b7135200a29ede5958d668acf9777640f139ffc5ffe43b1455356ce4bc897621401
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Also write GNU-stack note on dummy files used for stub libraries.
|
||||||
|
--- a/tools/winebuild/import.c
|
||||||
|
+++ b/tools/winebuild/import.c
|
||||||
|
@@ -1676,2 +1676,3 @@
|
||||||
|
output( "\t.text\n" );
|
||||||
|
+ output_gnu_stack_note();
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
Fix build with llvm-libunwind, and also fix for non-llvm libunwind
|
||||||
|
when using clang+bfd given clang doesn't have _Unwind_Find_FDE in
|
||||||
|
its rtlib and expects it from llvm-libunwind.
|
||||||
|
|
||||||
|
The _CONFIG_H_ check is for <llvm-libunwind-15 (adds _VERSION).
|
||||||
|
--- a/dlls/ntdll/unix/dwarf.h
|
||||||
|
+++ b/dlls/ntdll/unix/dwarf.h
|
||||||
|
@@ -255,5 +255,7 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
+#if defined(_LIBUNWIND_VERSION) || defined(____LIBUNWIND_CONFIG_H__) || !defined(__clang__)
|
||||||
|
extern const struct dwarf_fde *_Unwind_Find_FDE (void *, struct dwarf_eh_bases *);
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
static unsigned char dwarf_get_u1( const unsigned char **p )
|
||||||
|
--- a/dlls/ntdll/unix/signal_x86_64.c
|
||||||
|
+++ b/dlls/ntdll/unix/signal_x86_64.c
|
||||||
|
@@ -632,5 +632,5 @@
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
-#ifdef __APPLE__
|
||||||
|
+#if defined(__APPLE__) || defined(_LIBUNWIND_VERSION) || defined(____LIBUNWIND_CONFIG_H__)
|
||||||
|
rc = unw_getcontext( &unw_context );
|
||||||
|
if (rc == UNW_ESUCCESS)
|
||||||
|
@@ -755,4 +755,5 @@
|
||||||
|
{
|
||||||
|
struct dwarf_eh_bases bases;
|
||||||
|
+#if defined(_LIBUNWIND_VERSION) || defined(____LIBUNWIND_CONFIG_H__) || !defined(__clang__)
|
||||||
|
const struct dwarf_fde *fde = _Unwind_Find_FDE( (void *)(context->Rip - 1), &bases );
|
||||||
|
|
||||||
|
@@ -760,4 +761,5 @@
|
||||||
|
return dwarf_virtual_unwind( context->Rip, &dispatch->EstablisherFrame, context, fde,
|
||||||
|
&bases, &dispatch->LanguageHandler, &dispatch->HandlerData );
|
||||||
|
+#endif
|
||||||
|
#ifdef HAVE_LIBUNWIND
|
||||||
|
return libunwind_virtual_unwind( context->Rip, &dispatch->EstablisherFrame, context,
|
||||||
37
app-emulation/wine-staging/metadata.xml
Normal file
37
app-emulation/wine-staging/metadata.xml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>wine@gentoo.org</email>
|
||||||
|
<name>Wine</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription>
|
||||||
|
Wine is an Open Source implementation of the Windows API on top of X and Unix.
|
||||||
|
|
||||||
|
Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. Wine provides both a development toolkit for porting Windows source code to Unix as well as a program loader, allowing many unmodified Windows programs to run on x86-based Unixes, including Linux, FreeBSD, and Solaris.
|
||||||
|
|
||||||
|
This variant of the Wine packaging includes the Wine-Staging patchset.
|
||||||
|
</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="capi">Enable ISDN support using <pkg>net-libs/libcapi</pkg></flag>
|
||||||
|
<flag name="crossdev-mingw">
|
||||||
|
Use <pkg>sys-devel/crossdev</pkg> for the toolchain rather than
|
||||||
|
<pkg>dev-util/mingw64-toolchain</pkg> (requires manual setting up)
|
||||||
|
</flag>
|
||||||
|
<flag name="dos">Pull in <pkg>games-emulation/dosbox</pkg> to run DOS applications</flag>
|
||||||
|
<flag name="gecko">Enable mshtml support using <pkg>app-emulation/wine-gecko</pkg></flag>
|
||||||
|
<flag name="mingw">Build PE files using a MinGW toolchain for better compatibility</flag>
|
||||||
|
<flag name="mono">Enable .NET support using <pkg>app-emulation/wine-mono</pkg></flag>
|
||||||
|
<flag name="netapi">Enable support for configuring remote shares using <pkg>net-fs/samba</pkg></flag>
|
||||||
|
<flag name="opencl">Enable OpenCL support</flag>
|
||||||
|
<flag name="osmesa">Enable off-screen rendering (OpenGL in bitmaps) support</flag>
|
||||||
|
<flag name="pcap">Support packet capture software (e.g. wireshark)</flag>
|
||||||
|
<flag name="perl">Install helpers that require perl (winedump/winemaker)</flag>
|
||||||
|
<flag name="samba">Pull in <pkg>net-fs/samba</pkg> with winbind for NTLM auth support</flag>
|
||||||
|
<flag name="sdl">Enable gamepad support using <pkg>media-libs/libsdl2</pkg></flag>
|
||||||
|
<flag name="vulkan">Enable Vulkan drivers</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">wine-staging/wine-staging</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
359
app-emulation/wine-staging/wine-staging-8.0.ebuild
Normal file
359
app-emulation/wine-staging/wine-staging-8.0.ebuild
Normal file
@@ -0,0 +1,359 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||||
|
inherit autotools flag-o-matic multilib multilib-build toolchain-funcs wrapper
|
||||||
|
|
||||||
|
WINE_GECKO=2.47.3
|
||||||
|
WINE_MONO=7.4.0
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
|
||||||
|
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||||
|
else
|
||||||
|
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||||
|
SRC_URI="
|
||||||
|
https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz
|
||||||
|
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/wine-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
||||||
|
HOMEPAGE="https://wiki.winehq.org/Wine-Staging"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
||||||
|
SLOT="${PV}"
|
||||||
|
IUSE="
|
||||||
|
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||||
|
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
||||||
|
+gstreamer kerberos +mingw +mono netapi nls odbc opencl +opengl
|
||||||
|
osmesa pcap perl pulseaudio samba scanner +sdl selinux +ssl
|
||||||
|
+truetype udev udisks +unwind usb v4l +vulkan +xcomposite xinerama"
|
||||||
|
REQUIRED_USE="
|
||||||
|
X? ( truetype )
|
||||||
|
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
||||||
|
|
||||||
|
# tests are non-trivial to run, can hang easily, don't play well with
|
||||||
|
# sandbox, and several need real opengl/vulkan or network access
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||||
|
WINE_DLOPEN_DEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||||
|
opengl? (
|
||||||
|
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||||
|
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||||
|
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||||
|
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||||
|
odbc? ( dev-db/unixODBC[${MULTILIB_USEDEP}] )
|
||||||
|
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||||
|
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||||
|
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||||
|
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||||
|
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||||
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||||
|
WINE_COMMON_DEPEND="
|
||||||
|
${WINE_DLOPEN_DEPEND}
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||||
|
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||||
|
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? (
|
||||||
|
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||||
|
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||||
|
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||||
|
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||||
|
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||||
|
unwind? (
|
||||||
|
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||||
|
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
||||||
|
RDEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
app-emulation/wine-desktop-common
|
||||||
|
dos? ( games-emulation/dosbox )
|
||||||
|
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||||
|
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||||
|
perl? (
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-LibXML
|
||||||
|
)
|
||||||
|
samba? ( net-fs/samba[winbind] )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
udisks? ( sys-fs/udisks:2 )"
|
||||||
|
DEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
sys-kernel/linux-headers
|
||||||
|
X? ( x11-base/xorg-proto )"
|
||||||
|
BDEPEND="
|
||||||
|
dev-lang/perl
|
||||||
|
sys-devel/binutils
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
mingw? ( !crossdev-mingw? (
|
||||||
|
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
||||||
|
) )
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
IDEPEND=">=app-eselect/eselect-wine-2"
|
||||||
|
|
||||||
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||||
|
__clear_cache # unused on amd64+x86 (bug #900334)
|
||||||
|
res_getservers # false positive
|
||||||
|
)
|
||||||
|
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
||||||
|
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
[[ ${MERGE_TYPE} == binary ]] && return
|
||||||
|
|
||||||
|
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||||
|
local mingw=-w64-mingw32
|
||||||
|
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||||
|
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||||
|
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||||
|
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||||
|
eerror
|
||||||
|
eerror " crossdev --target ${mingw}"
|
||||||
|
eerror
|
||||||
|
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||||
|
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
||||||
|
git-r3_src_unpack
|
||||||
|
|
||||||
|
EGIT_COMMIT=$("${BASH}" "${EGIT_CHECKOUT_DIR}"/patches/patchinstall.sh --upstream-commit) || die
|
||||||
|
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
||||||
|
EGIT_CHECKOUT_DIR=${S}
|
||||||
|
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
||||||
|
git-r3_src_unpack
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
local staging=(
|
||||||
|
./patchinstall.sh DESTDIR="${S}"
|
||||||
|
--all
|
||||||
|
--backend=eapply
|
||||||
|
--no-autoconf
|
||||||
|
-W winemenubuilder-Desktop_Icon_Path #652176
|
||||||
|
${MY_WINE_STAGING_CONF}
|
||||||
|
)
|
||||||
|
|
||||||
|
# source patcher in a subshell so can use eapply as a backend
|
||||||
|
ebegin "Running ${staging[*]}"
|
||||||
|
( cd ../${P}/patches && . "${staging[@]}" )
|
||||||
|
eend ${?} || die "Failed to apply the patchset"
|
||||||
|
|
||||||
|
# sanity check, bumping these has a history of oversights
|
||||||
|
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||||
|
dlls/appwiz.cpl/addons.c || die)
|
||||||
|
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||||
|
local gmfatal=
|
||||||
|
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||||
|
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
# ensure .desktop calls this variant + slot
|
||||||
|
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||||
|
|
||||||
|
# always update for patches (including user's wrt #432348)
|
||||||
|
eautoreconf
|
||||||
|
tools/make_requests || die # perl
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
WINE_PREFIX=/usr/lib/${P}
|
||||||
|
WINE_DATADIR=/usr/share/${P}
|
||||||
|
|
||||||
|
local conf=(
|
||||||
|
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||||
|
--includedir="${EPREFIX}"/usr/include/${P}
|
||||||
|
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||||
|
$(use_enable gecko mshtml)
|
||||||
|
$(use_enable mono mscoree)
|
||||||
|
--disable-tests
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with capi)
|
||||||
|
$(use_with cups)
|
||||||
|
$(use_with fontconfig)
|
||||||
|
$(use_with gphoto2 gphoto)
|
||||||
|
$(use_with gstreamer)
|
||||||
|
$(use_with kerberos gssapi)
|
||||||
|
$(use_with kerberos krb5)
|
||||||
|
$(use_with mingw)
|
||||||
|
$(use_with netapi)
|
||||||
|
$(use_with nls gettext)
|
||||||
|
$(use_with opencl)
|
||||||
|
$(use_with opengl)
|
||||||
|
$(use_with osmesa)
|
||||||
|
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||||
|
$(use_with pcap)
|
||||||
|
$(use_with pulseaudio pulse)
|
||||||
|
$(use_with scanner sane)
|
||||||
|
$(use_with sdl)
|
||||||
|
$(use_with ssl gnutls)
|
||||||
|
$(use_with truetype freetype)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with udisks dbus) # dbus is only used for udisks
|
||||||
|
$(use_with unwind)
|
||||||
|
$(use_with usb)
|
||||||
|
$(use_with v4l v4l2)
|
||||||
|
$(use_with vulkan)
|
||||||
|
$(use_with xcomposite)
|
||||||
|
$(use_with xinerama)
|
||||||
|
$(usev !odbc ac_cv_lib_soname_odbc=)
|
||||||
|
)
|
||||||
|
|
||||||
|
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
||||||
|
filter-lto # build failure
|
||||||
|
use mingw || filter-flags -fno-plt # build failure
|
||||||
|
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||||
|
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||||
|
|
||||||
|
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||||
|
# https://github.com/gentoo/gentoo/pull/28355
|
||||||
|
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||||
|
append-ldflags -fuse-ld=bfd
|
||||||
|
|
||||||
|
# build using upstream's way (--with-wine64)
|
||||||
|
# order matters: configure+compile 64->32, install 32->64
|
||||||
|
local -i bits
|
||||||
|
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||||
|
(
|
||||||
|
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||||
|
|
||||||
|
mkdir ../build${bits} || die
|
||||||
|
cd ../build${bits} || die
|
||||||
|
|
||||||
|
pe_arch=i386
|
||||||
|
if (( bits == 64 )); then
|
||||||
|
pe_arch=x86_64
|
||||||
|
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||||
|
conf+=( --enable-win64 )
|
||||||
|
elif use amd64; then
|
||||||
|
conf+=(
|
||||||
|
$(usev abi_x86_64 --with-wine64=../build64)
|
||||||
|
TARGETFLAGS=-m32 # for widl
|
||||||
|
)
|
||||||
|
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||||
|
multilib_toolchain_setup x86
|
||||||
|
fi
|
||||||
|
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||||
|
|
||||||
|
if use mingw; then
|
||||||
|
# CROSSCC is no longer recognized by Wine, but still use for now
|
||||||
|
# (future handling for CROSS* variables is subject to changes)
|
||||||
|
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
||||||
|
|
||||||
|
# use *FLAGS for mingw, but strip unsupported
|
||||||
|
: "${CROSSCFLAGS:=$(
|
||||||
|
# >=wine-7.21 configure.ac no longer adds -fno-strict by mistake
|
||||||
|
append-cflags '-fno-strict-aliasing'
|
||||||
|
filter-flags '-fstack-clash-protection' #758914
|
||||||
|
filter-flags '-fstack-protector*' #870136
|
||||||
|
filter-flags '-mfunction-return=thunk*' #878849
|
||||||
|
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||||
|
: "${CROSSLDFLAGS:=$(
|
||||||
|
filter-flags '-fuse-ld=*'
|
||||||
|
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||||
|
export CROSS{C,LD}FLAGS
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||||
|
)
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
use abi_x86_64 && emake -C ../build64 # do first
|
||||||
|
use abi_x86_32 && emake -C ../build32
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||||
|
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||||
|
|
||||||
|
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||||
|
if use abi_x86_64 && use !abi_x86_32; then
|
||||||
|
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||||
|
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||||
|
local man
|
||||||
|
for man in ../build64/loader/wine.*man; do
|
||||||
|
: "${man##*/wine}"
|
||||||
|
: "${_%.*}"
|
||||||
|
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||||
|
newins ${man} wine.1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||||
|
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||||
|
|
||||||
|
# create variant wrappers for eselect-wine
|
||||||
|
local bin
|
||||||
|
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||||
|
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# don't let portage try to strip PE files with the wrong
|
||||||
|
# strip executable and instead handle it here (saves ~120MB)
|
||||||
|
if use mingw; then
|
||||||
|
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||||
|
use debug ||
|
||||||
|
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||||
|
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
366
app-emulation/wine-staging/wine-staging-8.3.ebuild
Normal file
366
app-emulation/wine-staging/wine-staging-8.3.ebuild
Normal file
@@ -0,0 +1,366 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
inherit autotools edo flag-o-matic multilib multilib-build
|
||||||
|
inherit python-any-r1 toolchain-funcs wrapper
|
||||||
|
|
||||||
|
WINE_GECKO=2.47.3
|
||||||
|
WINE_MONO=7.4.0
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
|
||||||
|
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||||
|
else
|
||||||
|
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||||
|
SRC_URI="
|
||||||
|
https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz
|
||||||
|
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/wine-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
||||||
|
HOMEPAGE="https://wiki.winehq.org/Wine-Staging"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
||||||
|
SLOT="${PV}"
|
||||||
|
IUSE="
|
||||||
|
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||||
|
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
||||||
|
+gstreamer kerberos +mingw +mono netapi nls opencl +opengl osmesa
|
||||||
|
pcap perl pulseaudio samba scanner +sdl selinux smartcard +ssl
|
||||||
|
+truetype udev udisks +unwind usb v4l +vulkan +xcomposite xinerama"
|
||||||
|
REQUIRED_USE="
|
||||||
|
X? ( truetype )
|
||||||
|
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
||||||
|
|
||||||
|
# tests are non-trivial to run, can hang easily, don't play well with
|
||||||
|
# sandbox, and several need real opengl/vulkan or network access
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||||
|
WINE_DLOPEN_DEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||||
|
opengl? (
|
||||||
|
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||||
|
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||||
|
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||||
|
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||||
|
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||||
|
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||||
|
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||||
|
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||||
|
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||||
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||||
|
WINE_COMMON_DEPEND="
|
||||||
|
${WINE_DLOPEN_DEPEND}
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||||
|
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||||
|
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? (
|
||||||
|
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||||
|
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||||
|
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||||
|
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||||
|
smartcard? ( sys-apps/pcsc-lite[${MULTILIB_USEDEP}] )
|
||||||
|
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||||
|
unwind? (
|
||||||
|
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||||
|
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )"
|
||||||
|
RDEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
app-emulation/wine-desktop-common
|
||||||
|
dos? ( games-emulation/dosbox )
|
||||||
|
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||||
|
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||||
|
perl? (
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-LibXML
|
||||||
|
)
|
||||||
|
samba? ( net-fs/samba[winbind] )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
udisks? ( sys-fs/udisks:2 )"
|
||||||
|
DEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
sys-kernel/linux-headers
|
||||||
|
X? ( x11-base/xorg-proto )"
|
||||||
|
# gitapply.sh prefers git but can fallback to patch+extras
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
|| (
|
||||||
|
dev-vcs/git
|
||||||
|
(
|
||||||
|
sys-apps/gawk
|
||||||
|
sys-apps/util-linux
|
||||||
|
)
|
||||||
|
)
|
||||||
|
dev-lang/perl
|
||||||
|
sys-devel/binutils
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
mingw? ( !crossdev-mingw? (
|
||||||
|
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
||||||
|
) )
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
IDEPEND=">=app-eselect/eselect-wine-2"
|
||||||
|
|
||||||
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||||
|
__clear_cache # unused on amd64+x86 (bug #900334)
|
||||||
|
res_getservers # false positive
|
||||||
|
)
|
||||||
|
QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/odbc32.so" # has no compiled objects
|
||||||
|
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
||||||
|
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
[[ ${MERGE_TYPE} == binary ]] && return
|
||||||
|
|
||||||
|
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||||
|
local mingw=-w64-mingw32
|
||||||
|
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||||
|
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||||
|
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||||
|
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||||
|
eerror
|
||||||
|
eerror " crossdev --target ${mingw}"
|
||||||
|
eerror
|
||||||
|
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||||
|
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
||||||
|
git-r3_src_unpack
|
||||||
|
|
||||||
|
EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die
|
||||||
|
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
||||||
|
EGIT_CHECKOUT_DIR=${S}
|
||||||
|
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
||||||
|
git-r3_src_unpack
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
local patchinstallargs=(
|
||||||
|
--all
|
||||||
|
--no-autoconf
|
||||||
|
-W winemenubuilder-Desktop_Icon_Path #652176
|
||||||
|
${MY_WINE_STAGING_CONF}
|
||||||
|
)
|
||||||
|
|
||||||
|
edo "${PYTHON}" ../${P}/staging/patchinstall.py "${patchinstallargs[@]}"
|
||||||
|
|
||||||
|
# sanity check, bumping these has a history of oversights
|
||||||
|
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||||
|
dlls/appwiz.cpl/addons.c || die)
|
||||||
|
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||||
|
local gmfatal=
|
||||||
|
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||||
|
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
# ensure .desktop calls this variant + slot
|
||||||
|
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||||
|
|
||||||
|
# always update for patches (including user's wrt #432348)
|
||||||
|
eautoreconf
|
||||||
|
tools/make_requests || die # perl
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
WINE_PREFIX=/usr/lib/${P}
|
||||||
|
WINE_DATADIR=/usr/share/${P}
|
||||||
|
|
||||||
|
local conf=(
|
||||||
|
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||||
|
--includedir="${EPREFIX}"/usr/include/${P}
|
||||||
|
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||||
|
$(use_enable gecko mshtml)
|
||||||
|
$(use_enable mono mscoree)
|
||||||
|
--disable-tests
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with capi)
|
||||||
|
$(use_with cups)
|
||||||
|
$(use_with fontconfig)
|
||||||
|
$(use_with gphoto2 gphoto)
|
||||||
|
$(use_with gstreamer)
|
||||||
|
$(use_with kerberos gssapi)
|
||||||
|
$(use_with kerberos krb5)
|
||||||
|
$(use_with mingw)
|
||||||
|
$(use_with netapi)
|
||||||
|
$(use_with nls gettext)
|
||||||
|
$(use_with opencl)
|
||||||
|
$(use_with opengl)
|
||||||
|
$(use_with osmesa)
|
||||||
|
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||||
|
$(use_with pcap)
|
||||||
|
$(use_with pulseaudio pulse)
|
||||||
|
$(use_with scanner sane)
|
||||||
|
$(use_with sdl)
|
||||||
|
$(use_with smartcard pcsclite)
|
||||||
|
$(use_with ssl gnutls)
|
||||||
|
$(use_with truetype freetype)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with udisks dbus) # dbus is only used for udisks
|
||||||
|
$(use_with unwind)
|
||||||
|
$(use_with usb)
|
||||||
|
$(use_with v4l v4l2)
|
||||||
|
$(use_with vulkan)
|
||||||
|
$(use_with xcomposite)
|
||||||
|
$(use_with xinerama)
|
||||||
|
)
|
||||||
|
|
||||||
|
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
||||||
|
filter-lto # build failure
|
||||||
|
use mingw || filter-flags -fno-plt # build failure
|
||||||
|
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||||
|
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||||
|
|
||||||
|
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||||
|
# https://github.com/gentoo/gentoo/pull/28355
|
||||||
|
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||||
|
append-ldflags -fuse-ld=bfd
|
||||||
|
|
||||||
|
# build using upstream's way (--with-wine64)
|
||||||
|
# order matters: configure+compile 64->32, install 32->64
|
||||||
|
local -i bits
|
||||||
|
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||||
|
(
|
||||||
|
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||||
|
|
||||||
|
mkdir ../build${bits} || die
|
||||||
|
cd ../build${bits} || die
|
||||||
|
|
||||||
|
pe_arch=i386
|
||||||
|
if (( bits == 64 )); then
|
||||||
|
pe_arch=x86_64
|
||||||
|
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||||
|
conf+=( --enable-win64 )
|
||||||
|
elif use amd64; then
|
||||||
|
conf+=(
|
||||||
|
$(usev abi_x86_64 --with-wine64=../build64)
|
||||||
|
TARGETFLAGS=-m32 # for widl
|
||||||
|
)
|
||||||
|
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||||
|
multilib_toolchain_setup x86
|
||||||
|
fi
|
||||||
|
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||||
|
|
||||||
|
if use mingw; then
|
||||||
|
# CROSSCC is no longer recognized by Wine, but still use for now
|
||||||
|
# (future handling for CROSS* variables is subject to changes)
|
||||||
|
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
||||||
|
|
||||||
|
# use *FLAGS for mingw, but strip unsupported
|
||||||
|
: "${CROSSCFLAGS:=$(
|
||||||
|
# >=wine-7.21 configure.ac no longer adds -fno-strict by mistake
|
||||||
|
append-cflags '-fno-strict-aliasing'
|
||||||
|
filter-flags '-fstack-clash-protection' #758914
|
||||||
|
filter-flags '-fstack-protector*' #870136
|
||||||
|
filter-flags '-mfunction-return=thunk*' #878849
|
||||||
|
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||||
|
: "${CROSSLDFLAGS:=$(
|
||||||
|
filter-flags '-fuse-ld=*'
|
||||||
|
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||||
|
export CROSS{C,LD}FLAGS
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||||
|
)
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
use abi_x86_64 && emake -C ../build64 # do first
|
||||||
|
use abi_x86_32 && emake -C ../build32
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||||
|
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||||
|
|
||||||
|
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||||
|
if use abi_x86_64 && use !abi_x86_32; then
|
||||||
|
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||||
|
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||||
|
local man
|
||||||
|
for man in ../build64/loader/wine.*man; do
|
||||||
|
: "${man##*/wine}"
|
||||||
|
: "${_%.*}"
|
||||||
|
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||||
|
newins ${man} wine.1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||||
|
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||||
|
|
||||||
|
# create variant wrappers for eselect-wine
|
||||||
|
local bin
|
||||||
|
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||||
|
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# don't let portage try to strip PE files with the wrong
|
||||||
|
# strip executable and instead handle it here (saves ~120MB)
|
||||||
|
if use mingw; then
|
||||||
|
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||||
|
use debug ||
|
||||||
|
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||||
|
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
369
app-emulation/wine-staging/wine-staging-8.4.ebuild
Normal file
369
app-emulation/wine-staging/wine-staging-8.4.ebuild
Normal file
@@ -0,0 +1,369 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
inherit autotools edo flag-o-matic multilib multilib-build
|
||||||
|
inherit python-any-r1 toolchain-funcs wrapper
|
||||||
|
|
||||||
|
WINE_GECKO=2.47.3
|
||||||
|
WINE_MONO=7.4.0
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
|
||||||
|
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||||
|
else
|
||||||
|
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||||
|
SRC_URI="
|
||||||
|
https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz
|
||||||
|
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/wine-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
||||||
|
HOMEPAGE="https://wiki.winehq.org/Wine-Staging"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
||||||
|
SLOT="${PV}"
|
||||||
|
IUSE="
|
||||||
|
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||||
|
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
||||||
|
+gstreamer kerberos +mingw +mono netapi nls opencl +opengl osmesa
|
||||||
|
pcap perl pulseaudio samba scanner +sdl selinux smartcard +ssl
|
||||||
|
+truetype udev udisks +unwind usb v4l +vulkan wayland +xcomposite
|
||||||
|
xinerama"
|
||||||
|
REQUIRED_USE="
|
||||||
|
X? ( truetype )
|
||||||
|
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
||||||
|
|
||||||
|
# tests are non-trivial to run, can hang easily, don't play well with
|
||||||
|
# sandbox, and several need real opengl/vulkan or network access
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||||
|
WINE_DLOPEN_DEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||||
|
opengl? (
|
||||||
|
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||||
|
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||||
|
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||||
|
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||||
|
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||||
|
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||||
|
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||||
|
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||||
|
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||||
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||||
|
WINE_COMMON_DEPEND="
|
||||||
|
${WINE_DLOPEN_DEPEND}
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||||
|
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||||
|
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? (
|
||||||
|
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||||
|
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||||
|
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||||
|
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||||
|
smartcard? ( sys-apps/pcsc-lite[${MULTILIB_USEDEP}] )
|
||||||
|
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||||
|
unwind? (
|
||||||
|
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||||
|
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )
|
||||||
|
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )"
|
||||||
|
RDEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
app-emulation/wine-desktop-common
|
||||||
|
dos? ( games-emulation/dosbox )
|
||||||
|
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||||
|
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||||
|
perl? (
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-LibXML
|
||||||
|
)
|
||||||
|
samba? ( net-fs/samba[winbind] )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
udisks? ( sys-fs/udisks:2 )"
|
||||||
|
DEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
sys-kernel/linux-headers
|
||||||
|
X? ( x11-base/xorg-proto )"
|
||||||
|
# gitapply.sh prefers git but can fallback to patch+extras
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
|| (
|
||||||
|
dev-vcs/git
|
||||||
|
(
|
||||||
|
sys-apps/gawk
|
||||||
|
sys-apps/util-linux
|
||||||
|
)
|
||||||
|
)
|
||||||
|
dev-lang/perl
|
||||||
|
sys-devel/binutils
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
mingw? ( !crossdev-mingw? (
|
||||||
|
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
||||||
|
) )
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
IDEPEND=">=app-eselect/eselect-wine-2"
|
||||||
|
|
||||||
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||||
|
__clear_cache # unused on amd64+x86 (bug #900334)
|
||||||
|
res_getservers # false positive
|
||||||
|
)
|
||||||
|
QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/odbc32.so" # has no compiled objects
|
||||||
|
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
||||||
|
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
[[ ${MERGE_TYPE} == binary ]] && return
|
||||||
|
|
||||||
|
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||||
|
local mingw=-w64-mingw32
|
||||||
|
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||||
|
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||||
|
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||||
|
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||||
|
eerror
|
||||||
|
eerror " crossdev --target ${mingw}"
|
||||||
|
eerror
|
||||||
|
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||||
|
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
||||||
|
git-r3_src_unpack
|
||||||
|
|
||||||
|
EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die
|
||||||
|
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
||||||
|
EGIT_CHECKOUT_DIR=${S}
|
||||||
|
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
||||||
|
git-r3_src_unpack
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
local patchinstallargs=(
|
||||||
|
--all
|
||||||
|
--no-autoconf
|
||||||
|
-W winemenubuilder-Desktop_Icon_Path #652176
|
||||||
|
${MY_WINE_STAGING_CONF}
|
||||||
|
)
|
||||||
|
|
||||||
|
edo "${PYTHON}" ../${P}/staging/patchinstall.py "${patchinstallargs[@]}"
|
||||||
|
|
||||||
|
# sanity check, bumping these has a history of oversights
|
||||||
|
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||||
|
dlls/appwiz.cpl/addons.c || die)
|
||||||
|
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||||
|
local gmfatal=
|
||||||
|
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||||
|
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
# ensure .desktop calls this variant + slot
|
||||||
|
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||||
|
|
||||||
|
# always update for patches (including user's wrt #432348)
|
||||||
|
eautoreconf
|
||||||
|
tools/make_requests || die # perl
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
WINE_PREFIX=/usr/lib/${P}
|
||||||
|
WINE_DATADIR=/usr/share/${P}
|
||||||
|
|
||||||
|
local conf=(
|
||||||
|
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||||
|
--includedir="${EPREFIX}"/usr/include/${P}
|
||||||
|
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||||
|
$(use_enable gecko mshtml)
|
||||||
|
$(use_enable mono mscoree)
|
||||||
|
--disable-tests
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with capi)
|
||||||
|
$(use_with cups)
|
||||||
|
$(use_with fontconfig)
|
||||||
|
$(use_with gphoto2 gphoto)
|
||||||
|
$(use_with gstreamer)
|
||||||
|
$(use_with kerberos gssapi)
|
||||||
|
$(use_with kerberos krb5)
|
||||||
|
$(use_with mingw)
|
||||||
|
$(use_with netapi)
|
||||||
|
$(use_with nls gettext)
|
||||||
|
$(use_with opencl)
|
||||||
|
$(use_with opengl)
|
||||||
|
$(use_with osmesa)
|
||||||
|
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||||
|
$(use_with pcap)
|
||||||
|
$(use_with pulseaudio pulse)
|
||||||
|
$(use_with scanner sane)
|
||||||
|
$(use_with sdl)
|
||||||
|
$(use_with smartcard pcsclite)
|
||||||
|
$(use_with ssl gnutls)
|
||||||
|
$(use_with truetype freetype)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with udisks dbus) # dbus is only used for udisks
|
||||||
|
$(use_with unwind)
|
||||||
|
$(use_with usb)
|
||||||
|
$(use_with v4l v4l2)
|
||||||
|
$(use_with vulkan)
|
||||||
|
$(use_with wayland)
|
||||||
|
$(use_with xcomposite)
|
||||||
|
$(use_with xinerama)
|
||||||
|
)
|
||||||
|
|
||||||
|
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
||||||
|
filter-lto # build failure
|
||||||
|
use mingw || filter-flags -fno-plt # build failure
|
||||||
|
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||||
|
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||||
|
|
||||||
|
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||||
|
# https://github.com/gentoo/gentoo/pull/28355
|
||||||
|
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||||
|
append-ldflags -fuse-ld=bfd
|
||||||
|
|
||||||
|
# build using upstream's way (--with-wine64)
|
||||||
|
# order matters: configure+compile 64->32, install 32->64
|
||||||
|
local -i bits
|
||||||
|
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||||
|
(
|
||||||
|
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||||
|
|
||||||
|
mkdir ../build${bits} || die
|
||||||
|
cd ../build${bits} || die
|
||||||
|
|
||||||
|
pe_arch=i386
|
||||||
|
if (( bits == 64 )); then
|
||||||
|
pe_arch=x86_64
|
||||||
|
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||||
|
conf+=( --enable-win64 )
|
||||||
|
elif use amd64; then
|
||||||
|
conf+=(
|
||||||
|
$(usev abi_x86_64 --with-wine64=../build64)
|
||||||
|
TARGETFLAGS=-m32 # for widl
|
||||||
|
)
|
||||||
|
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||||
|
multilib_toolchain_setup x86
|
||||||
|
fi
|
||||||
|
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||||
|
|
||||||
|
if use mingw; then
|
||||||
|
# CROSSCC is no longer recognized by Wine, but still use for now
|
||||||
|
# (future handling for CROSS* variables is subject to changes)
|
||||||
|
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
||||||
|
|
||||||
|
# use *FLAGS for mingw, but strip unsupported
|
||||||
|
: "${CROSSCFLAGS:=$(
|
||||||
|
# >=wine-7.21 configure.ac no longer adds -fno-strict by mistake
|
||||||
|
append-cflags '-fno-strict-aliasing'
|
||||||
|
filter-flags '-fstack-clash-protection' #758914
|
||||||
|
filter-flags '-fstack-protector*' #870136
|
||||||
|
filter-flags '-mfunction-return=thunk*' #878849
|
||||||
|
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||||
|
: "${CROSSLDFLAGS:=$(
|
||||||
|
filter-flags '-fuse-ld=*'
|
||||||
|
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||||
|
export CROSS{C,LD}FLAGS
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||||
|
)
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
use abi_x86_64 && emake -C ../build64 # do first
|
||||||
|
use abi_x86_32 && emake -C ../build32
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||||
|
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||||
|
|
||||||
|
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||||
|
if use abi_x86_64 && use !abi_x86_32; then
|
||||||
|
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||||
|
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||||
|
local man
|
||||||
|
for man in ../build64/loader/wine.*man; do
|
||||||
|
: "${man##*/wine}"
|
||||||
|
: "${_%.*}"
|
||||||
|
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||||
|
newins ${man} wine.1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||||
|
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||||
|
|
||||||
|
# create variant wrappers for eselect-wine
|
||||||
|
local bin
|
||||||
|
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||||
|
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# don't let portage try to strip PE files with the wrong
|
||||||
|
# strip executable and instead handle it here (saves ~120MB)
|
||||||
|
if use mingw; then
|
||||||
|
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||||
|
use debug ||
|
||||||
|
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||||
|
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
369
app-emulation/wine-staging/wine-staging-8.5.ebuild
Normal file
369
app-emulation/wine-staging/wine-staging-8.5.ebuild
Normal file
@@ -0,0 +1,369 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
inherit autotools edo flag-o-matic multilib multilib-build
|
||||||
|
inherit python-any-r1 toolchain-funcs wrapper
|
||||||
|
|
||||||
|
WINE_GECKO=2.47.3
|
||||||
|
WINE_MONO=7.4.0
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/wine-staging/wine-staging.git"
|
||||||
|
WINE_EGIT_REPO_URI="https://gitlab.winehq.org/wine/wine.git"
|
||||||
|
else
|
||||||
|
(( $(ver_cut 2) )) && WINE_SDIR=$(ver_cut 1).x || WINE_SDIR=$(ver_cut 1).0
|
||||||
|
SRC_URI="
|
||||||
|
https://dl.winehq.org/wine/source/${WINE_SDIR}/wine-${PV}.tar.xz
|
||||||
|
https://github.com/wine-staging/wine-staging/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="-* ~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}/wine-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Free implementation of Windows(tm) on Unix, with Wine-Staging patchset"
|
||||||
|
HOMEPAGE="https://wiki.winehq.org/Wine-Staging"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+ BSD-2 IJG MIT OPENLDAP ZLIB gsm libpng2 libtiff"
|
||||||
|
SLOT="${PV}"
|
||||||
|
IUSE="
|
||||||
|
+X +abi_x86_32 +abi_x86_64 +alsa capi crossdev-mingw cups dos
|
||||||
|
llvm-libunwind debug custom-cflags +fontconfig +gecko gphoto2
|
||||||
|
+gstreamer kerberos +mingw +mono netapi nls opencl +opengl osmesa
|
||||||
|
pcap perl pulseaudio samba scanner +sdl selinux smartcard +ssl
|
||||||
|
+truetype udev udisks +unwind usb v4l +vulkan wayland +xcomposite
|
||||||
|
xinerama"
|
||||||
|
REQUIRED_USE="
|
||||||
|
X? ( truetype )
|
||||||
|
crossdev-mingw? ( mingw )" # bug #551124 for truetype
|
||||||
|
|
||||||
|
# tests are non-trivial to run, can hang easily, don't play well with
|
||||||
|
# sandbox, and several need real opengl/vulkan or network access
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# `grep WINE_CHECK_SONAME configure.ac` + if not directly linked
|
||||||
|
WINE_DLOPEN_DEPEND="
|
||||||
|
X? (
|
||||||
|
x11-libs/libXcursor[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXi[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXrender[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
|
||||||
|
opengl? (
|
||||||
|
media-libs/libglvnd[X,${MULTILIB_USEDEP}]
|
||||||
|
osmesa? ( media-libs/mesa[osmesa,${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] )
|
||||||
|
xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
cups? ( net-print/cups[${MULTILIB_USEDEP}] )
|
||||||
|
fontconfig? ( media-libs/fontconfig[${MULTILIB_USEDEP}] )
|
||||||
|
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||||
|
netapi? ( net-fs/samba[${MULTILIB_USEDEP}] )
|
||||||
|
sdl? ( media-libs/libsdl2[haptic,joystick,${MULTILIB_USEDEP}] )
|
||||||
|
ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] )
|
||||||
|
truetype? ( media-libs/freetype[${MULTILIB_USEDEP}] )
|
||||||
|
udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
|
||||||
|
v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] )
|
||||||
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
|
||||||
|
WINE_COMMON_DEPEND="
|
||||||
|
${WINE_DLOPEN_DEPEND}
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXext[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
|
||||||
|
capi? ( net-libs/libcapi:=[${MULTILIB_USEDEP}] )
|
||||||
|
gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? (
|
||||||
|
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
|
||||||
|
media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )
|
||||||
|
pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] )
|
||||||
|
pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
|
||||||
|
scanner? ( media-gfx/sane-backends[${MULTILIB_USEDEP}] )
|
||||||
|
smartcard? ( sys-apps/pcsc-lite[${MULTILIB_USEDEP}] )
|
||||||
|
udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] )
|
||||||
|
unwind? (
|
||||||
|
llvm-libunwind? ( sys-libs/llvm-libunwind[${MULTILIB_USEDEP}] )
|
||||||
|
!llvm-libunwind? ( sys-libs/libunwind:=[${MULTILIB_USEDEP}] )
|
||||||
|
)
|
||||||
|
usb? ( dev-libs/libusb:1[${MULTILIB_USEDEP}] )
|
||||||
|
wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )"
|
||||||
|
RDEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
app-emulation/wine-desktop-common
|
||||||
|
dos? ( games-emulation/dosbox )
|
||||||
|
gecko? ( app-emulation/wine-gecko:${WINE_GECKO}[${MULTILIB_USEDEP}] )
|
||||||
|
gstreamer? ( media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] )
|
||||||
|
mono? ( app-emulation/wine-mono:${WINE_MONO} )
|
||||||
|
perl? (
|
||||||
|
dev-lang/perl
|
||||||
|
dev-perl/XML-LibXML
|
||||||
|
)
|
||||||
|
samba? ( net-fs/samba[winbind] )
|
||||||
|
selinux? ( sec-policy/selinux-wine )
|
||||||
|
udisks? ( sys-fs/udisks:2 )"
|
||||||
|
DEPEND="
|
||||||
|
${WINE_COMMON_DEPEND}
|
||||||
|
sys-kernel/linux-headers
|
||||||
|
X? ( x11-base/xorg-proto )"
|
||||||
|
# gitapply.sh prefers git but can fallback to patch+extras
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
|| (
|
||||||
|
dev-vcs/git
|
||||||
|
(
|
||||||
|
sys-apps/gawk
|
||||||
|
sys-apps/util-linux
|
||||||
|
)
|
||||||
|
)
|
||||||
|
dev-lang/perl
|
||||||
|
sys-devel/binutils
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
mingw? ( !crossdev-mingw? (
|
||||||
|
>=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}]
|
||||||
|
) )
|
||||||
|
nls? ( sys-devel/gettext )"
|
||||||
|
IDEPEND=">=app-eselect/eselect-wine-2"
|
||||||
|
|
||||||
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
||||||
|
__clear_cache # unused on amd64+x86 (bug #900334)
|
||||||
|
res_getservers # false positive
|
||||||
|
)
|
||||||
|
QA_FLAGS_IGNORED="usr/lib/.*/wine/.*-unix/odbc32.so" # has no compiled objects
|
||||||
|
QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-7.17-noexecstack.patch
|
||||||
|
"${FILESDIR}"/${PN}-7.20-unwind.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
[[ ${MERGE_TYPE} == binary ]] && return
|
||||||
|
|
||||||
|
if use crossdev-mingw && [[ ! -v MINGW_BYPASS ]]; then
|
||||||
|
local mingw=-w64-mingw32
|
||||||
|
for mingw in $(usev abi_x86_64 x86_64${mingw}) $(usev abi_x86_32 i686${mingw}); do
|
||||||
|
if ! type -P ${mingw}-gcc >/dev/null; then
|
||||||
|
eerror "With USE=crossdev-mingw, you must prepare the MinGW toolchain"
|
||||||
|
eerror "yourself by installing sys-devel/crossdev then running:"
|
||||||
|
eerror
|
||||||
|
eerror " crossdev --target ${mingw}"
|
||||||
|
eerror
|
||||||
|
eerror "For more information, please see: https://wiki.gentoo.org/wiki/Mingw"
|
||||||
|
die "USE=crossdev-mingw is enabled, but ${mingw}-gcc was not found"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
EGIT_CHECKOUT_DIR=${WORKDIR}/${P}
|
||||||
|
git-r3_src_unpack
|
||||||
|
|
||||||
|
EGIT_COMMIT=$(<"${EGIT_CHECKOUT_DIR}"/staging/upstream-commit) || die
|
||||||
|
EGIT_REPO_URI=${WINE_EGIT_REPO_URI}
|
||||||
|
EGIT_CHECKOUT_DIR=${S}
|
||||||
|
einfo "Fetching Wine commit matching the current patchset by default (${EGIT_COMMIT})"
|
||||||
|
git-r3_src_unpack
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
local patchinstallargs=(
|
||||||
|
--all
|
||||||
|
--no-autoconf
|
||||||
|
-W winemenubuilder-Desktop_Icon_Path #652176
|
||||||
|
${MY_WINE_STAGING_CONF}
|
||||||
|
)
|
||||||
|
|
||||||
|
edo "${PYTHON}" ../${P}/staging/patchinstall.py "${patchinstallargs[@]}"
|
||||||
|
|
||||||
|
# sanity check, bumping these has a history of oversights
|
||||||
|
local geckomono=$(sed -En '/^#define (GECKO|MONO)_VER/{s/[^0-9.]//gp}' \
|
||||||
|
dlls/appwiz.cpl/addons.c || die)
|
||||||
|
if [[ ${WINE_GECKO}$'\n'${WINE_MONO} != "${geckomono}" ]]; then
|
||||||
|
local gmfatal=
|
||||||
|
[[ ${PV} == *9999 ]] && gmfatal=nonfatal
|
||||||
|
${gmfatal} die -n "gecko/mono mismatch in ebuild, has: " ${geckomono} " (please file a bug)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
|
||||||
|
# ensure .desktop calls this variant + slot
|
||||||
|
sed -i "/^Exec=/s/wine /${P} /" loader/wine.desktop || die
|
||||||
|
|
||||||
|
# always update for patches (including user's wrt #432348)
|
||||||
|
eautoreconf
|
||||||
|
tools/make_requests || die # perl
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
WINE_PREFIX=/usr/lib/${P}
|
||||||
|
WINE_DATADIR=/usr/share/${P}
|
||||||
|
|
||||||
|
local conf=(
|
||||||
|
--prefix="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--datadir="${EPREFIX}"${WINE_DATADIR}
|
||||||
|
--includedir="${EPREFIX}"/usr/include/${P}
|
||||||
|
--libdir="${EPREFIX}"${WINE_PREFIX}
|
||||||
|
--mandir="${EPREFIX}"${WINE_DATADIR}/man
|
||||||
|
$(use_enable gecko mshtml)
|
||||||
|
$(use_enable mono mscoree)
|
||||||
|
--disable-tests
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with alsa)
|
||||||
|
$(use_with capi)
|
||||||
|
$(use_with cups)
|
||||||
|
$(use_with fontconfig)
|
||||||
|
$(use_with gphoto2 gphoto)
|
||||||
|
$(use_with gstreamer)
|
||||||
|
$(use_with kerberos gssapi)
|
||||||
|
$(use_with kerberos krb5)
|
||||||
|
$(use_with mingw)
|
||||||
|
$(use_with netapi)
|
||||||
|
$(use_with nls gettext)
|
||||||
|
$(use_with opencl)
|
||||||
|
$(use_with opengl)
|
||||||
|
$(use_with osmesa)
|
||||||
|
--without-oss # media-sound/oss is not packaged (OSSv4)
|
||||||
|
$(use_with pcap)
|
||||||
|
$(use_with pulseaudio pulse)
|
||||||
|
$(use_with scanner sane)
|
||||||
|
$(use_with sdl)
|
||||||
|
$(use_with smartcard pcsclite)
|
||||||
|
$(use_with ssl gnutls)
|
||||||
|
$(use_with truetype freetype)
|
||||||
|
$(use_with udev)
|
||||||
|
$(use_with udisks dbus) # dbus is only used for udisks
|
||||||
|
$(use_with unwind)
|
||||||
|
$(use_with usb)
|
||||||
|
$(use_with v4l v4l2)
|
||||||
|
$(use_with vulkan)
|
||||||
|
$(use_with wayland)
|
||||||
|
$(use_with xcomposite)
|
||||||
|
$(use_with xinerama)
|
||||||
|
)
|
||||||
|
|
||||||
|
tc-ld-force-bfd # builds with non-bfd but broken at runtime (bug #867097)
|
||||||
|
filter-lto # build failure
|
||||||
|
use mingw || filter-flags -fno-plt # build failure
|
||||||
|
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||||
|
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||||
|
|
||||||
|
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||||
|
# https://github.com/gentoo/gentoo/pull/28355
|
||||||
|
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||||
|
append-ldflags -fuse-ld=bfd
|
||||||
|
|
||||||
|
# build using upstream's way (--with-wine64)
|
||||||
|
# order matters: configure+compile 64->32, install 32->64
|
||||||
|
local -i bits
|
||||||
|
for bits in $(usev abi_x86_64 64) $(usev abi_x86_32 32); do
|
||||||
|
(
|
||||||
|
einfo "Configuring ${PN} for ${bits}bits in ${WORKDIR}/build${bits} ..."
|
||||||
|
|
||||||
|
mkdir ../build${bits} || die
|
||||||
|
cd ../build${bits} || die
|
||||||
|
|
||||||
|
pe_arch=i386
|
||||||
|
if (( bits == 64 )); then
|
||||||
|
pe_arch=x86_64
|
||||||
|
: "${CROSSCC:=${CROSSCC_amd64:-x86_64-w64-mingw32-gcc}}"
|
||||||
|
conf+=( --enable-win64 )
|
||||||
|
elif use amd64; then
|
||||||
|
conf+=(
|
||||||
|
$(usev abi_x86_64 --with-wine64=../build64)
|
||||||
|
TARGETFLAGS=-m32 # for widl
|
||||||
|
)
|
||||||
|
# _setup is optional, but use over Wine's auto-detect (+#472038)
|
||||||
|
multilib_toolchain_setup x86
|
||||||
|
fi
|
||||||
|
: "${CROSSCC:=${CROSSCC_x86:-i686-w64-mingw32-gcc}}"
|
||||||
|
|
||||||
|
if use mingw; then
|
||||||
|
# CROSSCC is no longer recognized by Wine, but still use for now
|
||||||
|
# (future handling for CROSS* variables is subject to changes)
|
||||||
|
conf+=( ac_cv_prog_${pe_arch}_CC="${CROSSCC}" )
|
||||||
|
|
||||||
|
# use *FLAGS for mingw, but strip unsupported
|
||||||
|
: "${CROSSCFLAGS:=$(
|
||||||
|
# >=wine-7.21 configure.ac no longer adds -fno-strict by mistake
|
||||||
|
append-cflags '-fno-strict-aliasing'
|
||||||
|
filter-flags '-fstack-clash-protection' #758914
|
||||||
|
filter-flags '-fstack-protector*' #870136
|
||||||
|
filter-flags '-mfunction-return=thunk*' #878849
|
||||||
|
CC=${CROSSCC} test-flags-CC ${CFLAGS:--O2})}"
|
||||||
|
: "${CROSSLDFLAGS:=$(
|
||||||
|
filter-flags '-fuse-ld=*'
|
||||||
|
CC=${CROSSCC} test-flags-CCLD ${LDFLAGS})}"
|
||||||
|
export CROSS{C,LD}FLAGS
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE=${S} econf "${conf[@]}"
|
||||||
|
)
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
use abi_x86_64 && emake -C ../build64 # do first
|
||||||
|
use abi_x86_32 && emake -C ../build32
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
use abi_x86_32 && emake DESTDIR="${D}" -C ../build32 install
|
||||||
|
use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
|
||||||
|
|
||||||
|
# symlink for plain 'wine' and install its man pages if 64bit-only #404331
|
||||||
|
if use abi_x86_64 && use !abi_x86_32; then
|
||||||
|
dosym wine64 ${WINE_PREFIX}/bin/wine
|
||||||
|
dosym wine64-preloader ${WINE_PREFIX}/bin/wine-preloader
|
||||||
|
local man
|
||||||
|
for man in ../build64/loader/wine.*man; do
|
||||||
|
: "${man##*/wine}"
|
||||||
|
: "${_%.*}"
|
||||||
|
insinto ${WINE_DATADIR}/man/${_:+${_#.}/}man1
|
||||||
|
newins ${man} wine.1
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
|
||||||
|
"${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} || die
|
||||||
|
|
||||||
|
# create variant wrappers for eselect-wine
|
||||||
|
local bin
|
||||||
|
for bin in "${ED}"${WINE_PREFIX}/bin/*; do
|
||||||
|
make_wrapper "${bin##*/}-${P#wine-}" "${bin#"${ED}"}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# don't let portage try to strip PE files with the wrong
|
||||||
|
# strip executable and instead handle it here (saves ~120MB)
|
||||||
|
if use mingw; then
|
||||||
|
dostrip -x ${WINE_PREFIX}/wine/{i386,x86_64}-windows
|
||||||
|
use debug ||
|
||||||
|
find "${ED}"${WINE_PREFIX}/wine/*-windows -regex '.*\.\(a\|dll\|exe\)' \
|
||||||
|
-exec $(usex abi_x86_64 x86_64 i686)-w64-mingw32-strip --strip-unneeded {} + || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodoc ANNOUNCE AUTHORS README* documentation/README*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect wine update --if-unset || die
|
||||||
|
}
|
||||||
5
app-misc/clight/Manifest
Normal file
5
app-misc/clight/Manifest
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
AUX clight-gentoo-skip-manpage-compression.patch 561 BLAKE2B f479004ed1c16a12c660b937fc4903f7c3d99c474ccbbc190f6e863aea9326e2f3b12e0d25283bc42d1328f9569c02cf467b55006e5566e9d92a7c8352e40249 SHA512 e8b4d8c3b673c9e9e67e39009c81d0528f5185c1d69a8341d43a04593a620b5924503fd765fcd2f14e151c813141f5873a6c3f44f338c3c49909a8e60f3a308d
|
||||||
|
DIST clight-4.9.tar.gz 90850 BLAKE2B e914032ab47ec22a527d7cdc6cd2b4506418e267204f44fea6ef0c83f80f635c5f929605d6e59df87eacad595e3db3985ef548d2e41587b779ebece1a099ff66 SHA512 6af176ebf919d6c4ac2769376dd04e13ff2044b768e688620ce1f41cd7a82d146cbe64c5266f318e4b5d2d4a779f515cdefd46ff0cd8d6fc3bb9e4bdfb70b2d5
|
||||||
|
EBUILD clight-4.9.ebuild 1129 BLAKE2B 6a435ebae95c9c244e4bea1bbcaa8ee54d4d0a676ea3c25afc51a84dbc96270bf59c4872bc76ee17bd822ba50fa1b80b7ecfa6d7f0af0fb706b4edfeff2062cb SHA512 9baf19aa1cb3b328c7c0afee827553876b667a57e88677f5309a64463ac12366f6d20216e5cce70e909bb45f529f8a38e04610df678f6036bffa51a198a95809
|
||||||
|
EBUILD clight-9999.ebuild 1129 BLAKE2B 6a435ebae95c9c244e4bea1bbcaa8ee54d4d0a676ea3c25afc51a84dbc96270bf59c4872bc76ee17bd822ba50fa1b80b7ecfa6d7f0af0fb706b4edfeff2062cb SHA512 9baf19aa1cb3b328c7c0afee827553876b667a57e88677f5309a64463ac12366f6d20216e5cce70e909bb45f529f8a38e04610df678f6036bffa51a198a95809
|
||||||
|
MISC metadata.xml 434 BLAKE2B e2ab4eee2375f50ce7c41dd95e37cf906ff17030200cf010fcce73e0bcba07a434ce2979eb4c67e7914590aac941b1572ed419c2fac25d324231eea1c6efcf8c SHA512 4ac727e28d3fd5045a6d81091e27ba08f3fc191cef71f9be171aed649fc81e8ecaecd80672653aa79c7230b8d2f38e7ae39732cbcc75a3e869b32a6089b4d299
|
||||||
60
app-misc/clight/clight-4.9.ebuild
Normal file
60
app-misc/clight/clight-4.9.ebuild
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 2020-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MY_PN="${PN^}"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/FedeDP/${MY_PN}"
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
VCS_ECLASS="git-r3"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/FedeDP/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${P^}"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake xdg-utils ${VCS_ECLASS}
|
||||||
|
|
||||||
|
DESCRIPTION="A C daemon that turns your webcam into a light sensor"
|
||||||
|
HOMEPAGE="https://github.com/FedeDP/Clight"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="bash-completion geoclue upower"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/clight-gentoo-skip-manpage-compression.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/libconfig
|
||||||
|
dev-libs/popt
|
||||||
|
sci-libs/gsl
|
||||||
|
|| ( sys-auth/elogind sys-apps/systemd )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
>=app-misc/clightd-5.0
|
||||||
|
geoclue? ( app-misc/geoclue:2.0 )
|
||||||
|
upower? ( sys-power/upower )
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
>=dev-libs/libmodule-5.0.0
|
||||||
|
dev-util/cmake
|
||||||
|
sys-apps/dbus
|
||||||
|
virtual/pkgconfig
|
||||||
|
bash-completion? ( app-shells/bash-completion )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
60
app-misc/clight/clight-9999.ebuild
Normal file
60
app-misc/clight/clight-9999.ebuild
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 2020-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MY_PN="${PN^}"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/FedeDP/${MY_PN}"
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
VCS_ECLASS="git-r3"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/FedeDP/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${P^}"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake xdg-utils ${VCS_ECLASS}
|
||||||
|
|
||||||
|
DESCRIPTION="A C daemon that turns your webcam into a light sensor"
|
||||||
|
HOMEPAGE="https://github.com/FedeDP/Clight"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="bash-completion geoclue upower"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/clight-gentoo-skip-manpage-compression.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/libconfig
|
||||||
|
dev-libs/popt
|
||||||
|
sci-libs/gsl
|
||||||
|
|| ( sys-auth/elogind sys-apps/systemd )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
>=app-misc/clightd-5.0
|
||||||
|
geoclue? ( app-misc/geoclue:2.0 )
|
||||||
|
upower? ( sys-power/upower )
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
>=dev-libs/libmodule-5.0.0
|
||||||
|
dev-util/cmake
|
||||||
|
sys-apps/dbus
|
||||||
|
virtual/pkgconfig
|
||||||
|
bash-completion? ( app-shells/bash-completion )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index e6d8b1a..60b1813 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -125,8 +125,7 @@ endif()
|
||||||
|
|
||||||
|
# Configure, gzip and install man pages
|
||||||
|
configure_file(${EXTRA_DIR}/man/clight.1 clight.1 @ONLY)
|
||||||
|
-execute_process(COMMAND gzip clight.1 WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/clight.1.gz DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/man/man1)
|
||||||
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/clight.1 DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/man/man1)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Packaging support
|
||||||
14
app-misc/clight/metadata.xml
Normal file
14
app-misc/clight/metadata.xml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>erkiferenc@gmail.com</email>
|
||||||
|
<name>Ferenc Erki</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">FedeDP/Clight</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="geoclue">Enable geolocation support through <pkg>app-misc/geoclue</pkg></flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
||||||
4
app-misc/clightd/Manifest
Normal file
4
app-misc/clightd/Manifest
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
DIST clightd-5.7.tar.gz 69412 BLAKE2B 9191c0153b313d47028b0396fb0ab12bf002028ad5bcc254dfef79a57cfff99d078792a7625ec3bbb778ddc7cb4001aaa41d77dd093cd0f4de7b6db8bcab0abb SHA512 f621b5ef904e6851ae1959632fb9a650d9ed7cb881ad4a70e3e7cdc877b74c78daab349c44baecadcebfcce01ac72fea6202858616864aba92a16eebda5deff6
|
||||||
|
EBUILD clightd-5.7.ebuild 1411 BLAKE2B 45d449ea8e524349b71e1930f2ee402f124fbd24ebc2e3a007ee822c693bc77293557d64f47118c14d07bb33e7fbb9a71776dba0a3c1c5985ccac72e7ae31dba SHA512 3f9916a060dcc2b0c8dff6137cc9caa52b4f23e5267337617c3e39a0511b27f26514f51c35a030be1171da2aa80b82d6479fbce19305c5e7ffcfee571a327eb7
|
||||||
|
EBUILD clightd-9999.ebuild 1411 BLAKE2B 45d449ea8e524349b71e1930f2ee402f124fbd24ebc2e3a007ee822c693bc77293557d64f47118c14d07bb33e7fbb9a71776dba0a3c1c5985ccac72e7ae31dba SHA512 3f9916a060dcc2b0c8dff6137cc9caa52b4f23e5267337617c3e39a0511b27f26514f51c35a030be1171da2aa80b82d6479fbce19305c5e7ffcfee571a327eb7
|
||||||
|
MISC metadata.xml 708 BLAKE2B db8f9056a0569b82212e6035f959c24ce9914cb5cc25d184274052a8663cff5c31f31128d1f0e41cb9d5c1f9f38b98833c3e9f0dd31ee5212ce541f3c5356620 SHA512 b071b09ea31b01bf0f87d91da79761fdd374108ba6784b8d0d7a44efdaa20772d4bec8ace4bcc9fdb25f0ab4dbdd925f6c736c17629d29e3b23f26408793feb1
|
||||||
75
app-misc/clightd/clightd-5.7.ebuild
Normal file
75
app-misc/clightd/clightd-5.7.ebuild
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# Copyright 2020-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MY_PN="${PN^}"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/FedeDP/${MY_PN}"
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
VCS_ECLASS="git-r3"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/FedeDP/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${P^}"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake ${VCS_ECLASS}
|
||||||
|
|
||||||
|
DESCRIPTION="A linux bus interface for screen settings (brightness, gamma, etc.)"
|
||||||
|
HOMEPAGE="https://github.com/FedeDP/Clightd"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="ddc dpms gamma pipewire screen yoctolight"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-libs/libmodule-5.0.0
|
||||||
|
media-libs/libjpeg-turbo
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-auth/polkit
|
||||||
|
virtual/libudev
|
||||||
|
|| ( sys-auth/elogind sys-apps/systemd )
|
||||||
|
ddc? (
|
||||||
|
>=app-misc/ddcutil-0.9.5
|
||||||
|
)
|
||||||
|
dpms? (
|
||||||
|
dev-libs/wayland
|
||||||
|
x11-libs/libdrm
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
gamma? (
|
||||||
|
dev-libs/wayland
|
||||||
|
x11-libs/libdrm
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
pipewire? (
|
||||||
|
media-video/pipewire
|
||||||
|
)
|
||||||
|
screen? (
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
yoctolight? (
|
||||||
|
virtual/libusb:1
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=() useflag
|
||||||
|
|
||||||
|
for useflag in ddc dpms gamma screen yoctolight; do
|
||||||
|
mycmakeargs+=( -DENABLE_${useflag^^}=$(usex $useflag) )
|
||||||
|
done
|
||||||
|
|
||||||
|
if use ddc; then
|
||||||
|
mycmakeargs+=( -DMODULE_LOAD_DIR=/etc/modules-load.d )
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
75
app-misc/clightd/clightd-9999.ebuild
Normal file
75
app-misc/clightd/clightd-9999.ebuild
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# Copyright 2020-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
MY_PN="${PN^}"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/FedeDP/${MY_PN}"
|
||||||
|
EGIT_BRANCH="master"
|
||||||
|
VCS_ECLASS="git-r3"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/FedeDP/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${P^}"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake ${VCS_ECLASS}
|
||||||
|
|
||||||
|
DESCRIPTION="A linux bus interface for screen settings (brightness, gamma, etc.)"
|
||||||
|
HOMEPAGE="https://github.com/FedeDP/Clightd"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="ddc dpms gamma pipewire screen yoctolight"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-libs/libmodule-5.0.0
|
||||||
|
media-libs/libjpeg-turbo
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-auth/polkit
|
||||||
|
virtual/libudev
|
||||||
|
|| ( sys-auth/elogind sys-apps/systemd )
|
||||||
|
ddc? (
|
||||||
|
>=app-misc/ddcutil-0.9.5
|
||||||
|
)
|
||||||
|
dpms? (
|
||||||
|
dev-libs/wayland
|
||||||
|
x11-libs/libdrm
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
gamma? (
|
||||||
|
dev-libs/wayland
|
||||||
|
x11-libs/libdrm
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
pipewire? (
|
||||||
|
media-video/pipewire
|
||||||
|
)
|
||||||
|
screen? (
|
||||||
|
x11-libs/libX11
|
||||||
|
)
|
||||||
|
yoctolight? (
|
||||||
|
virtual/libusb:1
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=() useflag
|
||||||
|
|
||||||
|
for useflag in ddc dpms gamma screen yoctolight; do
|
||||||
|
mycmakeargs+=( -DENABLE_${useflag^^}=$(usex $useflag) )
|
||||||
|
done
|
||||||
|
|
||||||
|
if use ddc; then
|
||||||
|
mycmakeargs+=( -DMODULE_LOAD_DIR=/etc/modules-load.d )
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
19
app-misc/clightd/metadata.xml
Normal file
19
app-misc/clightd/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>erkiferenc@gmail.com</email>
|
||||||
|
<name>Ferenc Erki</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">FedeDP/Clightd</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="ddc">Enable ddcutil support</flag>
|
||||||
|
<flag name="dpms">Enable DPMS support</flag>
|
||||||
|
<flag name="gamma">Enable gamma support</flag>
|
||||||
|
<flag name="screen">Enable screen emitted backlight computation support</flag>
|
||||||
|
<flag name="pipewire">Enable pipewire camera sensor support</flag>
|
||||||
|
<flag name="yoctolight">Enable YoctoLight ALS devices support</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
||||||
3
dev-libs/libmodule/Manifest
Normal file
3
dev-libs/libmodule/Manifest
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
DIST libmodule-5.0.1.tar.gz 51155 BLAKE2B 9f183d9f28d1e7a3a9db95326800565ebd33e82f050d768d0e8c9b6b597ebf9a608a3b574a29a02f80dd6d5bf7a89dbf5999055d3006f939874c8dca12e8403b SHA512 3301d00d078d3c8a257e56576b8264dcd44636f8503e786a1e72dfdd7b9bad2717f76034fc78c756c4d0e3547a823cb1d76259852fff06785789719d19f5e948
|
||||||
|
EBUILD libmodule-5.0.1.ebuild 415 BLAKE2B 90a615ec04e7745ba0f16d36098f2228e0d71d6395595f221b17752cbf84921f40e872982f40b36d0937938a2c1ced2e97f8fb3eb32eacefc472bfa8640bb799 SHA512 ffb2fc6e6551394958c91162e9c35d0874767c17bf29fbd323a99061df94227f4d16f2213065e88eb2d777f62abd8ecd7186001015b9eefd2ee54ecb6194f2df
|
||||||
|
MISC metadata.xml 329 BLAKE2B d8c3cdca78d0318f37d4f11b186fcae4368329a77ea9961d4426075fb23fd8d9cabebb7ea2d375d5b198a91047c62296f62a20e2d3dce5cb5977d53be406b014 SHA512 0bb769c646235931c697cedb1c8c9e76b9e47e3004f60c6b329fb24597587868fa48c6713a37c695b4752c1e3a276b3c8e86d21349e6cd89206db209042ec3b3
|
||||||
19
dev-libs/libmodule/libmodule-5.0.1.ebuild
Normal file
19
dev-libs/libmodule/libmodule-5.0.1.ebuild
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Copyright 2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
DESCRIPTION="C simple and elegant implementation of an actor library"
|
||||||
|
HOMEPAGE="https://github.com/FedeDP/libmodule"
|
||||||
|
SRC_URI="https://github.com/FedeDP/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND=""
|
||||||
11
dev-libs/libmodule/metadata.xml
Normal file
11
dev-libs/libmodule/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>erkiferenc@gmail.com</email>
|
||||||
|
<name>Ferenc Erki</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">FedeDP/libmodule</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
6
media-libs/mesa/Manifest
Normal file
6
media-libs/mesa/Manifest
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
AUX clang_resource_dir.patch 1129 BLAKE2B 40cf2bc3381d5318c95d3fdadef1bdb6bb57f3b04270e07c0a66613b6432ad617be73d34122be3280d861dde0663fc5c96bb37a9312c2e333e39e69287a9e33a SHA512 493585cf0a93fda04d4577095ae04e1c3dc37aa446ea0873e81857cd2f2c6519bbdf34f0d6e6dd47dd1e927cc776f46901ebab14c7040a92688c3868204b3856
|
||||||
|
AUX mesa-23.0.2-wayland-crash-warnings-2.patch 1854 BLAKE2B e0aaa149f3a3c45dc4ea57b28146b19774d386bfd070ad22344596caa8fbba1eaed37ce6938792be448bb1adb1a37fc3c004bdca486592db84aea26dacf4d167 SHA512 762f2917aead5ead4586a0875cb79f56c5a1becc80fa37e15e46bfb432a679f8e31025cca55c1d5068efebb60367eb11223e24c729406a9ce56ba536796acb0d
|
||||||
|
AUX mesa-23.0.2-wayland-crash-warnings.patch 1430 BLAKE2B a7c7ef4a34ac9c76c4c5af783510887705a1d6acbc62978b2cc8a021534e215404de3d5828d9c052dccc85808da5b0553f9172fa8edccb40ed7fdc6bc1df35c3 SHA512 98b8a3de99c96474a07615b225b00773c9988a05e25a70cc6586c60762bea8d1a0bbbb47d45e8a38d780951a83abd2c6bbda19180b2457a686625b140b570014
|
||||||
|
AUX mesa-23.1.0-intel-Disable-shader-cache-when-executing-intel_clc-.patch 1072 BLAKE2B e8c221f448ae22ce77694478a5c380fdc01837aa0a4cd0aeab9c3b37d4dfe47a0c9c127a7ed2051ee9b8b8c5a05c12a4127bda285e9d35558a10100994389570 SHA512 608f3f1bdfd2cb7be39ebff2843e64245ee75e1cd2d13cf9e767488b5b8bbeb419966881338334f39bece5f853b066405fc9d17d0d7b2c264f030361e4dcd72e
|
||||||
|
DIST mesa-23.0.3.tar.xz 17627728 BLAKE2B e716d9ddce3da649239c1bc37ec208b9669f316f6b547ca0c69937043f371f0d59ead34fec427297171916045061ddb8783d126f6dec5ece90a0719003fe2c40 SHA512 52c778de61daa406c6a1e96a657e9b6fdcc71c8cfda80b7f53acc6470556c7d502c057b9481bb0c3d57ef0263263413fd0d25d53ebf5aa0246fbcc3309de64ae
|
||||||
|
EBUILD mesa-23.0.3-r1.ebuild 12250 BLAKE2B 4e6add8f5a8a6758b12f5c72e42e2b7df839ea793f155b6653b9cd6eed82eccca39768cdc8deb6b718627c4df7b0ad1ddcdf54a4db48eaf4c55fbcf570e7168e SHA512 9f4ca64c734a77f175abbc4037cb4291ab9f9d8f329087aa487fc628926bec163fdf43abef43e75cde6f08327e3b8c04c7c24a36150fb2444de9d7fae3e37c0d
|
||||||
24
media-libs/mesa/files/clang_resource_dir.patch
Normal file
24
media-libs/mesa/files/clang_resource_dir.patch
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19232#note_1776640
|
||||||
|
https://gitlab.freedesktop.org/mesa/mesa/-/issues/7717#note_1832122
|
||||||
|
|
||||||
|
diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp
|
||||||
|
index 80bc84831e4..34d156bf227 100644
|
||||||
|
--- a/src/compiler/clc/clc_helpers.cpp
|
||||||
|
+++ b/src/compiler/clc/clc_helpers.cpp
|
||||||
|
@@ -39,6 +39,7 @@
|
||||||
|
#include <llvm-c/Target.h>
|
||||||
|
#include <LLVMSPIRVLib/LLVMSPIRVLib.h>
|
||||||
|
|
||||||
|
+#include <clang/Config/config.h>
|
||||||
|
#include <clang/Driver/Driver.h>
|
||||||
|
#include <clang/CodeGen/CodeGenAction.h>
|
||||||
|
#include <clang/Lex/PreprocessorOptions.h>
|
||||||
|
@@ -866,7 +867,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
|
||||||
|
// because we might have linked clang statically.
|
||||||
|
auto libclang_path = fs::path(LLVM_LIB_DIR) / "libclang.so";
|
||||||
|
auto clang_res_path =
|
||||||
|
- fs::path(clang::driver::Driver::GetResourcesPath(libclang_path.string())) / "include";
|
||||||
|
+ fs::path(clang::driver::Driver::GetResourcesPath(libclang_path.string(), CLANG_RESOURCE_DIR)) / "include";
|
||||||
|
|
||||||
|
c->getHeaderSearchOpts().UseBuiltinIncludes = true;
|
||||||
|
c->getHeaderSearchOpts().UseStandardSystemIncludes = true;
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
https://bugs.gentoo.org/904072
|
||||||
|
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21647
|
||||||
|
|
||||||
|
From 689ce66a4332524b4eb98877de6f75d05dd05c60 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||||
|
Date: Thu, 2 Mar 2023 10:10:42 +0200
|
||||||
|
Subject: [PATCH] vulkan/wsi/wayland: Fix destruction of event queue with
|
||||||
|
proxies still attached.
|
||||||
|
|
||||||
|
Destroy the surface dmabuf feedback proxy before destroying the event
|
||||||
|
queue that the proxy is attached to.
|
||||||
|
|
||||||
|
This silences a warning that libwayland 1.22 emits for programs that use
|
||||||
|
Vulkan/Wayland:
|
||||||
|
|
||||||
|
warning: queue 0x557a4efbcf70 destroyed while proxies still attached:
|
||||||
|
zwp_linux_dmabuf_feedback_v1@18 still attached
|
||||||
|
|
||||||
|
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||||
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21647>
|
||||||
|
--- a/src/vulkan/wsi/wsi_common_wayland.c
|
||||||
|
+++ b/src/vulkan/wsi/wsi_common_wayland.c
|
||||||
|
@@ -1157,18 +1157,18 @@ wsi_wl_surface_destroy(VkIcdSurfaceBase *icd_surface, VkInstance _instance,
|
||||||
|
struct wsi_wl_surface *wsi_wl_surface =
|
||||||
|
wl_container_of((VkIcdSurfaceWayland *)icd_surface, wsi_wl_surface, base);
|
||||||
|
|
||||||
|
- if (wsi_wl_surface->surface)
|
||||||
|
- wl_proxy_wrapper_destroy(wsi_wl_surface->surface);
|
||||||
|
-
|
||||||
|
- if (wsi_wl_surface->display)
|
||||||
|
- wsi_wl_display_destroy(wsi_wl_surface->display);
|
||||||
|
-
|
||||||
|
if (wsi_wl_surface->wl_dmabuf_feedback) {
|
||||||
|
zwp_linux_dmabuf_feedback_v1_destroy(wsi_wl_surface->wl_dmabuf_feedback);
|
||||||
|
dmabuf_feedback_fini(&wsi_wl_surface->dmabuf_feedback);
|
||||||
|
dmabuf_feedback_fini(&wsi_wl_surface->pending_dmabuf_feedback);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (wsi_wl_surface->surface)
|
||||||
|
+ wl_proxy_wrapper_destroy(wsi_wl_surface->surface);
|
||||||
|
+
|
||||||
|
+ if (wsi_wl_surface->display)
|
||||||
|
+ wsi_wl_display_destroy(wsi_wl_surface->display);
|
||||||
|
+
|
||||||
|
vk_free2(&instance->alloc, pAllocator, wsi_wl_surface);
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
https://bugs.gentoo.org/904072
|
||||||
|
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21646
|
||||||
|
|
||||||
|
From ee5d2250fd159689aae3f7d632a6226971bea85c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||||
|
Date: Thu, 2 Mar 2023 09:35:08 +0200
|
||||||
|
Subject: [PATCH] egl/wayland: Fix destruction of event queue with proxies
|
||||||
|
still attached.
|
||||||
|
|
||||||
|
Destroy the display wrapper proxy before destroying the event queue that
|
||||||
|
the proxy is attached to.
|
||||||
|
|
||||||
|
This silences a warning that libwayland 1.22 emits for programs that use
|
||||||
|
EGL/Wayland:
|
||||||
|
|
||||||
|
warning: queue 0x562a5ed2cd20 destroyed while proxies still attached:
|
||||||
|
wl_display@1 still attached
|
||||||
|
|
||||||
|
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
|
||||||
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21646>
|
||||||
|
--- a/src/egl/drivers/dri2/platform_wayland.c
|
||||||
|
+++ b/src/egl/drivers/dri2/platform_wayland.c
|
||||||
|
@@ -2865,10 +2865,10 @@ dri2_teardown_wayland(struct dri2_egl_display *dri2_dpy)
|
||||||
|
wl_shm_destroy(dri2_dpy->wl_shm);
|
||||||
|
if (dri2_dpy->wl_registry)
|
||||||
|
wl_registry_destroy(dri2_dpy->wl_registry);
|
||||||
|
- if (dri2_dpy->wl_queue)
|
||||||
|
- wl_event_queue_destroy(dri2_dpy->wl_queue);
|
||||||
|
if (dri2_dpy->wl_dpy_wrapper)
|
||||||
|
wl_proxy_wrapper_destroy(dri2_dpy->wl_dpy_wrapper);
|
||||||
|
+ if (dri2_dpy->wl_queue)
|
||||||
|
+ wl_event_queue_destroy(dri2_dpy->wl_queue);
|
||||||
|
|
||||||
|
if (dri2_dpy->own_device)
|
||||||
|
wl_display_disconnect(dri2_dpy->wl_dpy);
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
From 28efca603bf11f361eb741d23ef181a3b6905f74 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Matt Turner <mattst88@gmail.com>
|
||||||
|
Date: Thu, 11 May 2023 13:51:25 -0400
|
||||||
|
Subject: [PATCH] intel: Disable shader cache when executing intel_clc during
|
||||||
|
the build
|
||||||
|
|
||||||
|
With the shader cache enabled, intel_clc attempts to write to ~/.cache.
|
||||||
|
Many distributions' build systems limit file-system access, and will
|
||||||
|
kill the process thus causing the build to fail.
|
||||||
|
|
||||||
|
Fixes: 639665053fa ("anv/grl: Build OpenCL kernels")
|
||||||
|
---
|
||||||
|
src/intel/vulkan/grl/meson.build | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/intel/vulkan/grl/meson.build b/src/intel/vulkan/grl/meson.build
|
||||||
|
index 3d7567cfc13..c0056b3493d 100644
|
||||||
|
--- a/src/intel/vulkan/grl/meson.build
|
||||||
|
+++ b/src/intel/vulkan/grl/meson.build
|
||||||
|
@@ -142,6 +142,7 @@ foreach t : [['125', 'gfx125', 'dg2']]
|
||||||
|
# without modifying grl source code, remove
|
||||||
|
# if fixed there
|
||||||
|
],
|
||||||
|
+ env: ['MESA_SHADER_CACHE_DISABLE=true'],
|
||||||
|
depends : [prog_intel_clc]
|
||||||
|
)
|
||||||
|
endforeach
|
||||||
|
--
|
||||||
|
2.39.3
|
||||||
|
|
||||||
462
media-libs/mesa/mesa-23.0.3-r1.ebuild
Normal file
462
media-libs/mesa/mesa-23.0.3-r1.ebuild
Normal file
@@ -0,0 +1,462 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
|
inherit llvm meson-multilib python-any-r1 linux-info
|
||||||
|
|
||||||
|
MY_P="${P/_/-}"
|
||||||
|
|
||||||
|
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||||
|
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz"
|
||||||
|
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RADEON_CARDS="r300 r600 radeon radeonsi"
|
||||||
|
VIDEO_CARDS="${RADEON_CARDS} d3d12 freedreno intel lima nouveau panfrost v3d vc4 virgl vivante vmware"
|
||||||
|
for card in ${VIDEO_CARDS}; do
|
||||||
|
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||||
|
done
|
||||||
|
|
||||||
|
IUSE="${IUSE_VIDEO_CARDS}
|
||||||
|
cpu_flags_x86_sse2 d3d9 debug gles1 +gles2 +llvm
|
||||||
|
lm-sensors opencl osmesa +proprietary-codecs selinux
|
||||||
|
test unwind vaapi valgrind vdpau vulkan
|
||||||
|
vulkan-overlay wayland +X xa zink +zstd"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
d3d9? ( || ( video_cards_intel video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||||
|
vulkan? ( video_cards_radeonsi? ( llvm ) )
|
||||||
|
vulkan-overlay? ( vulkan )
|
||||||
|
video_cards_radeon? ( x86? ( llvm ) amd64? ( llvm ) )
|
||||||
|
video_cards_r300? ( x86? ( llvm ) amd64? ( llvm ) )
|
||||||
|
video_cards_radeonsi? ( llvm )
|
||||||
|
vdpau? ( X )
|
||||||
|
xa? ( X )
|
||||||
|
zink? ( vulkan )
|
||||||
|
"
|
||||||
|
|
||||||
|
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.110"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}]
|
||||||
|
>=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}]
|
||||||
|
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||||
|
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||||
|
llvm? (
|
||||||
|
video_cards_radeonsi? (
|
||||||
|
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
video_cards_r600? (
|
||||||
|
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
video_cards_radeon? (
|
||||||
|
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
lm-sensors? ( sys-apps/lm-sensors:=[${MULTILIB_USEDEP}] )
|
||||||
|
opencl? (
|
||||||
|
>=virtual/opencl-3[${MULTILIB_USEDEP}]
|
||||||
|
dev-libs/libclc
|
||||||
|
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
vaapi? (
|
||||||
|
>=media-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||||
|
selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] )
|
||||||
|
wayland? ( >=dev-libs/wayland-1.18.0[${MULTILIB_USEDEP}] )
|
||||||
|
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_intel?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||||
|
X? (
|
||||||
|
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libxshmfence-1.1[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}]
|
||||||
|
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||||
|
x11-libs/libXfixes[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
zink? ( media-libs/vulkan-loader:=[${MULTILIB_USEDEP}] )
|
||||||
|
zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] )
|
||||||
|
"
|
||||||
|
for card in ${RADEON_CARDS}; do
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||||
|
"
|
||||||
|
done
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||||
|
"
|
||||||
|
|
||||||
|
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||||
|
# we need to *really* make sure we're not pulling one than more slot
|
||||||
|
# simultaneously.
|
||||||
|
#
|
||||||
|
# How to use it:
|
||||||
|
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||||
|
# 2. Update the := to specify *max* version, e.g. < 10.
|
||||||
|
# 3. Specify LLVM_MAX_SLOT, e.g. 9.
|
||||||
|
LLVM_MAX_SLOT="16"
|
||||||
|
LLVM_DEPSTR="
|
||||||
|
|| (
|
||||||
|
sys-devel/llvm:16[${MULTILIB_USEDEP}]
|
||||||
|
sys-devel/llvm:15[${MULTILIB_USEDEP}]
|
||||||
|
)
|
||||||
|
<sys-devel/llvm-$((LLVM_MAX_SLOT + 1)):=[${MULTILIB_USEDEP}]
|
||||||
|
"
|
||||||
|
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||||
|
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||||
|
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
llvm? (
|
||||||
|
opencl? (
|
||||||
|
video_cards_r600? (
|
||||||
|
${CLANG_DEPSTR_AMDGPU}
|
||||||
|
)
|
||||||
|
!video_cards_r600? (
|
||||||
|
video_cards_radeonsi? (
|
||||||
|
${CLANG_DEPSTR_AMDGPU}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!video_cards_r600? (
|
||||||
|
!video_cards_radeonsi? (
|
||||||
|
video_cards_radeon? (
|
||||||
|
${CLANG_DEPSTR_AMDGPU}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!video_cards_r600? (
|
||||||
|
!video_cards_radeon? (
|
||||||
|
!video_cards_radeonsi? (
|
||||||
|
${CLANG_DEPSTR}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!opencl? (
|
||||||
|
video_cards_r600? (
|
||||||
|
${LLVM_DEPSTR_AMDGPU}
|
||||||
|
)
|
||||||
|
!video_cards_r600? (
|
||||||
|
video_cards_radeonsi? (
|
||||||
|
${LLVM_DEPSTR_AMDGPU}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!video_cards_r600? (
|
||||||
|
!video_cards_radeonsi? (
|
||||||
|
video_cards_radeon? (
|
||||||
|
${LLVM_DEPSTR_AMDGPU}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
!video_cards_r600? (
|
||||||
|
!video_cards_radeon? (
|
||||||
|
!video_cards_radeonsi? (
|
||||||
|
${LLVM_DEPSTR}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
video_cards_d3d12? ( dev-util/directx-headers[${MULTILIB_USEDEP}] )
|
||||||
|
valgrind? ( dev-util/valgrind )
|
||||||
|
wayland? ( >=dev-libs/wayland-protocols-1.24 )
|
||||||
|
X? (
|
||||||
|
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||||
|
x11-base/xorg-proto
|
||||||
|
)
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
opencl? (
|
||||||
|
>=sys-devel/gcc-4.6
|
||||||
|
)
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
virtual/pkgconfig
|
||||||
|
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||||
|
vulkan? ( dev-util/glslang )
|
||||||
|
wayland? ( dev-util/wayland-scanner )
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
EGIT_CHECKOUT_DIR=${S}
|
||||||
|
|
||||||
|
QA_WX_LOAD="
|
||||||
|
x86? (
|
||||||
|
usr/lib*/libglapi.so.0.0.0
|
||||||
|
usr/lib*/libGLESv1_CM.so.1.1.0
|
||||||
|
usr/lib*/libGLESv2.so.2.0.0
|
||||||
|
usr/lib*/libGL.so.1.2.0
|
||||||
|
usr/lib*/libOSMesa.so.8.0.0
|
||||||
|
usr/lib/libGLX_mesa.so.0.0.0
|
||||||
|
)"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-23.0.2-wayland-crash-warnings.patch
|
||||||
|
"${FILESDIR}"/${PN}-23.0.2-wayland-crash-warnings-2.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
llvm_check_deps() {
|
||||||
|
local flags=${MULTILIB_USEDEP}
|
||||||
|
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||||
|
then
|
||||||
|
flags+=",llvm_targets_AMDGPU(-)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use opencl; then
|
||||||
|
has_version "sys-devel/clang:${LLVM_SLOT}[${flags}]" || return 1
|
||||||
|
fi
|
||||||
|
has_version "sys-devel/llvm:${LLVM_SLOT}[${flags}]"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if use vulkan; then
|
||||||
|
if ! use video_cards_d3d12 &&
|
||||||
|
! use video_cards_freedreno &&
|
||||||
|
! use video_cards_intel &&
|
||||||
|
! use video_cards_radeonsi &&
|
||||||
|
! use video_cards_v3d; then
|
||||||
|
ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain d3d12, freedreno, intel, radeonsi, or v3d"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use opencl; then
|
||||||
|
if ! use video_cards_r600 &&
|
||||||
|
! use video_cards_radeonsi; then
|
||||||
|
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vaapi; then
|
||||||
|
if ! use video_cards_d3d12 &&
|
||||||
|
! use video_cards_r600 &&
|
||||||
|
! use video_cards_radeonsi &&
|
||||||
|
! use video_cards_nouveau; then
|
||||||
|
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain d3d12, r600, radeonsi, or nouveau"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use vdpau; then
|
||||||
|
if ! use video_cards_d3d12 &&
|
||||||
|
! use video_cards_r300 &&
|
||||||
|
! use video_cards_r600 &&
|
||||||
|
! use video_cards_radeonsi &&
|
||||||
|
! use video_cards_nouveau; then
|
||||||
|
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain d3d12, r300, r600, radeonsi, or nouveau"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use xa; then
|
||||||
|
if ! use video_cards_freedreno &&
|
||||||
|
! use video_cards_nouveau &&
|
||||||
|
! use video_cards_vmware; then
|
||||||
|
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! use llvm; then
|
||||||
|
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use osmesa && ! use llvm; then
|
||||||
|
ewarn "OSMesa will be slow without enabling USE=llvm"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_check_deps() {
|
||||||
|
python_has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# warning message for bug 459306
|
||||||
|
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||||
|
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||||
|
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use video_cards_intel ||
|
||||||
|
use video_cards_radeonsi; then
|
||||||
|
if kernel_is -ge 5 11 3; then
|
||||||
|
CONFIG_CHECK="~KCMP"
|
||||||
|
elif kernel_is -ge 5 11; then
|
||||||
|
CONFIG_CHECK="~CHECKPOINT_RESTORE"
|
||||||
|
elif kernel_is -ge 5 10 20; then
|
||||||
|
CONFIG_CHECK="~KCMP"
|
||||||
|
else
|
||||||
|
CONFIG_CHECK="~CHECKPOINT_RESTORE"
|
||||||
|
fi
|
||||||
|
linux-info_pkg_setup
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use llvm; then
|
||||||
|
llvm_pkg_setup
|
||||||
|
fi
|
||||||
|
python-any-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local emesonargs=()
|
||||||
|
|
||||||
|
local platforms
|
||||||
|
use X && platforms+="x11"
|
||||||
|
use wayland && platforms+=",wayland"
|
||||||
|
emesonargs+=(-Dplatforms=${platforms#,})
|
||||||
|
|
||||||
|
if use video_cards_intel ||
|
||||||
|
use video_cards_r300 ||
|
||||||
|
use video_cards_r600 ||
|
||||||
|
use video_cards_radeonsi ||
|
||||||
|
use video_cards_nouveau ||
|
||||||
|
use video_cards_vmware; then
|
||||||
|
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||||
|
else
|
||||||
|
emesonargs+=(-Dgallium-nine=false)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use video_cards_d3d12 ||
|
||||||
|
use video_cards_r600 ||
|
||||||
|
use video_cards_radeonsi ||
|
||||||
|
use video_cards_nouveau; then
|
||||||
|
emesonargs+=($(meson_feature vaapi gallium-va))
|
||||||
|
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||||
|
else
|
||||||
|
emesonargs+=(-Dgallium-va=disabled)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use video_cards_d3d12; then
|
||||||
|
emesonargs+=($(meson_feature vaapi gallium-d3d12-video))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use video_cards_d3d12 ||
|
||||||
|
use video_cards_r300 ||
|
||||||
|
use video_cards_r600 ||
|
||||||
|
use video_cards_radeonsi ||
|
||||||
|
use video_cards_nouveau; then
|
||||||
|
emesonargs+=($(meson_feature vdpau gallium-vdpau))
|
||||||
|
else
|
||||||
|
emesonargs+=(-Dgallium-vdpau=disabled)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use video_cards_freedreno ||
|
||||||
|
use video_cards_nouveau ||
|
||||||
|
use video_cards_vmware; then
|
||||||
|
emesonargs+=($(meson_feature xa gallium-xa))
|
||||||
|
else
|
||||||
|
emesonargs+=(-Dgallium-xa=disabled)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use video_cards_freedreno ||
|
||||||
|
use video_cards_lima ||
|
||||||
|
use video_cards_panfrost ||
|
||||||
|
use video_cards_v3d ||
|
||||||
|
use video_cards_vc4 ||
|
||||||
|
use video_cards_vivante; then
|
||||||
|
gallium_enable -- kmsro
|
||||||
|
fi
|
||||||
|
|
||||||
|
gallium_enable -- swrast
|
||||||
|
gallium_enable video_cards_freedreno freedreno
|
||||||
|
gallium_enable video_cards_intel crocus i915 iris
|
||||||
|
gallium_enable video_cards_lima lima
|
||||||
|
gallium_enable video_cards_d3d12 d3d12
|
||||||
|
gallium_enable video_cards_nouveau nouveau
|
||||||
|
gallium_enable video_cards_panfrost panfrost
|
||||||
|
gallium_enable video_cards_v3d v3d
|
||||||
|
gallium_enable video_cards_vc4 vc4
|
||||||
|
gallium_enable video_cards_virgl virgl
|
||||||
|
gallium_enable video_cards_vivante etnaviv
|
||||||
|
gallium_enable video_cards_vmware svga
|
||||||
|
gallium_enable zink zink
|
||||||
|
|
||||||
|
gallium_enable video_cards_r300 r300
|
||||||
|
gallium_enable video_cards_r600 r600
|
||||||
|
gallium_enable video_cards_radeonsi radeonsi
|
||||||
|
if ! use video_cards_r300 && \
|
||||||
|
! use video_cards_r600; then
|
||||||
|
gallium_enable video_cards_radeon r300 r600
|
||||||
|
fi
|
||||||
|
|
||||||
|
# opencl stuff
|
||||||
|
emesonargs+=(
|
||||||
|
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||||
|
)
|
||||||
|
|
||||||
|
if use vulkan; then
|
||||||
|
vulkan_enable video_cards_freedreno freedreno
|
||||||
|
vulkan_enable video_cards_intel intel intel_hasvk
|
||||||
|
vulkan_enable video_cards_d3d12 microsoft-experimental
|
||||||
|
vulkan_enable video_cards_radeonsi amd
|
||||||
|
vulkan_enable video_cards_v3d broadcom
|
||||||
|
fi
|
||||||
|
|
||||||
|
driver_list() {
|
||||||
|
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||||
|
echo "${drivers//$'\n'/,}"
|
||||||
|
}
|
||||||
|
|
||||||
|
local vulkan_layers
|
||||||
|
use vulkan && vulkan_layers+="device-select"
|
||||||
|
use vulkan-overlay && vulkan_layers+=",overlay"
|
||||||
|
emesonargs+=(-Dvulkan-layers=${vulkan_layers#,})
|
||||||
|
|
||||||
|
emesonargs+=(
|
||||||
|
$(meson_use test build-tests)
|
||||||
|
-Dglx=$(usex X dri disabled)
|
||||||
|
-Dshared-glapi=enabled
|
||||||
|
-Ddri3=enabled
|
||||||
|
-Degl=enabled
|
||||||
|
-Dgbm=enabled
|
||||||
|
-Dglvnd=true
|
||||||
|
$(meson_feature gles1)
|
||||||
|
$(meson_feature gles2)
|
||||||
|
$(meson_feature llvm)
|
||||||
|
$(meson_feature lm-sensors lmsensors)
|
||||||
|
$(meson_use osmesa)
|
||||||
|
$(meson_use selinux)
|
||||||
|
$(meson_feature unwind libunwind)
|
||||||
|
$(meson_feature zstd)
|
||||||
|
$(meson_use cpu_flags_x86_sse2 sse2)
|
||||||
|
-Dvalgrind=$(usex valgrind auto disabled)
|
||||||
|
-Dvideo-codecs=$(usex proprietary-codecs "h264dec,h264enc,h265dec,h265enc,vc1dec" "")
|
||||||
|
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||||
|
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||||
|
--buildtype $(usex debug debug plain)
|
||||||
|
-Db_ndebug=$(usex debug false true)
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
meson_src_test -t 100
|
||||||
|
}
|
||||||
|
|
||||||
|
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||||
|
# other args - names of DRI drivers to enable
|
||||||
|
gallium_enable() {
|
||||||
|
if [[ $1 == -- ]] || use $1; then
|
||||||
|
shift
|
||||||
|
GALLIUM_DRIVERS+=("$@")
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
vulkan_enable() {
|
||||||
|
if [[ $1 == -- ]] || use $1; then
|
||||||
|
shift
|
||||||
|
VULKAN_DRIVERS+=("$@")
|
||||||
|
fi
|
||||||
|
}
|
||||||
6
media-sound/mpd/Manifest
Normal file
6
media-sound/mpd/Manifest
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
AUX mpd-0.21.1.logrotate 120 BLAKE2B 2111ba897a77a766adf0827c4da7132d5315c7c13ba8e29d582f1030a902492945b0bad6781bbf551e83afd38b957e953215674c669aa2745c1dfa004b20d4b6 SHA512 4a610d4805c32989673d6295fdf4290dc29b11e5b5f3baa2aa957ef9334566f13fa1937e70dc6fe414277e6a026442e4c7e4b406aaf424b96b392da0200ec732
|
||||||
|
AUX mpd-0.21.4.init 767 BLAKE2B 74879e5f52365f987ac53a8ee154f29b4d7f5287cb2a965b180b3ed4a17dcdc68acea5dbe0b3adc99869270fb93a3f68e6728fad0776b9ce500efb6206f4db3c SHA512 36f3246835d6476e8f4f26795f8148f46b04015141894cdf849bfdd04b1cf5aa7a3d5960587f00e2c7d0f71568ca20fee619b95415df4cd0e4978ce95ca5f897
|
||||||
|
AUX mpd-0.23.11-boost-1.81.patch 971 BLAKE2B 56c0963fb2169a8588f0b3dd3ada14859a1de969f455d537f4ac620269a95df77b7029a665824ae81179b7a7ccdbe1943fc451c90faa8171ce9982f72c52e377 SHA512 d8fe43ebe78cff16e7d773e5687960cd5f5ca65d2094d2d9f09c3bd22614ef3e6ad0982db5f8d0427724a12663afed48f20ab41236d2da58a007749955a6b9aa
|
||||||
|
DIST mpd-0.23.12.tar.xz 774708 BLAKE2B b218d9f477e92842638e3fba44c84957a3f656adaaf1ece998847db8d64883b8c997703206f74b37043888757f5f628799a3a35b25ea991f9ad00df1c4ad5e71 SHA512 54495b839d86b47ae6e2f6cf4e1baebd0e8eb924742e9db42cc7462ffc4b6f650b83f3eaea291fe905ff5f1975cf875537ffd23a111724013ce58e6df26ce36e
|
||||||
|
EBUILD mpd-0.23.12.ebuild 6657 BLAKE2B b198c10adb8fc7f0d2bb59c3aa04b6864c814458f82763e61c3ddd2632ae340e68a1107ced06c8414102e61feaee48bdac94f9aaaf4544a24ecf343af8ef3493 SHA512 4a4643acf90d8ceebe884dafe3554e7524de2b1c2af2899268b061e7c7618d722b9b75dc9c69f4d41c7fbb2cefd2050b9503ae7e987cca605f64b75bc017ef4a
|
||||||
|
MISC metadata.xml 2805 BLAKE2B afe65d7428c79de96b99855e74d8a474df33dbd71fe9f9f65f64270126dea5ca9138a533c9f4f8d422722352574ccbfec2ec64f5e492869e9c97fbc84dd2c1a1 SHA512 74c249f71a819f5747739c6c720d48edf52b62012f9d1fd30bb6027bd3c5794161f7a70b7c87d78a60fa46e37fc94aa449e0b8825bb8d3eea32143bf240e1d92
|
||||||
9
media-sound/mpd/files/mpd-0.21.1.logrotate
Normal file
9
media-sound/mpd/files/mpd-0.21.1.logrotate
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/var/lib/mpd/log {
|
||||||
|
missingok
|
||||||
|
weekly
|
||||||
|
delaycompress
|
||||||
|
compress
|
||||||
|
postrotate
|
||||||
|
/etc/init.d/mpd --quiet reload
|
||||||
|
endscript
|
||||||
|
}
|
||||||
34
media-sound/mpd/files/mpd-0.21.4.init
Normal file
34
media-sound/mpd/files/mpd-0.21.4.init
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
: CFGFILE=${CFGFILE:=/etc/mpd.conf}
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need localmount
|
||||||
|
use net netmount nfsmount alsasound esound pulseaudio
|
||||||
|
config ${CFGFILE}
|
||||||
|
}
|
||||||
|
|
||||||
|
get_config() {
|
||||||
|
x=$1
|
||||||
|
test -e ${CFGFILE} || return 1
|
||||||
|
sed -n \
|
||||||
|
-e '/^[ \t]*'${x}'/{s:^[ \t]*'${x}'[ \t]\+"\?\([^#"]\+\)[^"]*"\?$:\1: ; p }' \
|
||||||
|
${CFGFILE}
|
||||||
|
}
|
||||||
|
|
||||||
|
extra_started_commands='reload'
|
||||||
|
# Required by io_uring
|
||||||
|
rc_ulimit="-l 65535"
|
||||||
|
command=/usr/bin/mpd
|
||||||
|
command_args=${CFGFILE}
|
||||||
|
required_files=${CFGFILE}
|
||||||
|
pidfile=$(get_config pid_file)
|
||||||
|
description="Music Player Daemon"
|
||||||
|
|
||||||
|
reload() {
|
||||||
|
ebegin "Reloading ${RC_SVCNAME}"
|
||||||
|
start-stop-daemon --pidfile ${pidfile} --signal HUP
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
30
media-sound/mpd/files/mpd-0.23.11-boost-1.81.patch
Normal file
30
media-sound/mpd/files/mpd-0.23.11-boost-1.81.patch
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
https://bugs.gentoo.org/886521
|
||||||
|
https://github.com/MusicPlayerDaemon/MPD/issues/1693
|
||||||
|
https://github.com/MusicPlayerDaemon/MPD/commit/e4b055eb6d08c5c8f8d85828ce4005d410e462cb
|
||||||
|
|
||||||
|
From e4b055eb6d08c5c8f8d85828ce4005d410e462cb Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
|
||||||
|
<congdanhqx@gmail.com>
|
||||||
|
Date: Thu, 1 Dec 2022 08:29:23 +0700
|
||||||
|
Subject: [PATCH] v0.23.x: RemoteTagCache: add missing include
|
||||||
|
|
||||||
|
Fix build with Boost 1.81.0. `<array>` was included by one of those boost headers,
|
||||||
|
however, it's no longer included as of Boost 1.81.0.
|
||||||
|
|
||||||
|
`master` doesn't use `std::array` in this file.
|
||||||
|
|
||||||
|
While we're at it, add all necessary inclusion files.
|
||||||
|
--- a/src/RemoteTagCache.hxx
|
||||||
|
+++ b/src/RemoteTagCache.hxx
|
||||||
|
@@ -28,7 +28,11 @@
|
||||||
|
#include <boost/intrusive/list.hpp>
|
||||||
|
#include <boost/intrusive/unordered_set.hpp>
|
||||||
|
|
||||||
|
+#include <array>
|
||||||
|
+#include <functional>
|
||||||
|
+#include <memory>
|
||||||
|
#include <string>
|
||||||
|
+#include <utility>
|
||||||
|
|
||||||
|
class RemoteTagCacheHandler;
|
||||||
|
|
||||||
49
media-sound/mpd/metadata.xml
Normal file
49
media-sound/mpd/metadata.xml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>nex+b-g-o@nexadn.de</email>
|
||||||
|
<name>Adrian Schollmeyer</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>proxy-maint@gentoo.org</email>
|
||||||
|
<name>Proxy Maintainers</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="cdio">Use libcdio for ISO9660 parsing support</flag>
|
||||||
|
<flag name="chromaprint">Enable ChromaPrint / AcoustID support</flag>
|
||||||
|
<flag name="cue">Enable CUE sheet support</flag>
|
||||||
|
<flag name="curl">Support for web stream listening</flag>
|
||||||
|
<flag name="eventfd">Use the eventfd function in MPD's event loop</flag>
|
||||||
|
<flag name="faad">Use external faad library for AAC decoding</flag>
|
||||||
|
<flag name="fifo">Support writing audio to a FIFO</flag>
|
||||||
|
<flag name="fluidsynth">Enables Fluidsynth MIDI software synthesis (discouraged)</flag>
|
||||||
|
<flag name="gme">Enables support for <pkg>media-libs/game-music-emu</pkg> for playing various video game music formats.</flag>
|
||||||
|
<flag name="id3tag">Support for ID3 tags</flag>
|
||||||
|
<flag name="inotify">Use the Linux kernel inotify subsystem to notice changes to mpd music library</flag>
|
||||||
|
<flag name="lame">Support for MP3 streaming via Icecast2</flag>
|
||||||
|
<flag name="libmpdclient">Enable support for remote mpd databases</flag>
|
||||||
|
<flag name="libsoxr">Enable the libsoxr resampler</flag>
|
||||||
|
<flag name="mpg123">Enable support for mp3 decoding over <pkg>media-sound/mpg123</pkg></flag>
|
||||||
|
<flag name="network">Enables network streaming support</flag>
|
||||||
|
<flag name="nfs">Enable support for the Network File System</flag>
|
||||||
|
<flag name="openmpt">OpenMPT decoder plugin</flag>
|
||||||
|
<flag name="pipe">Support writing audio to a pipe</flag>
|
||||||
|
<flag name="pipewire">PipeWire support</flag>
|
||||||
|
<flag name="qobuz">Build plugin to access qobuz</flag>
|
||||||
|
<flag name="recorder">Enables output plugin for recording radio streams</flag>
|
||||||
|
<flag name="sid">Build with SID (Commodore 64 Audio) support</flag>
|
||||||
|
<flag name="signalfd">Use the signalfd function in MPD's event loop</flag>
|
||||||
|
<flag name="snapcast">Snapcast audio plugin</flag>
|
||||||
|
<flag name="sndio">Enable support for the <pkg>media-sound/sndio</pkg> backend</flag>
|
||||||
|
<flag name="soundcloud">Build plugin to access soundcloud</flag>
|
||||||
|
<flag name="systemd">Enable support for systemd socket activation</flag>
|
||||||
|
<flag name="twolame">Support twolame MPEG-2 encoding</flag>
|
||||||
|
<flag name="webdav">Enable using music from a WebDAV share</flag>
|
||||||
|
<flag name="wildmidi">Enable MIDI support via wildmidi</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">MusicPlayerDaemon/MPD</remote-id>
|
||||||
|
<bugs-to>https://github.com/MusicPlayerDaemon/MPD/issues</bugs-to>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
251
media-sound/mpd/mpd-0.23.12.ebuild
Normal file
251
media-sound/mpd/mpd-0.23.12.ebuild
Normal file
@@ -0,0 +1,251 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit flag-o-matic linux-info meson systemd xdg
|
||||||
|
|
||||||
|
DESCRIPTION="The Music Player Daemon (mpd)"
|
||||||
|
HOMEPAGE="https://www.musicpd.org https://github.com/MusicPlayerDaemon/MPD"
|
||||||
|
SRC_URI="https://www.musicpd.org/download/${PN}/${PV%.*}/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv x86"
|
||||||
|
IUSE="+alsa ao +audiofile bzip2 cdio chromaprint +cue +curl doc +dbus
|
||||||
|
+eventfd expat faad +ffmpeg +fifo flac fluidsynth gme +icu +id3tag +inotify
|
||||||
|
jack lame libmpdclient libsamplerate libsoxr +mad mikmod mms
|
||||||
|
modplug mpg123 musepack +network nfs openal openmpt opus oss pipe pipewire pulseaudio qobuz
|
||||||
|
recorder samba selinux sid signalfd snapcast sndfile sndio soundcloud sqlite systemd
|
||||||
|
test twolame udisks vorbis wavpack webdav wildmidi upnp
|
||||||
|
zeroconf zip zlib"
|
||||||
|
|
||||||
|
OUTPUT_PLUGINS="alsa ao fifo jack network openal oss pipe pipewire pulseaudio snapcast sndio recorder"
|
||||||
|
DECODER_PLUGINS="audiofile faad ffmpeg flac fluidsynth mad mikmod
|
||||||
|
modplug mpg123 musepack opus openmpt flac sid vorbis wavpack wildmidi"
|
||||||
|
ENCODER_PLUGINS="audiofile flac lame twolame vorbis"
|
||||||
|
|
||||||
|
REQUIRED_USE="
|
||||||
|
|| ( ${OUTPUT_PLUGINS} )
|
||||||
|
|| ( ${DECODER_PLUGINS} )
|
||||||
|
network? ( || ( ${ENCODER_PLUGINS} ) )
|
||||||
|
recorder? ( || ( ${ENCODER_PLUGINS} ) )
|
||||||
|
qobuz? ( curl soundcloud )
|
||||||
|
soundcloud? ( curl qobuz )
|
||||||
|
udisks? ( dbus )
|
||||||
|
upnp? ( curl expat )
|
||||||
|
webdav? ( curl expat )
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/libfmt:=
|
||||||
|
dev-libs/libpcre2
|
||||||
|
media-libs/libogg
|
||||||
|
sys-libs/liburing:=
|
||||||
|
alsa? (
|
||||||
|
media-libs/alsa-lib
|
||||||
|
media-sound/alsa-utils
|
||||||
|
)
|
||||||
|
ao? ( media-libs/libao:=[alsa?,pulseaudio?] )
|
||||||
|
audiofile? ( media-libs/audiofile:= )
|
||||||
|
bzip2? ( app-arch/bzip2 )
|
||||||
|
cdio? (
|
||||||
|
dev-libs/libcdio:=
|
||||||
|
dev-libs/libcdio-paranoia
|
||||||
|
)
|
||||||
|
chromaprint? ( media-libs/chromaprint )
|
||||||
|
curl? ( net-misc/curl )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
doc? ( dev-python/sphinx )
|
||||||
|
expat? ( dev-libs/expat )
|
||||||
|
faad? ( media-libs/faad2 )
|
||||||
|
ffmpeg? ( media-video/ffmpeg:= )
|
||||||
|
flac? ( media-libs/flac:= )
|
||||||
|
fluidsynth? ( media-sound/fluidsynth )
|
||||||
|
gme? ( >=media-libs/game-music-emu-0.6.0_pre20120802 )
|
||||||
|
icu? (
|
||||||
|
dev-libs/icu:=
|
||||||
|
virtual/libiconv
|
||||||
|
)
|
||||||
|
id3tag? ( media-libs/libid3tag:= )
|
||||||
|
jack? ( virtual/jack )
|
||||||
|
lame? ( network? ( media-sound/lame ) )
|
||||||
|
libmpdclient? ( media-libs/libmpdclient )
|
||||||
|
libsamplerate? ( media-libs/libsamplerate )
|
||||||
|
libsoxr? ( media-libs/soxr )
|
||||||
|
mad? ( media-libs/libmad )
|
||||||
|
mikmod? ( media-libs/libmikmod )
|
||||||
|
mms? ( media-libs/libmms )
|
||||||
|
modplug? ( media-libs/libmodplug )
|
||||||
|
mpg123? ( media-sound/mpg123 )
|
||||||
|
musepack? ( media-sound/musepack-tools )
|
||||||
|
network? ( >=media-libs/libshout-2.4.0 )
|
||||||
|
nfs? ( net-fs/libnfs )
|
||||||
|
openal? ( media-libs/openal )
|
||||||
|
openmpt? ( media-libs/libopenmpt )
|
||||||
|
opus? ( media-libs/opus )
|
||||||
|
pulseaudio? ( media-sound/pulseaudio )
|
||||||
|
pipewire? ( media-video/pipewire:= )
|
||||||
|
qobuz? ( dev-libs/libgcrypt:0 )
|
||||||
|
samba? ( net-fs/samba )
|
||||||
|
selinux? ( sec-policy/selinux-mpd )
|
||||||
|
sid? ( || (
|
||||||
|
media-libs/libsidplay:2
|
||||||
|
media-libs/libsidplayfp
|
||||||
|
) )
|
||||||
|
snapcast? ( media-sound/snapcast )
|
||||||
|
sndfile? ( media-libs/libsndfile )
|
||||||
|
sndio? ( media-sound/sndio )
|
||||||
|
soundcloud? ( >=dev-libs/yajl-2:= )
|
||||||
|
sqlite? ( dev-db/sqlite:3 )
|
||||||
|
systemd? ( sys-apps/systemd:= )
|
||||||
|
twolame? ( media-sound/twolame )
|
||||||
|
udisks? ( sys-fs/udisks:2 )
|
||||||
|
upnp? ( net-libs/libupnp:0 )
|
||||||
|
vorbis? ( media-libs/libvorbis )
|
||||||
|
wavpack? ( media-sound/wavpack )
|
||||||
|
wildmidi? ( media-sound/wildmidi )
|
||||||
|
zeroconf? ( net-dns/avahi[dbus] )
|
||||||
|
zip? ( dev-libs/zziplib:= )
|
||||||
|
zlib? ( sys-libs/zlib:= )"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-libs/boost:=
|
||||||
|
test? ( dev-cpp/gtest )"
|
||||||
|
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use eventfd; then
|
||||||
|
CONFIG_CHECK+=" ~EVENTFD"
|
||||||
|
ERROR_EVENTFD="${P} requires eventfd in-kernel support."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use signalfd; then
|
||||||
|
CONFIG_CHECK+=" ~SIGNALFD"
|
||||||
|
ERROR_SIGNALFD="${P} requires signalfd in-kernel support."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use inotify; then
|
||||||
|
CONFIG_CHECK+=" ~INOTIFY_USER"
|
||||||
|
ERROR_INOTIFY_USER="${P} requires inotify in-kernel support."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use eventfd || use signalfd || use inotify; then
|
||||||
|
linux-info_pkg_setup
|
||||||
|
fi
|
||||||
|
|
||||||
|
elog "If you will be starting mpd via ${EROOT}/etc/init.d/mpd, please make sure that MPD's pid_file is _set_."
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
$(meson_feature bzip2)
|
||||||
|
$(meson_feature cdio cdio_paranoia)
|
||||||
|
$(meson_feature chromaprint)
|
||||||
|
$(meson_use cue)
|
||||||
|
$(meson_feature curl)
|
||||||
|
$(meson_feature dbus)
|
||||||
|
$(meson_use eventfd)
|
||||||
|
$(meson_feature expat)
|
||||||
|
$(meson_feature icu)
|
||||||
|
$(meson_feature id3tag)
|
||||||
|
$(meson_use inotify)
|
||||||
|
-Dipv6=enabled
|
||||||
|
$(meson_feature cdio iso9660)
|
||||||
|
$(meson_feature libmpdclient)
|
||||||
|
$(meson_feature libsamplerate)
|
||||||
|
$(meson_feature mms)
|
||||||
|
$(meson_feature nfs)
|
||||||
|
$(meson_use signalfd)
|
||||||
|
$(meson_feature samba smbclient)
|
||||||
|
$(meson_feature libsoxr soxr)
|
||||||
|
$(meson_feature sqlite)
|
||||||
|
$(meson_feature systemd)
|
||||||
|
$(meson_use test)
|
||||||
|
$(meson_feature udisks)
|
||||||
|
-Dupnp=$(usex upnp pupnp disabled)
|
||||||
|
$(meson_feature webdav)
|
||||||
|
-Dzeroconf=$(usex zeroconf avahi disabled)
|
||||||
|
$(meson_feature zlib)
|
||||||
|
$(meson_feature zip zzip)
|
||||||
|
)
|
||||||
|
|
||||||
|
emesonargs+=(
|
||||||
|
$(meson_feature alsa)
|
||||||
|
$(meson_feature ao)
|
||||||
|
$(meson_use fifo)
|
||||||
|
$(meson_feature jack)
|
||||||
|
$(meson_feature openal)
|
||||||
|
$(meson_feature oss)
|
||||||
|
$(meson_use pipe)
|
||||||
|
$(meson_feature pipewire)
|
||||||
|
$(meson_feature pulseaudio pulse)
|
||||||
|
$(meson_use recorder)
|
||||||
|
$(meson_use snapcast)
|
||||||
|
$(meson_feature sndio)
|
||||||
|
)
|
||||||
|
|
||||||
|
if use samba || use upnp; then
|
||||||
|
emesonargs+=( -Dneighbor=true )
|
||||||
|
fi
|
||||||
|
|
||||||
|
append-lfs-flags
|
||||||
|
append-ldflags "-L${ESYSROOT}/usr/$(get_libdir)/sidplay/builders"
|
||||||
|
|
||||||
|
if use network; then
|
||||||
|
emesonargs+=(
|
||||||
|
-Dshine=disabled
|
||||||
|
-Dshout=enabled
|
||||||
|
$(meson_feature vorbis vorbisenc)
|
||||||
|
-Dhttpd=true
|
||||||
|
$(meson_feature lame)
|
||||||
|
$(meson_feature twolame)
|
||||||
|
$(meson_use audiofile wave_encoder)
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
emesonargs+=(
|
||||||
|
# media-libs/adplug is not packaged anymore
|
||||||
|
-Dadplug=disabled
|
||||||
|
$(meson_feature audiofile)
|
||||||
|
$(meson_feature faad)
|
||||||
|
$(meson_feature ffmpeg)
|
||||||
|
$(meson_feature flac)
|
||||||
|
$(meson_feature fluidsynth)
|
||||||
|
$(meson_feature gme)
|
||||||
|
$(meson_feature mad)
|
||||||
|
$(meson_feature mikmod)
|
||||||
|
$(meson_feature modplug)
|
||||||
|
$(meson_feature musepack mpcdec)
|
||||||
|
$(meson_feature mpg123)
|
||||||
|
$(meson_feature openmpt)
|
||||||
|
$(meson_feature opus)
|
||||||
|
$(meson_feature sid sidplay)
|
||||||
|
$(meson_feature sndfile)
|
||||||
|
$(meson_feature vorbis)
|
||||||
|
$(meson_feature wavpack)
|
||||||
|
$(meson_feature wildmidi)
|
||||||
|
$(meson_feature qobuz)
|
||||||
|
$(meson_feature soundcloud)
|
||||||
|
|
||||||
|
--libdir="/usr/$(get_libdir)"
|
||||||
|
$(meson_feature doc documentation)
|
||||||
|
-Dsolaris_output=disabled
|
||||||
|
|
||||||
|
-Ddatabase=true
|
||||||
|
-Ddsd=true
|
||||||
|
-Dio_uring=enabled
|
||||||
|
-Dtcp=true
|
||||||
|
|
||||||
|
-Dsystemd_system_unit_dir="$(systemd_get_systemunitdir)"
|
||||||
|
-Dsystemd_user_unit_dir="$(systemd_get_userunitdir)"
|
||||||
|
|
||||||
|
$(meson_feature icu iconv)
|
||||||
|
)
|
||||||
|
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
2
media-sound/pamixer/Manifest
Normal file
2
media-sound/pamixer/Manifest
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DIST pamixer-1.4.tar.gz 17614 BLAKE2B afd8b26d987d85c043e88870805b5504ff1f7fb96583b8002dfe106ba4d9a25cf429d7ff81d4ab8a2c75501d5926136089b68fe919c997dd3bb6d4662957c66b SHA512 e3916ed8dc020bb43e57994a9f35a506147a0fde42b88c30c661cbeffa40e0f74cae66cd015394e524684c32f9674de3e3763a1396a3e1b9aecbfdc3ed117fe4
|
||||||
|
EBUILD pamixer-1.4.ebuild 599 BLAKE2B bb3950eec8ded3963e38c1f40d6d42a38539dc56503ee77897e58cbfc3e39fbd894cfd12f3879109b3b9bbe294d03960f622094a8ffa8ad6df1332d417d0ec6f SHA512 3810a6ddd8094f3e8a9e9cea70737065f0b7d3e59af1c7b63e1a7d61be13f98f9cc4ca29b9aa47337f61c1276536a8903f1f6fa9d5d0352dfe1fcec264a9bdb8
|
||||||
31
media-sound/pamixer/pamixer-1.4.ebuild
Normal file
31
media-sound/pamixer/pamixer-1.4.ebuild
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="Pulseaudio command line mixer."
|
||||||
|
HOMEPAGE="https://github.com/cdemoulins/pamixer"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/cdemoulins/pamixer"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/cdemoulins/pamixer/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="amd64 x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RESTRICT="mirror"
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/boost
|
||||||
|
media-sound/pulseaudio"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin ${PN}
|
||||||
|
dodoc README.rst
|
||||||
|
}
|
||||||
2
metadata/layout.conf
Normal file
2
metadata/layout.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
masters = gentoo
|
||||||
|
profile-formats = portage-2
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit desktop optfeature xdg
|
||||||
|
|
||||||
|
DESCRIPTION="Official desktop client for Telegram (binary package)"
|
||||||
|
HOMEPAGE="https://desktop.telegram.org"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz
|
||||||
|
amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz )
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="GPL-3-with-openssl-exception"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64"
|
||||||
|
|
||||||
|
QA_PREBUILT="usr/bin/telegram-desktop"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
!net-im/telegram-desktop
|
||||||
|
sys-libs/glibc
|
||||||
|
dev-libs/glib:2
|
||||||
|
>=media-libs/fontconfig-2.13
|
||||||
|
media-libs/freetype:2
|
||||||
|
virtual/opengl
|
||||||
|
x11-libs/gtk+:3[X,wayland]
|
||||||
|
x11-libs/libX11
|
||||||
|
>=x11-libs/libxcb-1.10
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/Telegram"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -i -e 's/^Exec=@CMAKE_INSTALL_FULL_BINDIR@\/telegram-desktop/Exec=\/usr\/bin\/telegram-desktop/' "${WORKDIR}/tdesktop-${PV}"/lib/xdg/org.telegram.desktop.service || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
newbin Telegram telegram-desktop
|
||||||
|
|
||||||
|
insinto /usr/share/TelegramDesktop/externalupdater.d/
|
||||||
|
newins - externalupdater <<<"${EPREFIX}/usr/bin/telegram-desktop"
|
||||||
|
|
||||||
|
local icon_size
|
||||||
|
for icon_size in 16 32 48 64 128 256 512; do
|
||||||
|
newicon -s "${icon_size}" \
|
||||||
|
"${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \
|
||||||
|
telegram.png
|
||||||
|
done
|
||||||
|
|
||||||
|
domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/org.telegram.desktop.desktop
|
||||||
|
insinto /usr/share/dbus-1/services
|
||||||
|
doins "${WORKDIR}/tdesktop-${PV}"/lib/xdg/org.telegram.desktop.service
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_pkg_postinst
|
||||||
|
optfeature "spell checker support" app-text/enchant
|
||||||
|
}
|
||||||
1
profiles/arch
Symbolic link
1
profiles/arch
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/var/db/repos/gentoo/profiles/arch
|
||||||
1
profiles/base
Symbolic link
1
profiles/base
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/var/db/repos/gentoo/profiles/base
|
||||||
1
profiles/default/linux/amd64/23.0/desktop/bspwm/eapi
Normal file
1
profiles/default/linux/amd64/23.0/desktop/bspwm/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
2
profiles/default/linux/amd64/23.0/desktop/bspwm/parent
Normal file
2
profiles/default/linux/amd64/23.0/desktop/bspwm/parent
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
..
|
||||||
|
../../../../../../targets/desktop/bspwm
|
||||||
1
profiles/default/linux/amd64/23.0/desktop/eapi
Normal file
1
profiles/default/linux/amd64/23.0/desktop/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
2
profiles/default/linux/amd64/23.0/desktop/parent
Normal file
2
profiles/default/linux/amd64/23.0/desktop/parent
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
..
|
||||||
|
../../../../../targets/desktop
|
||||||
1
profiles/default/linux/amd64/23.0/desktop/plasma/eapi
Normal file
1
profiles/default/linux/amd64/23.0/desktop/plasma/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
2
profiles/default/linux/amd64/23.0/desktop/plasma/parent
Normal file
2
profiles/default/linux/amd64/23.0/desktop/plasma/parent
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
..
|
||||||
|
../../../../../../targets/desktop/plasma
|
||||||
1
profiles/default/linux/amd64/23.0/eapi
Normal file
1
profiles/default/linux/amd64/23.0/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
8
profiles/default/linux/amd64/23.0/make.defaults
Normal file
8
profiles/default/linux/amd64/23.0/make.defaults
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Copyright 2023 Gentoo Authors.
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
|
||||||
|
|
||||||
|
USE="cet"
|
||||||
|
|
||||||
|
BOOTSTRAP_USE="${BOOTSTRAP_USE} cet"
|
||||||
1
profiles/default/linux/amd64/23.0/no-multilib/eapi
Normal file
1
profiles/default/linux/amd64/23.0/no-multilib/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
2
profiles/default/linux/amd64/23.0/no-multilib/parent
Normal file
2
profiles/default/linux/amd64/23.0/no-multilib/parent
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
..
|
||||||
|
../../../../../arch/amd64/no-multilib
|
||||||
3
profiles/default/linux/amd64/23.0/parent
Normal file
3
profiles/default/linux/amd64/23.0/parent
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
..
|
||||||
|
../../../../arch/amd64
|
||||||
|
../../../../releases/23.0
|
||||||
1
profiles/default/linux/amd64/eapi
Normal file
1
profiles/default/linux/amd64/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
10
profiles/default/linux/amd64/package.use.mask
Normal file
10
profiles/default/linux/amd64/package.use.mask
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Mike Frysinger <vapier@gentoo.org> (2016-05-08)
|
||||||
|
# This target supports VTV #547040.
|
||||||
|
>=sys-devel/gcc-4.9 -vtv
|
||||||
|
|
||||||
|
# Mike Frysinger <vapier@gentoo.org> (2014-10-21)
|
||||||
|
# This target supports ASAN/etc... #504200.
|
||||||
|
sys-devel/gcc -sanitize
|
||||||
2
profiles/default/linux/amd64/parent
Normal file
2
profiles/default/linux/amd64/parent
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
../../../base
|
||||||
|
..
|
||||||
1
profiles/default/linux/eapi
Normal file
1
profiles/default/linux/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
60
profiles/default/linux/make.defaults
Normal file
60
profiles/default/linux/make.defaults
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
#
|
||||||
|
# System-wide defaults for the Portage system
|
||||||
|
# See portage(5) manpage
|
||||||
|
#
|
||||||
|
# Please avoid enabling things by default in here if possible. Understand any
|
||||||
|
# implications with core packages. For example, if "java" is in USE and db
|
||||||
|
# has a conditional dependency on java (which it does,) then a JDK will be
|
||||||
|
# pulled in during *emerge system*!
|
||||||
|
|
||||||
|
|
||||||
|
# Default starting set of USE flags for all default/linux profiles.
|
||||||
|
USE="crypt ipv6 ncurses nls pam readline ssl zlib"
|
||||||
|
|
||||||
|
# Security ftw.
|
||||||
|
USE="${USE} seccomp"
|
||||||
|
|
||||||
|
# Ole Markus With <olemarkus@gentoo.org> (2010-10-21)
|
||||||
|
# These USE flags were originally inserted here because of PHP
|
||||||
|
# and were later removed by me. Reinserting the USE flags again because they are
|
||||||
|
# global USE flags that may be expected to be set by other packages.
|
||||||
|
# Andreas K. Hüttel <dilfridge@gentoo.org> (2024-03-22)
|
||||||
|
# Moving cli to 17.0, so it can be unset in 23.0 and this way overridden by
|
||||||
|
# use defaults...
|
||||||
|
USE="${USE} pcre"
|
||||||
|
|
||||||
|
# Luca Barbato <lu_zero@gentoo.org> (2006-10-28)
|
||||||
|
# on glibc system you cannot turn it off
|
||||||
|
USE="${USE} iconv"
|
||||||
|
|
||||||
|
# Matt Turner <mattst88@gentoo.org> (2017-01-17)
|
||||||
|
# Sane defaults for input drivers
|
||||||
|
INPUT_DEVICES="libinput"
|
||||||
|
|
||||||
|
# Donnie Berkholz <dberkholz@gentoo.org> (2006-08-18)
|
||||||
|
# Lowest common denominator defaults for video drivers
|
||||||
|
VIDEO_CARDS="dummy fbdev"
|
||||||
|
|
||||||
|
# Doug Goldstein <cardoe@gentoo.org> (2008-07-09)
|
||||||
|
# Adding LDFLAGS="-Wl,-O1 for all Linux profiles by default
|
||||||
|
# after discussion on the gentoo-dev ML. As we bang out a clear
|
||||||
|
# direction with how LDFLAGS will be set by default, this entry
|
||||||
|
# may move.
|
||||||
|
# Samuli Suominen <ssuominen@gentoo.org> (2010-07-12)
|
||||||
|
# Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build
|
||||||
|
# because of whitespace.
|
||||||
|
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
|
||||||
|
|
||||||
|
# Mike Gilbert <floppym@gentoo.org> (2021-12-17)
|
||||||
|
# Prevent automagic use of 64-bit time_t.
|
||||||
|
# https://bugs.gentoo.org/828001
|
||||||
|
enable_year2038="no"
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2024-01-22)
|
||||||
|
# Workaround for sandbox bug which causes this gnulib configure test to take
|
||||||
|
# many real hours on slower machines, and certainly a huge amount of CPU hours
|
||||||
|
# on others. Spoof the same result as configure gets on a modern glibc system
|
||||||
|
# for now. See bug #447970 and bug #922652.
|
||||||
|
gl_cv_func_getcwd_path_max="yes"
|
||||||
8
profiles/default/linux/package.mask
Normal file
8
profiles/default/linux/package.mask
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Copyright 2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2023-06-06)
|
||||||
|
# Only available on Linux.
|
||||||
|
-dev-libs/libaio
|
||||||
|
-sys-libs/libcap-ng
|
||||||
|
-sys-libs/libseccomp
|
||||||
10
profiles/default/linux/package.use
Normal file
10
profiles/default/linux/package.use
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Mike Gilbert <floppym@gentoo.org> (2017-10-29)
|
||||||
|
# Override default from make.defaults, bug 635822.
|
||||||
|
net-libs/mbedtls -zlib
|
||||||
|
|
||||||
|
# Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> (2011-02-13)
|
||||||
|
# Disable deprecated bsddb module of Python 2 by default.
|
||||||
|
=dev-lang/python-2* -berkdb
|
||||||
52
profiles/default/linux/package.use.mask
Normal file
52
profiles/default/linux/package.use.mask
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Matt Turner <mattst88@gentoo.org> (2024-01-29)
|
||||||
|
# Causes various issues. See bugs #919858, #923054
|
||||||
|
media-libs/mesa zink
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2023-06-06)
|
||||||
|
# Needs linux-only dev-libs/libaio.
|
||||||
|
app-emulation/qemu -aio
|
||||||
|
|
||||||
|
# Peter Levine <plevine457@gmail.com> (2019-10-01)
|
||||||
|
# Native inotify support is preferred on linux.
|
||||||
|
# bug #697476
|
||||||
|
net-fs/samba fam
|
||||||
|
|
||||||
|
# Patrick McLean <chutzpah@gentoo.org> (2019-09-17)
|
||||||
|
# Masked due to upstream build failures (bug #693018)
|
||||||
|
# One example: https://tracker.ceph.com/issues/41523
|
||||||
|
>=sys-cluster/ceph-14.2 dpdk
|
||||||
|
|
||||||
|
# Michael Palimaka <kensington@gentoo.org> (2015-09-03)
|
||||||
|
# Native inotify support is preferred on linux.
|
||||||
|
kde-frameworks/kcoreaddons fam
|
||||||
|
|
||||||
|
# Diego Elio Pettenò <flameeyes@gentoo.org> (2012-08-27)
|
||||||
|
# The libpci access is only used for linux.
|
||||||
|
net-analyzer/net-snmp -pci
|
||||||
|
|
||||||
|
# Richard Yao <ryao@gentoo.org> (2012-08-22)
|
||||||
|
# USE=kernel-builtin is dangerous. Only those that know what they are doing
|
||||||
|
# should use it until documentation improves.
|
||||||
|
sys-fs/zfs kernel-builtin
|
||||||
|
|
||||||
|
# Diego Elio Pettenò <flameeyes@gentoo.org> (2012-08-20)
|
||||||
|
# The prevent-removal USE flag is only implemented for Linux.
|
||||||
|
sys-auth/pam_mktemp -prevent-removal
|
||||||
|
|
||||||
|
# Samuli Suominen <ssuominen@gentoo.org> (2012-01-10)
|
||||||
|
# Masked in base/package.use.mask as Linux -only feature
|
||||||
|
app-arch/libarchive -e2fsprogs
|
||||||
|
|
||||||
|
# Diego E. Pettenò <flameeyes@gentoo.org> (2011-03-27)
|
||||||
|
#
|
||||||
|
# Unmask pdnsd's Linux-specific USE flags.
|
||||||
|
net-dns/pdnsd -urandom
|
||||||
|
|
||||||
|
# Diego E. Pettenò <flameeyes@gentoo.org> (2009-08-20)
|
||||||
|
# Mask oss USE flag for PulseAudio; it's present for compatibility
|
||||||
|
# with FreeBSD and other operating systems that have no better
|
||||||
|
# interfaces, but people would probably abuse it with Linux as well.
|
||||||
|
media-sound/pulseaudio-daemon oss
|
||||||
12
profiles/default/linux/packages
Normal file
12
profiles/default/linux/packages
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Copyright 2004-2021 Gentoo Authors.
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# This file extends the base packages file for the default profile that all
|
||||||
|
# architectures will enjoy. Please note that default is what most architectures
|
||||||
|
# will have. Some will have an selinux profile (see ${PORTDIR}/profiles/selinux).
|
||||||
|
# The idea is to only create a new family of profiles when absolutely necessary.
|
||||||
|
|
||||||
|
*sys-apps/iproute2
|
||||||
|
*sys-apps/man-pages
|
||||||
|
*sys-apps/net-tools
|
||||||
|
*sys-apps/util-linux
|
||||||
41
profiles/default/linux/packages.build
Normal file
41
profiles/default/linux/packages.build
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# This file describes the packages needed to build a stage1 based on this
|
||||||
|
# profile. Packages in this file are built in order.
|
||||||
|
|
||||||
|
app-admin/eselect
|
||||||
|
app-arch/bzip2
|
||||||
|
app-arch/gzip
|
||||||
|
app-arch/xz-utils
|
||||||
|
app-arch/tar
|
||||||
|
app-shells/bash:0
|
||||||
|
dev-build/autoconf
|
||||||
|
dev-build/automake
|
||||||
|
dev-build/libtool
|
||||||
|
dev-build/make
|
||||||
|
net-misc/rsync
|
||||||
|
net-misc/wget
|
||||||
|
sys-apps/baselayout
|
||||||
|
sys-apps/coreutils
|
||||||
|
sys-apps/diffutils
|
||||||
|
sys-apps/file
|
||||||
|
sys-apps/findutils
|
||||||
|
sys-apps/gawk
|
||||||
|
sys-apps/grep
|
||||||
|
sys-apps/less
|
||||||
|
sys-apps/net-tools
|
||||||
|
sys-apps/portage
|
||||||
|
sys-apps/sed
|
||||||
|
sys-apps/shadow
|
||||||
|
sys-devel/binutils
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
sys-devel/gcc
|
||||||
|
sys-devel/gettext
|
||||||
|
sys-devel/gnuconfig
|
||||||
|
sys-devel/patch
|
||||||
|
virtual/editor
|
||||||
|
virtual/libc
|
||||||
|
virtual/os-headers
|
||||||
|
virtual/pkgconfig
|
||||||
15
profiles/default/linux/use.mask
Normal file
15
profiles/default/linux/use.mask
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors.
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# This file masks out USE flags that are simply NOT allowed in the default
|
||||||
|
# profile for any architecture. This works, for example, if a non-default
|
||||||
|
# profile (such as the selinux profiles) have a USE flag associated with
|
||||||
|
# them.
|
||||||
|
|
||||||
|
# Samuli Suominen <ssuominen@gentoo.org> (2013-04-19)
|
||||||
|
# Linux specific module loading/unloading support
|
||||||
|
-kmod
|
||||||
|
|
||||||
|
# Diego Elio Pettenò <flameeyes@gentoo.org> (2012-08-27)
|
||||||
|
# netlink is a Linux-specific interface
|
||||||
|
-netlink
|
||||||
1
profiles/features
Symbolic link
1
profiles/features
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/var/db/repos/gentoo/profiles/features
|
||||||
24
profiles/profiles.desc
Normal file
24
profiles/profiles.desc
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 2003-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# This is a list of valid profiles for each architecture. This file is used by
|
||||||
|
# repoman when doing a repoman scan or repoman full.
|
||||||
|
# DO NOT ADD PROFILES WITH A "die" or "exit" IN THEM OR IT KILLS REPOMAN
|
||||||
|
#
|
||||||
|
#layout:
|
||||||
|
#arch profile_directory status
|
||||||
|
|
||||||
|
amd64 default/linux/amd64/23.0 stable
|
||||||
|
amd64 default/linux/amd64/23.0/desktop stable
|
||||||
|
amd64 default/linux/amd64/23.0/desktop/plasma stable
|
||||||
|
amd64 default/linux/amd64/23.0/desktop/bspwm stable
|
||||||
|
amd64 default/linux/amd64/23.0/no-multilib stable
|
||||||
|
|
||||||
|
# vim: set ts=8 noet ft=conf:
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: conf-space
|
||||||
|
# tab-width: 8
|
||||||
|
# indent-tabs-mode: t
|
||||||
|
# End:
|
||||||
1
profiles/releases
Symbolic link
1
profiles/releases
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
/var/db/repos/gentoo/profiles/releases
|
||||||
1
profiles/repo_name
Normal file
1
profiles/repo_name
Normal file
@@ -0,0 +1 @@
|
|||||||
|
local
|
||||||
1
profiles/targets/desktop/bspwm/eapi
Normal file
1
profiles/targets/desktop/bspwm/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
24
profiles/targets/desktop/bspwm/make.defaults
Normal file
24
profiles/targets/desktop/bspwm/make.defaults
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
ENABLE="X 52 aac acpi dbus x264 device-mapper fuse cups \
|
||||||
|
jpeg pdf png tiff glamor libinput mp3 lame ogg flac plymouth samba \
|
||||||
|
lvm elogind vim pulseaudio dbus dri dts opengl mtp udisks gtk3 dist-kernel"
|
||||||
|
DISABLE="-llvm -mysql -postgres -sendmail -systemd -server -sasl -wayland \
|
||||||
|
-vlc -ldap -3dnow -3dnowext -altivec -branding -ipv6 -qt5 -gtk-doc -pipewire \
|
||||||
|
-cdda -cdr -dvd -dvdr -ldap -modemmanager -gnome -thin -dhcp -system-mitkrb5 -cryptsetup"
|
||||||
|
GRAPHICS="X dri opengl vulkan vaapi truetype cleartype corefonts xft colord"
|
||||||
|
|
||||||
|
|
||||||
|
INPUT_DEVICES="libinput"
|
||||||
|
USE="${ENABLE} ${GRAPHICS} ${DISABLE}"
|
||||||
|
LINGUAS="en ru"
|
||||||
|
L10N="${LINGUAS}"
|
||||||
|
AUTOCLEAN="yes"
|
||||||
|
ACCEPT_LICENSE="*"
|
||||||
|
PORTAGE_NICENESS="19"
|
||||||
|
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
|
||||||
|
EMERGE_DEFAULT_OPTS="-j2 --ask --binpkg-changed-deps=n"
|
||||||
|
GRUB_PLATFORMS="pc efi-64"
|
||||||
|
QEMU_USER_TARGETS="arm x86_64"
|
||||||
|
INSTALL_MASK="/etc/systemd /etc/chromium"
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
>=x11-libs/gtk+-3.24.37 ~amd64
|
||||||
|
app-emulation/wine-staging ~amd64
|
||||||
|
x11-wm/i3-rounded ~amd64
|
||||||
|
app-misc/clight ~amd64
|
||||||
|
app-misc/clightd ~amd64
|
||||||
|
dev-libs/libmodule ~amd64
|
||||||
|
media-fonts/ubuntumono-nerdfont ~amd64
|
||||||
|
media-sound/spotify-adblock ~amd64
|
||||||
|
games-util/gamemode ~amd64
|
||||||
|
net-misc/connman-ui ~amd64
|
||||||
|
x11-misc/picom-jonaburg **
|
||||||
|
x11-misc/picom-pijulius **
|
||||||
|
x11-misc/picom-dccsillag **
|
||||||
|
x11-misc/picom-sdhand **
|
||||||
|
x11-misc/picom-zaney **
|
||||||
|
#x11-misc/rofi **
|
||||||
|
games-util/minigalaxy ~amd64
|
||||||
|
media-sound/youtube-music-bin ~amd64
|
||||||
|
x11-misc/gpaste ~amd64
|
||||||
|
x11-themes/nordic ~amd64
|
||||||
|
x11-misc/kbdd **
|
||||||
|
app-editors/sublime-merge ~amd64
|
||||||
|
x11-misc/pcmanfm ~amd64
|
||||||
|
x11-libs/libfm ~amd64
|
||||||
|
sys-libs/libudev-compat ~amd64
|
||||||
|
games-util/game-device-udev-rules ~amd64
|
||||||
|
net-im/telegram-desktop-bin ~amd64
|
||||||
|
x11-misc/i3lock-fancy-rapid ~amd64
|
||||||
|
app-editors/sublime-text ~amd64
|
||||||
|
games-util/steam-launcher ~amd64
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
sys-firmware/iwl6005-ucode ~amd64
|
||||||
|
x11-misc/primus ~amd64
|
||||||
|
sys-boot/plymouth-openrc-plugin ~amd64
|
||||||
|
dev-util/cargo-ebuild ~amd64
|
||||||
|
x11-misc/xidlehook ~amd64
|
||||||
|
sys-apps/fstrimDaemon ~amd64
|
||||||
|
sys-kernel/zen-sources ~amd64
|
||||||
|
x11-apps/igt-gpu-tools **
|
||||||
|
x11-drivers/xf86-video-intel **
|
||||||
|
app-emulation/nemu ~amd64
|
||||||
3
profiles/targets/desktop/bspwm/package.mask/desktop
Normal file
3
profiles/targets/desktop/bspwm/package.mask/desktop
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
>media-sound/mpd-0.23.12
|
||||||
|
>app-emulation/wine-staging-8.5
|
||||||
|
>x11-drivers/nvidia-drivers-390.157
|
||||||
3
profiles/targets/desktop/bspwm/package.mask/system
Normal file
3
profiles/targets/desktop/bspwm/package.mask/system
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
>sys-kernel/linux-headers-sys-6.1
|
||||||
|
>sys-kernel/gentoo-kernel-bin-6.1.81
|
||||||
|
>virtual/dist-kernel-6.1.81
|
||||||
2
profiles/targets/desktop/bspwm/package.unmask/system
Normal file
2
profiles/targets/desktop/bspwm/package.unmask/system
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#x11-drivers/nvidia-drivers::local
|
||||||
|
#sys-firmware/iwl6005-ucode::local
|
||||||
10
profiles/targets/desktop/bspwm/package.use/desktop
Normal file
10
profiles/targets/desktop/bspwm/package.use/desktop
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
dev-libs/libdbusmenu gtk3
|
||||||
|
x11-misc/polybar ipc network pulseaudio
|
||||||
|
x11-misc/redshift -gtk
|
||||||
|
x11-misc/gammastep -gtk
|
||||||
|
media-libs/mesa vulkan -llvm
|
||||||
|
media-sound/mpd -alsa
|
||||||
|
app-emulation/virt-viewer -libvirt -vnc
|
||||||
|
app-emulation/qemu spice virtfs
|
||||||
|
net-fs/samba winbind
|
||||||
|
media-sound/ncmpcpp visualizer
|
||||||
23
profiles/targets/desktop/bspwm/package.use/steam
Normal file
23
profiles/targets/desktop/bspwm/package.use/steam
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
>=x11-libs/libX11-1.8.1 abi_x86_32
|
||||||
|
>=x11-libs/libXau-1.0.11 abi_x86_32
|
||||||
|
>=x11-libs/libxcb-1.15-r1 abi_x86_32
|
||||||
|
>=x11-libs/libXdmcp-1.1.4-r2 abi_x86_32
|
||||||
|
>=virtual/opengl-7.0-r2 abi_x86_32
|
||||||
|
>=media-libs/mesa-22.2.5 abi_x86_32
|
||||||
|
>=dev-libs/expat-2.5.0 abi_x86_32
|
||||||
|
>=media-libs/libglvnd-1.6.0 abi_x86_32
|
||||||
|
>=sys-libs/zlib-1.2.13-r1 abi_x86_32
|
||||||
|
>=dev-libs/wayland-1.21.0-r1 abi_x86_32
|
||||||
|
>=x11-libs/libdrm-2.4.114 abi_x86_32
|
||||||
|
>=x11-libs/libxshmfence-1.3.2 abi_x86_32
|
||||||
|
>=x11-libs/libXext-1.3.5 abi_x86_32
|
||||||
|
>=x11-libs/libXxf86vm-1.1.5 abi_x86_32
|
||||||
|
>=x11-libs/libXfixes-6.0.0 abi_x86_32
|
||||||
|
>=app-arch/zstd-1.5.2-r3 abi_x86_32
|
||||||
|
>=x11-libs/libXrandr-1.5.3 abi_x86_32
|
||||||
|
>=x11-libs/libXrender-0.9.11 abi_x86_32
|
||||||
|
>=x11-libs/libpciaccess-0.17 abi_x86_32
|
||||||
|
>=dev-libs/libffi-3.4.4 abi_x86_32
|
||||||
|
x11-drivers/nvidia-drivers abi_x86_32
|
||||||
|
x11-misc/primus abi_x86_32
|
||||||
|
games-util/steam-launcher -desktop-portal
|
||||||
22
profiles/targets/desktop/bspwm/package.use/system
Normal file
22
profiles/targets/desktop/bspwm/package.use/system
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# Enable support for the LVM daemon and related tools
|
||||||
|
sys-fs/lvm2 lvm
|
||||||
|
sys-boot/grub:2 device-mapper
|
||||||
|
media-libs/libsndfile minimal
|
||||||
|
net-misc/connman -bluetooth wireguard openvpn
|
||||||
|
media-libs/libsdl2 gles2
|
||||||
|
x11-drivers/nvidia-drivers -static-libs
|
||||||
|
media-sound/pulseaudio native-headset ofono-headset
|
||||||
|
#net-misc/networkmanager -bluetooth -ppp -wext -gtk-doc
|
||||||
|
app-text/xmlto -text
|
||||||
|
#sys-kernel/zen-sources build
|
||||||
|
sys-libs/zlib minizip
|
||||||
|
>=media-libs/libva-2.18.0-r1 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-vaapi-1.20.6 abi_x86_32
|
||||||
|
>=app-text/xmlto-0.0.28-r11 text
|
||||||
|
>=media-sound/mpg123-base-1.32.3 abi_x86_32
|
||||||
|
net-fs/cifs-utils -acl -ads
|
||||||
|
=app-arch/xz-utils-5.4.2 abi_x86_32
|
||||||
|
>=x11-libs/xcb-util-keysyms-0.4.1 abi_x86_32
|
||||||
|
sys-apps/attr -nls
|
||||||
|
>=net-fs/cifs-utils-7.0 -acl -ads
|
||||||
|
sys-libs/libblockdev cryptsetup
|
||||||
76
profiles/targets/desktop/bspwm/package.use/wine
Normal file
76
profiles/targets/desktop/bspwm/package.use/wine
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
>=dev-libs/gmp-6.2.1-r5 abi_x86_32
|
||||||
|
>=dev-libs/libgcrypt-1.10.1-r3 abi_x86_32
|
||||||
|
>=media-libs/freetype-2.12.1-r2 abi_x86_32
|
||||||
|
>=media-libs/vulkan-loader-1.3.239 abi_x86_32
|
||||||
|
>=x11-libs/libXcursor-1.2.1 abi_x86_32
|
||||||
|
>=x11-libs/libXi-1.8 abi_x86_32
|
||||||
|
>=media-libs/fontconfig-2.14.2 abi_x86_32
|
||||||
|
>=media-libs/libsdl2-2.24.2 haptic abi_x86_32
|
||||||
|
>=net-libs/gnutls-3.7.8 abi_x86_32
|
||||||
|
>=sys-apps/dbus-1.15.2 abi_x86_32
|
||||||
|
>=x11-libs/libXcomposite-0.4.6 abi_x86_32
|
||||||
|
>=media-libs/alsa-lib-1.2.8-r1 abi_x86_32
|
||||||
|
>=dev-libs/glib-2.74.5 abi_x86_32
|
||||||
|
>=media-libs/gst-plugins-base-1.20.4 abi_x86_32
|
||||||
|
>=media-libs/gstreamer-1.20.4 abi_x86_32
|
||||||
|
>=media-libs/libpulse-16.1-r1 abi_x86_32
|
||||||
|
>=sys-libs/libunwind-1.6.2 abi_x86_32
|
||||||
|
>=dev-libs/libusb-1.0.26 abi_x86_32
|
||||||
|
>=app-emulation/vkd3d-1.6 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-meta-1.20.4 abi_x86_32
|
||||||
|
>=media-libs/gst-plugins-good-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-a52dec-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-faad-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-dts-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-flac-1.20.4-r1 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-lame-1.20.4 abi_x86_32
|
||||||
|
>=media-libs/gst-plugins-ugly-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-mpg123-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-mpeg2dec-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-pulse-1.20.4 abi_x86_32
|
||||||
|
>=media-plugins/gst-plugins-x264-1.20.4 abi_x86_32
|
||||||
|
>=media-libs/x264-0.0.20220222 abi_x86_32
|
||||||
|
>=media-sound/pulseaudio-16.1 abi_x86_32
|
||||||
|
>=media-libs/libmpeg2-0.5.1-r3 abi_x86_32
|
||||||
|
>=media-sound/mpg123-1.31.2 abi_x86_32
|
||||||
|
>=media-sound/lame-3.100-r3 abi_x86_32
|
||||||
|
>=media-libs/flac-1.4.2-r1 abi_x86_32
|
||||||
|
>=media-libs/libogg-1.3.5-r1 abi_x86_32
|
||||||
|
>=media-libs/libdca-0.0.7 abi_x86_32
|
||||||
|
>=dev-lang/orc-0.4.33 abi_x86_32
|
||||||
|
>=media-libs/gst-plugins-bad-1.20.4-r1 abi_x86_32
|
||||||
|
>=app-arch/bzip2-1.0.8-r4 abi_x86_32
|
||||||
|
>=media-libs/faad2-2.10.1 abi_x86_32
|
||||||
|
>=media-libs/a52dec-0.7.4-r8 abi_x86_32
|
||||||
|
>=media-libs/libsndfile-1.2.0 abi_x86_32
|
||||||
|
>=net-libs/libasyncns-0.8-r4 abi_x86_32
|
||||||
|
>=sys-libs/libcap-2.66 abi_x86_32
|
||||||
|
>=sys-libs/pam-1.5.2-r3 abi_x86_32
|
||||||
|
>=x11-libs/pango-1.50.12 abi_x86_32
|
||||||
|
>=media-libs/libvorbis-1.3.7-r1 abi_x86_32
|
||||||
|
>=x11-libs/libXv-1.0.12 abi_x86_32
|
||||||
|
>=media-libs/graphene-1.10.8 abi_x86_32
|
||||||
|
>=media-libs/libpng-1.6.39 abi_x86_32
|
||||||
|
>=media-libs/libjpeg-turbo-2.1.4 abi_x86_32
|
||||||
|
>=dev-libs/fribidi-1.0.12 abi_x86_32
|
||||||
|
>=media-libs/harfbuzz-6.0.0 abi_x86_32
|
||||||
|
>=x11-libs/cairo-1.17.6-r1 abi_x86_32
|
||||||
|
>=x11-libs/libXft-2.3.6 abi_x86_32
|
||||||
|
>=dev-libs/lzo-2.10 abi_x86_32
|
||||||
|
>=x11-libs/pixman-0.42.2 abi_x86_32
|
||||||
|
>=media-gfx/graphite2-1.3.14_p20210810-r2 abi_x86_32
|
||||||
|
>=dev-libs/icu-72.1 abi_x86_32
|
||||||
|
>=dev-libs/libpcre2-10.42-r1 abi_x86_32
|
||||||
|
>=sys-apps/util-linux-2.38.1 abi_x86_32
|
||||||
|
>=dev-libs/libtasn1-4.19.0 abi_x86_32
|
||||||
|
>=dev-libs/libunistring-0.9.10-r1 abi_x86_32
|
||||||
|
>=dev-libs/nettle-3.8.1 abi_x86_32
|
||||||
|
>=net-dns/libidn2-2.3.4 abi_x86_32
|
||||||
|
>=dev-libs/libgpg-error-1.46-r1 abi_x86_32
|
||||||
|
>=virtual/libintl-0-r2 abi_x86_32
|
||||||
|
>=virtual/glu-9.0-r2 abi_x86_32
|
||||||
|
>=virtual/libudev-232-r7 abi_x86_32
|
||||||
|
>=media-libs/glu-9.0.2 abi_x86_32
|
||||||
|
>=sys-apps/systemd-utils-252.7 abi_x86_32
|
||||||
|
>=virtual/libiconv-0-r2 abi_x86_32
|
||||||
|
>=net-print/cups-2.4.2-r6 abi_x86_32
|
||||||
1
profiles/targets/desktop/bspwm/parent
Normal file
1
profiles/targets/desktop/bspwm/parent
Normal file
@@ -0,0 +1 @@
|
|||||||
|
..
|
||||||
1
profiles/targets/desktop/eapi
Normal file
1
profiles/targets/desktop/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
6
profiles/targets/desktop/make.defaults
Normal file
6
profiles/targets/desktop/make.defaults
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
USE="a52 aac acpi alsa bluetooth branding cairo cdda cdr cups dbus dri dts dvd dvdr elogind encode exif flac gif gpm gtk gui icu jpeg lcms libnotify mad mng mp3 mp4 mpeg ogg opengl pango pdf png policykit ppds qt5 sdl sound spell startup-notification svg tiff truetype vorbis udev udisks unicode upower usb vulkan wxwidgets X xcb xft x264 xml xv xvid"
|
||||||
|
|
||||||
|
VIDEO_CARDS="intel i965 nvidia"
|
||||||
107
profiles/targets/desktop/package.use
Normal file
107
profiles/targets/desktop/package.use
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2024-03-07)
|
||||||
|
# Required by kde-frameworks/kio:6
|
||||||
|
dev-qt/qtbase libproxy
|
||||||
|
|
||||||
|
# Alfred Wingate <parona@protonmail.com> (2023-12-25)
|
||||||
|
# Prefer X over gbm with REQUIRED_USE: ^^ ( gbm wayland X )
|
||||||
|
>=media-tv/kodi-20.2 X -gbm
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2023-11-12)
|
||||||
|
# NSS: Required by kde-apps/okular[pdf]
|
||||||
|
# Boost: app-text/poppler[qt5] recommended w/ Boost (bug #795888)
|
||||||
|
app-text/poppler nss boost
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2023-11-11)
|
||||||
|
# egl, libinput required by kde-plasma/kwayland:5
|
||||||
|
# accessibility required by kde-plasma/kwin:5
|
||||||
|
dev-qt/qtgui:5 accessibility egl libinput
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2023-09-22)
|
||||||
|
# Most people aren't going to use CMake's GUI. USE=gui is enabled by default
|
||||||
|
# on desktop profiles and CMake is unavoidable, it feels a shame to drag in
|
||||||
|
# Qt 6 just for something people are unlikely to want. Plus, it avoids a
|
||||||
|
# circular dependency out of the box.
|
||||||
|
dev-build/cmake -gui -qt6
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2023-07-29)
|
||||||
|
# Required by dev-python/PyQt5[multimedia]
|
||||||
|
dev-qt/qtmultimedia:5 widgets
|
||||||
|
|
||||||
|
# Alexey Sokolov <alexey+gentoo@asokolov.org> (2022-12-27)
|
||||||
|
# On desktops it's common to use browser to browse internet, which these
|
||||||
|
# days is full of emojis, which wouldn't render properly without the fonts.
|
||||||
|
media-fonts/fonts-meta emoji
|
||||||
|
|
||||||
|
# Andreas K. Hüttel <dilfridge@gentoo.org> (2022-04-18)
|
||||||
|
# Avoid a circular dependency, bug 764623
|
||||||
|
dev-lang/python -bluetooth
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2021-12-18)
|
||||||
|
# Required by media-gfx/digikam, kde-apps/libkexiv2
|
||||||
|
media-gfx/exiv2 xmp
|
||||||
|
|
||||||
|
# Lars Wendler <polynomial-c@gentoo.org> (2020-08-06)
|
||||||
|
# USE="qt5" and USE="libnotify" are mutually exclusive in this package
|
||||||
|
# Disable libnotify here to have a better user experience
|
||||||
|
net-misc/dhcpcd-ui -libnotify
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2020-02-05)
|
||||||
|
# Required by many packages, most notably Mozilla products
|
||||||
|
dev-lang/python sqlite
|
||||||
|
|
||||||
|
# Lars Wendler <polynomial-c@gentoo.org> (2019-03-20)
|
||||||
|
# Enable client by default. Usually desktop users need the client.
|
||||||
|
net-fs/samba client
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2018-06-09)
|
||||||
|
# Required by app-office/libreoffice
|
||||||
|
dev-libs/xmlsec nss
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2017-11-30)
|
||||||
|
# Not required, but makes life easier with Qt; bug #457934
|
||||||
|
app-arch/unzip natspec
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2017-08-04)
|
||||||
|
# Required by flac and mp3
|
||||||
|
kde-apps/k3b taglib
|
||||||
|
kde-frameworks/kfilemetadata taglib
|
||||||
|
|
||||||
|
# Brian Evans <grknight@gentoo.org> (2017-07-18)
|
||||||
|
# Don't force users to enable gd on PHP due to desktop defaults
|
||||||
|
dev-lang/php -exif -truetype
|
||||||
|
|
||||||
|
# Ilya Tumaykin <itumaykin+gentoo@gmail.com> (2017-02-02)
|
||||||
|
# Override default +sdl from desktop profile and disable sdl outputs.
|
||||||
|
# These outputs are for systems without a proper audio/video support.
|
||||||
|
media-video/mpv -sdl
|
||||||
|
|
||||||
|
# Mike Gilbert <floppym@gentoo.org> (2017-01-04)
|
||||||
|
# Needed by x11-misc/xdg-utils.
|
||||||
|
app-text/xmlto text
|
||||||
|
|
||||||
|
# Ben de Groot <yngwin@gentoo.org> (2015-02-18)
|
||||||
|
# Enable sensible defaults for desktop users (bug #540046)
|
||||||
|
dev-python/PyQt5 gui multimedia network printsupport widgets
|
||||||
|
|
||||||
|
# Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> (2014-05-08)
|
||||||
|
# Enable x11-libs/libxcb[xkb] as it is needed by x11-libs/libxkbcommon[X]
|
||||||
|
# and the X flag is enabled by default in the desktop profile
|
||||||
|
x11-libs/libxcb xkb
|
||||||
|
|
||||||
|
# Samuli Suominen <ssuominen@gentoo.org> (2010-12-19)
|
||||||
|
# gudev, required by freedesktop.org udev helpers like udisks and upower
|
||||||
|
# introspection, exception, enabled from here instead of ebuild to skip extra deps for a system package
|
||||||
|
dev-libs/libgudev introspection
|
||||||
|
|
||||||
|
# Samuli Suominen <ssuominen@gentoo.org> (2010-12-19)
|
||||||
|
# Support for desktop file icons
|
||||||
|
xfce-base/xfdesktop thunar
|
||||||
|
|
||||||
|
# Chris Gianelloni <wolf31o2@gentoo.org> (2008-03-26)
|
||||||
|
# While we may need LDAP client support, who needs the server on a desktop?
|
||||||
|
# Did I mention that this also fixes the horrible perl dependency hell, too?
|
||||||
|
net-nds/openldap minimal
|
||||||
|
|
||||||
13
profiles/targets/desktop/package.use.force
Normal file
13
profiles/targets/desktop/package.use.force
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Andreas Sturmlechner <asturm@gentoo.org> (2024-03-10)
|
||||||
|
# Ensure that KF5- and Qt5-based applications, of which there are still
|
||||||
|
# many (even as part of KDE Gear 24.02), will not exhibit bugs and look
|
||||||
|
# out of place in Plasma 6 sessions.
|
||||||
|
=kde-plasma/plasma-meta-6.0*:6 qt5
|
||||||
|
|
||||||
|
# Alexandre Rostovtsev <tetromino@gentoo.org> (2014-06-03)
|
||||||
|
# Ensure shared-mime-info is pulled in by glib, otherwise GNOME, XFCE, and
|
||||||
|
# numerous gtk-based applications will break, see bug #511894
|
||||||
|
dev-libs/glib mime
|
||||||
1
profiles/targets/desktop/plasma/eapi
Normal file
1
profiles/targets/desktop/plasma/eapi
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
4
profiles/targets/desktop/plasma/make.defaults
Normal file
4
profiles/targets/desktop/plasma/make.defaults
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
USE="activities declarative dri kde kwallet networkmanager pipewire plasma policykit pulseaudio qml screencast semantic-desktop wayland widgets"
|
||||||
86
profiles/targets/desktop/plasma/package.use
Normal file
86
profiles/targets/desktop/plasma/package.use
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Alfred Wingate <parona@protonmail.com> (2023-12-25)
|
||||||
|
# Prefer wayland over X with REQUIRED_USE: ^^ ( gbm wayland X )
|
||||||
|
>=media-tv/kodi-20.2 wayland -X
|
||||||
|
|
||||||
|
# Marek Szuba <marecki@gentoo.org> (2023-11-12)
|
||||||
|
# FUSE cannot be built with multiple audio drivers, and desktop/gnome
|
||||||
|
# profiles set both USE=pulseaudio (directly) and USE=alsa (inherited
|
||||||
|
# from desktop). Default to the latter for now because PulseAudio support
|
||||||
|
# in FUSE is currently considered experimental.
|
||||||
|
app-emulation/fuse -pulseaudio
|
||||||
|
|
||||||
|
# Required by sys-apps/fwupd, a dependency of kde-plasma/discover
|
||||||
|
dev-libs/libjcat gpg pkcs7
|
||||||
|
|
||||||
|
# Required by www-client/falkon[python] and dev-python/pyside2[location],
|
||||||
|
# in addition fix REQUIRED_USE conflict caused if "webengine" is enabled.
|
||||||
|
# qtwebchannel package is fairly small, and python bindings are
|
||||||
|
# required by some popular desktop packages such as calibre,
|
||||||
|
# qutebrowser, and freecad (or indirectly through PyQt*WebEngine).
|
||||||
|
dev-python/PyQt5 webchannel
|
||||||
|
dev-python/PyQt6 webchannel
|
||||||
|
dev-python/pyside2 designer location positioning quick
|
||||||
|
dev-python/pyside2 printsupport webchannel
|
||||||
|
dev-python/pyside6 webchannel
|
||||||
|
|
||||||
|
# Required by sys-apps/flatpak, a dependency of kde-plasma/discover
|
||||||
|
dev-util/ostree curl
|
||||||
|
|
||||||
|
# Required by <net-im/neochat-23.08.50
|
||||||
|
dev-qt/qtmultimedia:5 gstreamer
|
||||||
|
|
||||||
|
# Required by app-editors/okteta:5
|
||||||
|
dev-qt/qtscript:5 scripttools
|
||||||
|
|
||||||
|
# Required by kde-apps/akonadi:5
|
||||||
|
dev-qt/qtsql:5 mysql
|
||||||
|
|
||||||
|
# Required by kde-apps/ktp-text-ui
|
||||||
|
kde-apps/ktp-common-internals otr
|
||||||
|
|
||||||
|
# Enable by default, requires kde-frameworks/kwayland
|
||||||
|
kde-apps/yakuake absolute-position
|
||||||
|
|
||||||
|
# Required by kde-frameworks/kapidox
|
||||||
|
media-gfx/graphviz python
|
||||||
|
|
||||||
|
# Required by media-gfx/graphviz which is required by kde-apps/kcachegrind
|
||||||
|
media-libs/gd fontconfig
|
||||||
|
|
||||||
|
# Needed by a global USE=wayland right now
|
||||||
|
media-libs/libsdl2 gles2
|
||||||
|
|
||||||
|
# Required by kde-plasma/kwin
|
||||||
|
media-libs/mesa wayland
|
||||||
|
|
||||||
|
# Required by kde-apps/kdenlive
|
||||||
|
media-libs/mlt ffmpeg frei0r rubberband
|
||||||
|
|
||||||
|
# Required by media-gfx/digikam
|
||||||
|
media-libs/opencv contrib contribdnn
|
||||||
|
|
||||||
|
# Required by kde-plasma/plasma-firewall
|
||||||
|
# Required by net-firewall/firewalld[nftables] (default enabled)
|
||||||
|
net-firewall/nftables json python xtables
|
||||||
|
|
||||||
|
# Required by dev-qt/qtwebengine
|
||||||
|
sys-libs/zlib minizip
|
||||||
|
|
||||||
|
# Keep existing defaults after dropping IUSE=phonon from make.defaults
|
||||||
|
<app-office/calligra-3.3 phonon
|
||||||
|
kde-apps/kio-extras phonon
|
||||||
|
kde-apps/kio-extras-kf5 phonon
|
||||||
|
kde-apps/marble phonon
|
||||||
|
|
||||||
|
# Required by kde-plasma/plasma-meta
|
||||||
|
kde-plasma/kwin lock
|
||||||
|
|
||||||
|
# plasma profile never enabled pulseaudio. We're skipping to pipewire.
|
||||||
|
media-video/pipewire sound-server
|
||||||
|
|
||||||
|
# Expected to be available by default in Plasma
|
||||||
|
kde-frameworks/purpose kaccounts
|
||||||
|
kde-plasma/plasma-desktop kaccounts
|
||||||
1
profiles/targets/desktop/plasma/parent
Normal file
1
profiles/targets/desktop/plasma/parent
Normal file
@@ -0,0 +1 @@
|
|||||||
|
..
|
||||||
4
profiles/targets/desktop/plasma/use.force
Normal file
4
profiles/targets/desktop/plasma/use.force
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Force policykit on, other configurations are *maybe* possible but
|
||||||
|
# not supported. If you know how to disable this mask, you also know enough to
|
||||||
|
# handle the consequences.
|
||||||
|
policykit
|
||||||
3
sys-apps/fstrimDaemon/Manifest
Normal file
3
sys-apps/fstrimDaemon/Manifest
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
AUX fstrimDaemon-1.1.1-fixes.patch 603 BLAKE2B 6e878ba86998162ab5f414106fbc5955eef2eacf4403010b571563b302178c3e931b66bdef840e1cb207290dc50062470d8e400cab546cef2f53c92fc821c7c0 SHA512 0a3d15cd3b13ea20d031ede826a7e408e6a374f9cccad95967658afc786270c91c767d9299276008760f91e19456d0f2cc1c1e2c34cff2aa519777a2953bdf08
|
||||||
|
DIST fstrimDaemon-1.1.1.tar.gz 9950 BLAKE2B 114b37e41240e7a805200fe9e0c7ee52d4dd9967745d65b3c0a1d541f994e2ebcfd0e4ef28a806727e9cebc75da78f2d409238850b9193d9ea9cf538d15a41a2 SHA512 973c2c2b93225cb8f08a1407e59493ac86bd89473981b5adde894f2b91e3c2e437d787aab1b71d616f5fc97cf7fa6ac5e0a42ecf0b30bfc2481cc9c943b9fce6
|
||||||
|
EBUILD fstrimDaemon-1.1.1.ebuild 871 BLAKE2B 6cb4b87caa2bf9f206e8c9e496f2c4060f09e1f3a690482723a0fc499a9ef8896dfa88008c05fb083b83a3319cc3cd09fa56d457300bf0519c178964d8727045 SHA512 83ab9277510306d6de837016f67f7ae481f61a82f86bf1bfc1327bceaf8e91d048ef48b9ed8f2c820cf3c19f02e6ca05d56126a3573d56fbaf37e79fd1048979
|
||||||
23
sys-apps/fstrimDaemon/files/fstrimDaemon-1.1.1-fixes.patch
Normal file
23
sys-apps/fstrimDaemon/files/fstrimDaemon-1.1.1-fixes.patch
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
diff --git etc/conf.d/fstrimDaemon etc/conf.d/fstrimDaemon
|
||||||
|
index 7707d37..c1b61ff 100644
|
||||||
|
--- etc/conf.d/fstrimDaemon
|
||||||
|
+++ etc/conf.d/fstrimDaemon
|
||||||
|
@@ -33,7 +33,7 @@ IONICE="3"
|
||||||
|
PID="/var/run/fstrimDaemon.pid"
|
||||||
|
|
||||||
|
# Here Daemon logs
|
||||||
|
-LOG="/var/log/fstrimeDaemon.log"
|
||||||
|
+LOG="/var/log/fstrimDaemon.log"
|
||||||
|
|
||||||
|
# The main daemon script i.e. fstrim-sleep loop
|
||||||
|
DAEMON="/usr/sbin/fstrimDaemon.sh"
|
||||||
|
diff --git etc/init.d/fstrimDaemon etc/init.d/fstrimDaemon
|
||||||
|
index ce7c022..6b0fffc 100755
|
||||||
|
--- etc/init.d/fstrimDaemon
|
||||||
|
+++ etc/init.d/fstrimDaemon
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/sbin/runscript
|
||||||
|
+#!/sbin/openrc-run
|
||||||
|
|
||||||
|
checkconfig()
|
||||||
|
{
|
||||||
40
sys-apps/fstrimDaemon/fstrimDaemon-1.1.1.ebuild
Normal file
40
sys-apps/fstrimDaemon/fstrimDaemon-1.1.1.ebuild
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Shell script daemon for fstrim to maintain ssd drive performance"
|
||||||
|
HOMEPAGE="https://github.com/dobek/fstrimDaemon"
|
||||||
|
if [[ ${PV} == *9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/dobek/${PN}.git"
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/dobek/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="sys-apps/util-linux"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}/${PN}-1.1.1-fixes.patch"
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dosbin usr/sbin/fstrimDaemon.sh
|
||||||
|
dodoc README.md
|
||||||
|
doinitd etc/init.d/fstrimDaemon
|
||||||
|
doconfd etc/conf.d/fstrimDaemon
|
||||||
|
}
|
||||||
5
sys-firmware/iwl6005-ucode/Manifest
Normal file
5
sys-firmware/iwl6005-ucode/Manifest
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
DIST iwlwifi-6000g2a-ucode-17.168.5.3.tgz 210543 BLAKE2B 9db1e81bb3330bff9e048ce4be066997fa6cda2ea5edb2a4865e4ffd233453dfa608eca73a68b45f72d4ea20dbe188abeb9d47ead442e521309056fe57d9adf2 SHA512 9fcee47c294777f30d40933942db171d45e4bfd6c6adc8f80e759f296d1df8ee91419379bddd738654c04d73974d03dc6a9a809e10a16e58b8a3f76f8df10636
|
||||||
|
DIST iwlwifi-6000g2a-ucode-18.168.6.1.tgz 326978 BLAKE2B a1a9f8bb535c48ae51594b84bf5d3ff4121808483872f246f97cc42176a8c6f81aa1dc84725ccfad2531819ba1a360929b9d77130d9c29bcf3d62bfa6c843d51 SHA512 6e30662005e49957323addf62b73ac98f15122f451674038c8154cb544a36b1d004ad38818bf7530b1135eb40ed73d4aa4b28fd77f807ecb7a779e2067d52adb
|
||||||
|
EBUILD iwl6005-ucode-17.168.5.3.ebuild 512 BLAKE2B 1d04c0f67c9964fe613a402999a4d70bbc25ba83f0926e9b23de80f3fc12d7d88a60768d045cd828ca9e63d8f44c6fc97b74ab569592644578ee5619b13be688 SHA512 a36836de7de5ca6c65469781f1fee856357739307ee08aa2bbc162f3551e34eaa47791172803595f3e7e40340ba85332cff527ba4bed83ab8bccad2eabe8caca
|
||||||
|
EBUILD iwl6005-ucode-18.168.6.1.ebuild 512 BLAKE2B 3b6131a3b76fcdfeac7b30cd08f10e3959fa1dc4234df110ccd242a0c65d72ee2ab1df200d6a9aa1f03e7cc4424fe767be2be9f60ea355427d8157e13d432906 SHA512 ff270f10607cfa7c48d75ea227a42fd235e546256ed89221110dbeaacfb33fc1973ba197a97486d8f1ad6a0b63eb7e75ea3d73487dfa925863dddf819755e03d
|
||||||
|
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
|
||||||
24
sys-firmware/iwl6005-ucode/iwl6005-ucode-17.168.5.3.ebuild
Normal file
24
sys-firmware/iwl6005-ucode/iwl6005-ucode-17.168.5.3.ebuild
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
MY_PN="iwlwifi-6000g2a-ucode"
|
||||||
|
|
||||||
|
DESCRIPTION="Intel (R) Wireless WiFi Advanced N 6005 ucode"
|
||||||
|
HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
|
||||||
|
SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
|
||||||
|
|
||||||
|
LICENSE="ipw3945"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /lib/firmware
|
||||||
|
doins iwlwifi-6000g2a-5.ucode
|
||||||
|
|
||||||
|
dodoc README*
|
||||||
|
}
|
||||||
24
sys-firmware/iwl6005-ucode/iwl6005-ucode-18.168.6.1.ebuild
Normal file
24
sys-firmware/iwl6005-ucode/iwl6005-ucode-18.168.6.1.ebuild
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2019 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
MY_PN="iwlwifi-6000g2a-ucode"
|
||||||
|
|
||||||
|
DESCRIPTION="Intel (R) Wireless WiFi Advanced N 6005 ucode"
|
||||||
|
HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
|
||||||
|
SRC_URI="http://intellinuxwireless.org/iwlwifi/downloads/${MY_PN}-${PV}.tgz"
|
||||||
|
|
||||||
|
LICENSE="ipw3945"
|
||||||
|
SLOT="1"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /lib/firmware
|
||||||
|
doins iwlwifi-6000g2a-6.ucode
|
||||||
|
|
||||||
|
dodoc README*
|
||||||
|
}
|
||||||
5
sys-firmware/iwl6005-ucode/metadata.xml
Normal file
5
sys-firmware/iwl6005-ucode/metadata.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<!-- maintainer-needed -->
|
||||||
|
</pkgmetadata>
|
||||||
11
sys-kernel/gentoo-sources/Manifest
Normal file
11
sys-kernel/gentoo-sources/Manifest
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
DIST genpatches-5.15-98.base.tar.xz 4003192 BLAKE2B 79d4fb60a5192137571109ffaefdfba23ac589102539cdde89046f627f39e65a52a44a83607232b499509b8bb4c341e2fd26ae971587c9574d4ac87d8b220893 SHA512 946a7638d19d5fd610075520e529a6c5a47aaa433b7986493f62571a7dc541278013a5006bf1e745496e4eb98de44af56f61d23679c139a719a8d5bc20c9e734
|
||||||
|
DIST genpatches-5.15-98.experimental.tar.xz 5424 BLAKE2B 9f5f84ced9f97276f62087cf75eaf40fc1cac8ab74f79d30b405f394acc676b5e53d8b5cdb6f80651488577c8faed67ac1282becff5f2d499c6049864f4b15ad SHA512 b4bc747b4ac9eaf89ca073050ecf6c4d64b67cd59aa178198b187aaeeb475eb4db726399415645e01d6d0f1a7e922933cdf5b1d1b7c5d22e0a8a9a4b59015fbb
|
||||||
|
DIST genpatches-5.15-98.extras.tar.xz 3932 BLAKE2B 4e5dd4f8ba6d14764a6546cf7e64dffb3ddcc77678b7d96d2498917f30561792c904c635b0fce7191b7c0c65549fa769e89befffbea5e53a3cef64c673937c20 SHA512 337d95159432cba3b85511cf80c350a8a2f67c65b72a90b26ddc98c01d2d8de70d9b6067e0573c5c339a5bf64973d10c06b42001ee19a7add3d672e4577d0622
|
||||||
|
DIST genpatches-6.1-47.base.tar.xz 2915344 BLAKE2B 7fd49099198e9af926911b3a8831208d6c0ecb5047e8bc7563aceb23516328a1829c33b912f52d1175440770ed0394aa6bb3438ad92a9a81ed28ca6fdc6ee928 SHA512 5c0841c92d0f2bcbc81599568d882bef066f132b670334fe7728797b76665aaae170ee2acaf942228d5065fc95493fe33fb2ec2268f9d2bb54739b463b346b33
|
||||||
|
DIST genpatches-6.1-47.experimental.tar.xz 83372 BLAKE2B 1a4f13a2911b96f89584b8cd0fdaf0347a519a244a003df21dc0bb066e6fd256034f25889c55cf9908224bd55ea06b56eb50259d5d21cf140f89e590dcfbb63b SHA512 a407d81cd4dbab2cf60ba10ad0576f90950245bb1bd8377c33bc9ccbf1b1ac8cd25a59e26e757cf9ea15d487de55a0deb5a0a3ec5ed98baf17e6a9ae5d1b1bf3
|
||||||
|
DIST genpatches-6.1-47.extras.tar.xz 3812 BLAKE2B ea44d25a1637abff3a87ec17e397ef324aa08d7f62865924a61f55cf85df6a1ae5b8a56ac1f33a61955bb3ce71b28d628d34a600a1834583ab94d4111e9f4810 SHA512 9f8c831530609f2379685ec3bbe545f2bdca86f139233dceb0b10d7259b8b1207188a8f95237483b13f40c6639c6f060df4cbc67e09249c24424bc0bc83fe281
|
||||||
|
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||||
|
DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
|
||||||
|
EBUILD gentoo-sources-5.15.94.ebuild 742 BLAKE2B ba7248692e7df0bdab0566b0b673146dfcd2109eb024a7cb1baae5e22ac65a5c8e960c6f264c70290c9ad00606396028e27c372ed065e88f12359a660999eb5b SHA512 2c21e3ba35673877a368b43eab390dacb22cdd6201e4347748b91356d9733f1d9c29e2c58e2d6d942d2f6b6567ca035ecb39b082954b7db1e8383c314fbcece1
|
||||||
|
EBUILD gentoo-sources-6.1.41.ebuild 740 BLAKE2B 3acf6b8a5566d34de107e9277c6ec40c3c3abf9198a6c7cbd9d3c314aad4dccfa7ff6bcdb1b563315791199a022fe5b1ea9a552f7ce4c42fd56b42e810d0e7b9 SHA512 1abaf66397b102c5029f71697ea5f51b993b8f26c2565b302e4b64d62ff16dbe4ae9a3a531264ee0869a0517db0d2f1399b6bb57d3bb1497e2e06590bb1dd893
|
||||||
|
MISC metadata.xml 501 BLAKE2B f5363c8a19540d5bb924b38bdebeb8dbc60c84e58d1d87a9148a3e7abb09b0a1b733c98b130b778b8ab3a88375598444aa9d537d8c5338864a3d4497600d7836 SHA512 bc1ba0d75dbf5b95b3f93e666389c6408f20aebeec99bc8ec00653758b67588e07214285ed106fd9e5aed2c8d57c625d666c797212fda51e1ab98ce1df816467
|
||||||
28
sys-kernel/gentoo-sources/gentoo-sources-5.15.94.ebuild
Normal file
28
sys-kernel/gentoo-sources/gentoo-sources-5.15.94.ebuild
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="8"
|
||||||
|
ETYPE="sources"
|
||||||
|
K_WANT_GENPATCHES="base extras experimental"
|
||||||
|
K_GENPATCHES_VER="98"
|
||||||
|
|
||||||
|
inherit kernel-2
|
||||||
|
detect_version
|
||||||
|
detect_arch
|
||||||
|
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||||
|
HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches"
|
||||||
|
IUSE="experimental"
|
||||||
|
|
||||||
|
DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
|
||||||
|
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
28
sys-kernel/gentoo-sources/gentoo-sources-6.1.41.ebuild
Normal file
28
sys-kernel/gentoo-sources/gentoo-sources-6.1.41.ebuild
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="8"
|
||||||
|
ETYPE="sources"
|
||||||
|
K_WANT_GENPATCHES="base extras experimental"
|
||||||
|
K_GENPATCHES_VER="47"
|
||||||
|
|
||||||
|
inherit kernel-2
|
||||||
|
detect_version
|
||||||
|
detect_arch
|
||||||
|
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||||
|
HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches"
|
||||||
|
IUSE="experimental"
|
||||||
|
|
||||||
|
DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
|
||||||
|
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
14
sys-kernel/gentoo-sources/metadata.xml
Normal file
14
sys-kernel/gentoo-sources/metadata.xml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>kernel@gentoo.org</email>
|
||||||
|
<name>Gentoo Kernel Project</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="experimental">Apply experimental patches; for more information, see "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="cpe">cpe:/o:linux:linux_kernel</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
6
sys-kernel/linux-headers/Manifest
Normal file
6
sys-kernel/linux-headers/Manifest
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
AUX linux-headers-5.10-Use-stddefs.h-instead-of-compiler.h.patch 2197 BLAKE2B 31ef872fd2658c141dda8653a4110003e7809d78dcd485abd15a9467e3090380e7314c7588ac5f8ec466eea7e6bcaf53dd25d4a1c548e199b1b57b06a911fd38 SHA512 1c0d5a46907617c5b6008ba06e726d268d18e2d80b1cc71325847dd9baa3571c237bcab640d4ed4fdf286ba89a9b56a8e415341da37f83f90ab94f2b6abbead3
|
||||||
|
AUX linux-headers-5.15-remove-inclusion-sysinfo.h.patch 778 BLAKE2B baf48088843ab6dd42bd4e69cacb39bbf9633e5ff58868606cb553794c42e6ad4b360166b567b4b39bea4c9cc68c299e32156c687db3aeac284bfb4ce3da1b55 SHA512 d5d6c6e6edb3d50b4f3005838625a8a0064ea6f30c0ed98913ef584e973cd7e47b9f0670f932a434d66df16e850b0efb4fb01052d962ca82464af13810054156
|
||||||
|
DIST gentoo-headers-5.15-1.tar.xz 1496 BLAKE2B 9d88ecc517e226580ba43cba1b5cc62232690ed219f9c5e2d26047de6dbc4056eaaf04c320b2758acb3cb08b44ec402c7185989e0c5ded40c44f7b4bb1d77328 SHA512 f31d5fb4b5264a8b9c060d4215462796240c2423f0872e55ba4e96904086264f55b54d00342aef625a8f710c2ebc2d731bcf79cd0362b398c84235ff949eb229
|
||||||
|
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
|
||||||
|
EBUILD linux-headers-5.15-r3.ebuild 1454 BLAKE2B 6fde074d12041aeed87168073b9516429c00dfb22bcfb9105dd257142f61bab598cc284d1454f430259d0155d14a3fc24570fb3d7d2c42470d924f98b7ef67af SHA512 df16524b36382b9caad1ad078ad82935f50b111877eac8515605c68e9a99bf5b12d27e33cd40fe02dec1475479a10d993b1ce7070d2a7d880cd7b7e35c99729f
|
||||||
|
MISC metadata.xml 345 BLAKE2B a7d97a94b8b2b72cbd9c7cc730bd66c6e174a2c0bb8bfcff7c279a87000a4435afbb048ca2d9424b391a0b0f992d0afd5efb20c0504062de3dfd49968fec0e74 SHA512 e7a62638f5ba1072ae773781c890f708d90001c4d517e2ecce8fbb791914f2e6769e5a0db63ade82f7d644c1ec3e9b19aae773c496d9059879a4192b7f26ccae
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
Needed for musl.
|
||||||
|
|
||||||
|
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/uapi/linux/swab.h?id=defbab270d45e32b068e7e73c3567232d745c60f
|
||||||
|
https://git.alpinelinux.org/aports/tree/main/linux-headers/include-uapi-linux-swab-Fix-potentially-missing-__always_inline.patch
|
||||||
|
|
||||||
|
From: Matt Redfearn <matt.redfearn@mips.com>
|
||||||
|
Date: Wed, 3 Jan 2018 09:57:30 +0000
|
||||||
|
Subject: [PATCH] include/uapi/linux/swab: Fix potentially missing
|
||||||
|
__always_inline
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Commit bc27fb68aaad ("include/uapi/linux/byteorder, swab: force inlining
|
||||||
|
of some byteswap operations") added __always_inline to swab functions
|
||||||
|
and commit 283d75737837 ("uapi/linux/stddef.h: Provide __always_inline to
|
||||||
|
userspace headers") added a definition of __always_inline for use in
|
||||||
|
exported headers when the kernel's compiler.h is not available.
|
||||||
|
|
||||||
|
However, since swab.h does not include stddef.h, if the header soup does
|
||||||
|
not indirectly include it, the definition of __always_inline is missing,
|
||||||
|
resulting in a compilation failure, which was observed compiling the
|
||||||
|
perf tool using exported headers containing this commit:
|
||||||
|
|
||||||
|
In file included from /usr/include/linux/byteorder/little_endian.h:12:0,
|
||||||
|
from /usr/include/asm/byteorder.h:14,
|
||||||
|
from tools/include/uapi/linux/perf_event.h:20,
|
||||||
|
from perf.h:8,
|
||||||
|
from builtin-bench.c:18:
|
||||||
|
/usr/include/linux/swab.h:160:8: error: unknown type name ‘__always_inline’
|
||||||
|
static __always_inline __u16 __swab16p(const __u16 *p)
|
||||||
|
|
||||||
|
Fix this by replacing the inclusion of linux/compiler.h with
|
||||||
|
linux/stddef.h to ensure that we pick up that definition if required,
|
||||||
|
without relying on it's indirect inclusion. compiler.h is then included
|
||||||
|
indirectly, via stddef.h.
|
||||||
|
|
||||||
|
Fixes: 283d75737837 ("uapi/linux/stddef.h: Provide __always_inline to userspace headers")
|
||||||
|
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
|
||||||
|
|
||||||
|
--- a/include/uapi/linux/swab.h
|
||||||
|
+++ b/include/uapi/linux/swab.h
|
||||||
|
@@ -3,7 +3,7 @@
|
||||||
|
#define _UAPI_LINUX_SWAB_H
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
-#include <linux/compiler.h>
|
||||||
|
+#include <linux/stddef.h>
|
||||||
|
#include <asm/bitsperlong.h>
|
||||||
|
#include <asm/swab.h>
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user