From c9c609463fab9bcfb35694627bca1429a21fdbb2 Mon Sep 17 00:00:00 2001 From: V3n3RiX <venerix@koprulu.sector> Date: Mon, 31 Oct 2022 21:06:00 +0000 Subject: gentoo auto-resync : 31:10:2022 - 21:05:59 --- x11-misc/Manifest.gz | Bin 47366 -> 47357 bytes x11-misc/gtkdialog/Manifest | 6 +- .../gtkdialog/gtkdialog-0.8.3_p20200202.ebuild | 28 +-- x11-misc/gtkdialog/gtkdialog-99999.ebuild | 15 +- x11-misc/gtkdialog/metadata.xml | 3 - x11-misc/xscreensaver/Manifest | 3 +- ...er-6.05-get-dirs-from-gtk3.0-in-configure.patch | 27 +++ x11-misc/xscreensaver/xscreensaver-6.05-r1.ebuild | 244 +++++++++++++++++++++ x11-misc/xscreensaver/xscreensaver-6.05.ebuild | 243 -------------------- 9 files changed, 285 insertions(+), 284 deletions(-) create mode 100644 x11-misc/xscreensaver/files/xscreensaver-6.05-get-dirs-from-gtk3.0-in-configure.patch create mode 100644 x11-misc/xscreensaver/xscreensaver-6.05-r1.ebuild delete mode 100644 x11-misc/xscreensaver/xscreensaver-6.05.ebuild (limited to 'x11-misc') diff --git a/x11-misc/Manifest.gz b/x11-misc/Manifest.gz index 6f4ec347a189..c70b89408f7e 100644 Binary files a/x11-misc/Manifest.gz and b/x11-misc/Manifest.gz differ diff --git a/x11-misc/gtkdialog/Manifest b/x11-misc/gtkdialog/Manifest index 83c2db404254..7fbb823c3ab9 100644 --- a/x11-misc/gtkdialog/Manifest +++ b/x11-misc/gtkdialog/Manifest @@ -1,6 +1,6 @@ AUX gtkdialog-0.8.3-do_variables_count_widgets.patch 214 BLAKE2B 7e8975b55ac8432ceeaa412b01c2a8362c1394575aadeb471ad93f6bb91e185f412c94c4c1e4122055b939723fce15efc8353587f1adc5f01d746b9143f7a5ef SHA512 befcd5644d268b734a15e8ce0d58fc410d61fca9b825cd97f14ba5000355d81684f42d6bbb65cdc84ec7fa01c3112901adb0ffabd6af0df4875f2441aa0a7235 AUX gtkdialog-0.8.3-fno-common.patch 1535 BLAKE2B 1a881d8827c0ac815791b5bd482d1160158bbbce8a2b5a57235e1ba3131d8cb4c591f10b67fff35c5f1a632f097fa751749702b32696f1b86469629a4b4238f4 SHA512 5812ee6272bc7ffa85ea506bce9b64451c5d9a716c87272b7c5e0c166b85ac7ba7f1a8cf9c687df194b20fe0db942084b2d199cbf51093b05d204c217ea6e65c DIST gtkdialog-0.8.3_p20200202.tar.xz 356312 BLAKE2B 77358e0b04ddb484e3e3a093084776a2c799fa52b90849bdde3bce56a7c042c2cbe28d699f0c4dcc14cc69872d496b89fc5c8aa7140669560e01448d9c57c15d SHA512 9120ac515eace168e4a3987b6cf3a1b3aa0e7617e837ade21d5ffea25cc3f3abbff598bb4c33914fb800416ea687f0ec7dea2b24c8acc0c71734aa6b2b385bfe -EBUILD gtkdialog-0.8.3_p20200202.ebuild 1091 BLAKE2B daa3e9693c6b587e23770bb0aa8941a0b8ef2ffd9471292ebbd23b78fa1e28c30bbf71503b575bc626b228adf6fe4b22a5bde8a1655b89e66127b3383abefff9 SHA512 643e33af0139deea897c46bfd31de93361838fa6c7b9d44d3a0c3ebb0758170ad5da9511652bc4f42ab95d7a9d21cc1b26ffe6a29fb87940e1bef6ab1cd2ec04 -EBUILD gtkdialog-99999.ebuild 984 BLAKE2B 45f10fc9970e14219e457385e8d8e3ba28c29647a243192b124b88960aabb76655f39a4153e63ae493ffc23a46a6f56bb586a25ff3327d5b8cde32b3a16d6b93 SHA512 6e20dd7ccc761df933f7573ad6c999f4adf97935edc2e6c44aeebfcb96a2d83bebb124f8cf91e1e80aa839c910d78e61135d0af768f1e9bf0839b15d18fcc5c5 -MISC metadata.xml 844 BLAKE2B accf45b2aafb39c6d6942fd5da15e91bf77ad23878ddbd714f27d14a70708a07cdb93ef113b189a73c6d271a8c3c776826e0caa4adfab7120fb6f4c7dc070468 SHA512 7d4fd4ea0647b77a3386cbe748bc65aefc1c024a98097baf50c30f07f81657b4cb7392f190908bd3a4c9aadea7db50076beef8ca0070b55f9f87a42925d16bf1 +EBUILD gtkdialog-0.8.3_p20200202.ebuild 893 BLAKE2B 4c0b751c6ef88cac04f960a13f99ee0d23a51aac7b41259e69de9ddcfc846d7bab870a6fdd41ccd21ebfb548f1d28485f0e98b2b7c194ee2d930bd53f657f8f0 SHA512 94a346f98c8b8bbf9090289dffc2fe454f014b2869916e7821de3c6d6c36e288339b6d62b6226529138be50da13a9a0a3c7d58d3b2ce17d61a64483fb5f69cfc +EBUILD gtkdialog-99999.ebuild 886 BLAKE2B 3d764c538ad711869d1561eb3d001d5d3b070345fe1e3be2412ff10d21b8eebcd1174a054f14e06ca1f58fc781e9ca993ba2a2f8017cb933e98c55ac12dbed65 SHA512 4458e91835ef9ba0f7924c3a9887f08079c93564bac5b1fd52c0ef0f2420abda04b1b304c4c7ebbfff8c0dad571aeb4a9e49d7af2fd7a6e45f4878cd03b8e6e0 +MISC metadata.xml 768 BLAKE2B 62c606936e3c570ac0c7b7663a8ab6368959765a51e8b95f844e143ec39f4169162052fffc7c93ca6bb6368e7adfbf852df0a0d8bdd22c5cf7d84e815ecd73cd SHA512 33259daaf765bd30b4b82ece1fa06017afbd70d7009b30825cee413f579419189adc5535a6953e69ee31a9187dbc23469601656145aedd64995acfa2ad581ede diff --git a/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild index 98d5e081d8c8..9f5e5fba792a 100644 --- a/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild +++ b/x11-misc/gtkdialog/gtkdialog-0.8.3_p20200202.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -inherit autotools xdg-utils +EAPI=8 +inherit autotools xdg DESCRIPTION="A small utility for fast and easy GUI building" HOMEPAGE="https://github.com/oshazard/gtkdialog" @@ -11,17 +11,10 @@ SRC_URI="https://dev.gentoo.org/~jsmolic/distfiles/${P}.tar.xz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" -IUSE="gtk2" RDEPEND=" - gtk2? ( - x11-libs/gtk+:2 - x11-libs/vte:0= - ) - !gtk2? ( - x11-libs/gtk+:3 - x11-libs/vte:2.91= - ) + x11-libs/gtk+:3 + x11-libs/vte:2.91= " DEPEND=" ${RDEPEND} @@ -41,8 +34,7 @@ src_prepare() { } src_configure() { - econf \ - $(usex gtk2 --disable-gtk3 --enable-gtk3) + econf --enable-gtk3 } src_compile() { @@ -55,11 +47,3 @@ src_install() { emake DESTDIR="${D}" UPDATE_ICON_CACHE=true install einstalldocs } - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/x11-misc/gtkdialog/gtkdialog-99999.ebuild b/x11-misc/gtkdialog/gtkdialog-99999.ebuild index c23bccd2c836..471ce7d9bc93 100644 --- a/x11-misc/gtkdialog/gtkdialog-99999.ebuild +++ b/x11-misc/gtkdialog/gtkdialog-99999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit autotools git-r3 xdg-utils +inherit autotools git-r3 xdg DESCRIPTION="Small utility for fast and easy GUI building" HOMEPAGE="https://github.com/oshazard/gtkdialog" @@ -12,7 +12,6 @@ EGIT_REPO_URI="https://github.com/oshazard/gtkdialog" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="" RDEPEND=" x11-libs/gtk+:3 @@ -50,11 +49,3 @@ src_install() { emake DESTDIR="${D}" UPDATE_ICON_CACHE=true install einstalldocs } - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/x11-misc/gtkdialog/metadata.xml b/x11-misc/gtkdialog/metadata.xml index 756afb6ff8d9..97441428731f 100644 --- a/x11-misc/gtkdialog/metadata.xml +++ b/x11-misc/gtkdialog/metadata.xml @@ -14,7 +14,4 @@ <upstream> <remote-id type="github">oshazard/gtkdialog</remote-id> </upstream> - <use> - <flag name="gtk2">Build with GTK+2 instead of GTK+3</flag> - </use> </pkgmetadata> diff --git a/x11-misc/xscreensaver/Manifest b/x11-misc/xscreensaver/Manifest index aec875a0c2ff..503706a6555c 100644 --- a/x11-misc/xscreensaver/Manifest +++ b/x11-misc/xscreensaver/Manifest @@ -9,10 +9,11 @@ AUX xscreensaver-6.01-non-gtk-install.patch 1780 BLAKE2B 38d2a71fb9d35d1694fac4d AUX xscreensaver-6.01-without-gl-makefile.patch 862 BLAKE2B 9762e84d535b4e913c0e4da6818605d8ff6fc0c9d184ff2cdc60969fab977b603bc18b16dfab7b1124948e814d230a50cd384bfabe785ad1e38e735a5e063d0c SHA512 8b445ca766d24b23904423c8d3a561a0558eca6d4b70b242d05df4949c371e455251be5a473b07fa837505550e00ea13c3154e2efda239468bf7a2a73a063c1f AUX xscreensaver-6.03-without-gl-configure.patch 541 BLAKE2B 42818f7ad82513cde5317c1c41c6d54a60a4abe14c98bfa3350b9b5be38141ab7b6c569eb03527ebdab577c87cbe91e1c7197b4bf49613e2a0a94f31420a018c SHA512 bd1b57143eb0a923b41c0d513649735700edd884d39bcb3f00f886d62c2bf94c1349327797008f5698cb8b44952b7517f218d03a12a7e6128c2790005752fd88 AUX xscreensaver-6.05-configure-exit-codes.patch 1179 BLAKE2B 7ed0bd31730bdf35278e5dc26ce9c96db6b56a094b246ce2ac0a5172a390033f00de2b8e6b25fcb0ea75131151ed19d26a7c8e2da275f1a337f15eda4ee402b3 SHA512 2db1841f485a4933837fc66d275b3516218a7c0757aad4f28cf38016aca2d4fd88138d3f94f86fb6fa42a487d10e7458760562a02fe8d2e5c534e2171cb9ca85 +AUX xscreensaver-6.05-get-dirs-from-gtk3.0-in-configure.patch 916 BLAKE2B 0e0d23001d25f889b9b968e95f9c660d4b1c1b871fc1e08accdb24082cfc5c44de306484dfb0c0ea07dbe5ab4c3c4e39ad2a0d193bdd9762e7bb6798168908a3 SHA512 c638d29646b02a44165000ebf4f2f02dedbc78275fc3671c1f1f3d5b77fa362d787c362a1fbce75fef30b1bbecca07015230c48cf57201ae74ab53d57f46f789 AUX xscreensaver-6.05-remove-update-icon-cache.patch 368 BLAKE2B a595875f69e339a52f415e664be0524929c1b64ddfa8c80bb797379c08df0ef9860e6a5f3047d069084542eb81aff40470dfcf1db3dcb7e3515a0b986495a926 SHA512 7b797ae8b0cb8ec437f968e575bb3d9fdeab6bdf1f289302c1dabffad7276d4e73c8f03f10a4d8f8a0bedd223269e03c661187ea7c018f42cd11594454350d1d AUX xscreensaver-6.05-teach-handsy-some-manners.patch 1820 BLAKE2B c94dbe895479b301d4bc57cf4a830b604c6b51fdf512656536c04a234e7be8f77c78ff4f91bec603ce70036b294c18d736c3b0ad9d3a14b49a627e5d1ccd6dd5 SHA512 06cbe07674a6902ca1467a72bf06f677693da0a030ecca7b880949406cfbf946ee42f5bb9daeefe4869cdad850d28b749e798b66ea890daf8c6f35c90eab9688 DIST xscreensaver-6.01.tar.gz 27820165 BLAKE2B b2c90b47fb65db79d2473c1e396717156e414a0200672971adadf5729056ad9210822955a71f1a098e2142c00c5e60b24aababf9431903f96ff76e8c2d474052 SHA512 3a6e875196e1340909b2a379c25e758fef490d3d10154aef3096ec1be50fabe0d852de806d45a067eefd061381c8541acd7902d28be3bac15b76bd9d4bf0c02a DIST xscreensaver-6.05.1.tar.gz 26110057 BLAKE2B 97c16c9f0b2a0b4d00ddccd711b921ca683bd233bc3d07ecad38b68ff94b149a20512246dd6bae052323f00b1b433f56469c5638a031cbc65b61c2b84a0180e3 SHA512 c659a769ff71020b9f96b7e707bd1bcc667eb304179305d56b1be45eed095d650a8aa019890a0c5d444672f9dd68516c99c53b0df94cd96196d7f30a24b987e3 EBUILD xscreensaver-6.01-r4.ebuild 5884 BLAKE2B e6e2b8f44c38c9c22181262b227bccc4fe16339c283de394de919670010ed1b0690681da990792162760ff93ff5090f9ffb2a01547c9abe25686d5726586ace9 SHA512 ded2ad6cf75c380f343b33d64ac2f3540b55fb3a91f640dd49d6f2cabae4634b17c124637e38a6ebd6425f1aeaf54092eb75f3787fbdf7f690e211f4960f3900 -EBUILD xscreensaver-6.05.ebuild 6630 BLAKE2B e33355cb105a5e7f1f701500cf9243abe6b43d18be04208d5c81fc366ca539930d133d4d5f96418c504e9554c08f47b47fcd098938a0ffed2855cb53538ee553 SHA512 f1555305ec26c37e230d2aee6a2fa3adc819247928c53ac2c020abaa438417b23a886cbc0a43e61bca84c4db6a4b13ce2ac67213d8ec93302e667f3af0576500 +EBUILD xscreensaver-6.05-r1.ebuild 6696 BLAKE2B bf5275a832ddd481cefd94874c5740de146299b3207771ffb66c595fd599b51e3982bc9ac47af6d42c0dc3804200218b71014e61b8407e55eacedafd20880c44 SHA512 1cd79d99f4fe98ddb51ac2e7d833106e799caa0ca30dc28ed684095112482abda57c77f760c5c960b18cc4c2c1bf3781d97ea042148a2f2e5a2779b2ebff41e4 MISC metadata.xml 1346 BLAKE2B 1f3f0467a85b78d87dd72ab29c606e466ea903cfeedb2ee94e091ab628ad223ca40c5bfd1ccfe2652a561ad95904214963932f368b190affbe3aeccb8ea4a501 SHA512 918888b3144ba3dcab6469985279dc017420d1d8ede1a9e8509d97fef38513b7a828b4c298016270870e940f649a181f25e036d80352e05521300a89dbd28c7d diff --git a/x11-misc/xscreensaver/files/xscreensaver-6.05-get-dirs-from-gtk3.0-in-configure.patch b/x11-misc/xscreensaver/files/xscreensaver-6.05-get-dirs-from-gtk3.0-in-configure.patch new file mode 100644 index 000000000000..c624c8046026 --- /dev/null +++ b/x11-misc/xscreensaver/files/xscreensaver-6.05-get-dirs-from-gtk3.0-in-configure.patch @@ -0,0 +1,27 @@ +Even though xscreensaver now uses GTK+3 instead of GTK+2 since version 6.05 +it still gets its directories from GTK+2 which results in an empty prefix +when GTK+2 is not installed. + +Bug: https://bugs.gentoo.org/878875 + +Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> + +--- a/configure ++++ b/configure +@@ -16035,7 +16035,7 @@ printf "%s\n" "$ac_cv_gtk_config_libs" >&6; } + + GTK_DATADIR="" + if test "$have_gtk" = yes; then +- GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0` ++ GTK_DATADIR=`$pkg_config --variable=prefix gtk+-3.0` + GTK_DATADIR="$GTK_DATADIR/share" + fi + +@@ -21440,6 +21440,6 @@ printf %s "checking for locale directory... " >&6; } + if test -n "$GTK_DATADIR" ; then + PO_DATADIR="$GTK_DATADIR" + elif test "$have_gtk" = yes; then +- PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0` ++ PO_DATADIR=`$pkg_config --variable=prefix gtk+-3.0` + PO_DATADIR="$PO_DATADIR/share" + fi diff --git a/x11-misc/xscreensaver/xscreensaver-6.05-r1.ebuild b/x11-misc/xscreensaver/xscreensaver-6.05-r1.ebuild new file mode 100644 index 000000000000..b751510dba2d --- /dev/null +++ b/x11-misc/xscreensaver/xscreensaver-6.05-r1.ebuild @@ -0,0 +1,244 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic font optfeature pam strip-linguas + +DESCRIPTION="Modular screen saver and locker for the X Window System" +HOMEPAGE="https://www.jwz.org/xscreensaver/" +SRC_URI="https://www.jwz.org/xscreensaver/${P}.1.tar.gz" + +# Font license mapping for folder ./hacks/fonts/ as following: +# clacon.ttf -- MIT +# gallant12x22.ttf -- unclear, hence dropped +# luximr.ttf -- bh-luxi (package media-fonts/font-bh-ttf) +# OCRAStd.otf -- unclear, hence dropped +# SpecialElite.ttf -- Apache-2.0 +LICENSE="BSD fonts? ( MIT Apache-2.0 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="elogind fonts +gdk-pixbuf gdm gles glx +gtk jpeg +locking new-login offensive pam +perl +png selinux suid systemd xinerama" +REQUIRED_USE=" + gles? ( !glx ) + ?? ( elogind systemd ) + gtk? ( || ( gdk-pixbuf png ) ) +" + +COMMON_DEPEND=" + >=dev-libs/libxml2-2.4.6 + x11-apps/appres + x11-apps/xwininfo + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXt + x11-libs/libXxf86vm + elogind? ( sys-auth/elogind ) + gdk-pixbuf? ( + x11-libs/gdk-pixbuf-xlib + >=x11-libs/gdk-pixbuf-2.42.0:2 + ) + gtk? ( >=x11-libs/gtk+-2.22.0:3 ) + jpeg? ( media-libs/libjpeg-turbo:= ) + locking? ( virtual/libcrypt:= ) + new-login? ( + gdm? ( gnome-base/gdm ) + !gdm? ( || ( x11-misc/lightdm lxde-base/lxdm ) ) + ) + virtual/glu + virtual/opengl + pam? ( sys-libs/pam ) + png? ( media-libs/libpng:= ) + systemd? ( >=sys-apps/systemd-221 ) + >=x11-libs/libXft-2.1.0 + xinerama? ( x11-libs/libXinerama ) +" +# For USE="perl" see output of `qlist xscreensaver | grep bin | xargs grep '::'` +RDEPEND=" + ${COMMON_DEPEND} + media-gfx/fbida + perl? ( + dev-lang/perl + dev-perl/libwww-perl + virtual/perl-Digest-MD5 + ) + selinux? ( sec-policy/selinux-xscreensaver ) +" +DEPEND=" + ${COMMON_DEPEND} + x11-base/xorg-proto +" +BDEPEND=" + dev-util/intltool + sys-devel/bc + sys-devel/gettext + virtual/pkgconfig +" +PATCHES=( + "${FILESDIR}"/${PN}-6.01-interix.patch + "${FILESDIR}"/${PN}-5.31-pragma.patch + "${FILESDIR}"/${PN}-6.01-gentoo.patch + "${FILESDIR}"/${PN}-5.45-gcc.patch + "${FILESDIR}"/${PN}-6.01-configure.ac-sandbox.patch + "${FILESDIR}"/${PN}-6.01-without-gl-makefile.patch + "${FILESDIR}"/${PN}-6.01-non-gtk-install.patch + "${FILESDIR}"/${PN}-6.01-configure-install_sh.patch + "${FILESDIR}"/${PN}-6.03-without-gl-configure.patch + "${FILESDIR}"/${PN}-6.05-remove-update-icon-cache.patch + "${FILESDIR}"/${PN}-6.05-configure-exit-codes.patch + "${FILESDIR}"/${PN}-6.05-get-dirs-from-gtk3.0-in-configure.patch +) + +DOCS=( README{,.hacking} ) + +src_prepare() { + default + + sed -i configure.ac -e '/^ALL_LINGUAS=/d' || die + strip-linguas -i po/ + export ALL_LINGUAS="${LINGUAS}" + + if use new-login && ! use gdm; then #392967 + sed -i \ + -e "/default_l.*1/s:gdmflexiserver -ls:${EPREFIX}/usr/libexec/lightdm/&:" \ + configure{,.ac} || die + fi + + # We are patching driver/XScreenSaver.ad.in, so let's delete the + # header generated from it so that it gets back in sync during build: + rm driver/XScreenSaver_ad.h || die + + if ! use offensive; then + sed -i \ + -e '/boobies/d;/boobs/d;/cock/d;/pussy/d;/viagra/d;/vibrator/d' \ + hacks/barcode.c || die + sed -i \ + -e 's|erect penis|shuffle board|g' \ + -e 's|flaccid penis|flaccid anchor|g' \ + -e 's|vagina|engagement ring|g' \ + -e 's|Penis|Shuttle|g' \ + hacks/glx/glsnake.c || die + sed -i \ + 's| Stay.*fucking mask\.$||' \ + hacks/glx/covid19.man \ + hacks/config/covid19.xml || die + eapply "${FILESDIR}/xscreensaver-6.05-teach-handsy-some-manners.patch" + fi + + config_rpath_update "${S}"/config.rpath + + # Must be eauto*re*conf, to force the rebuild + eautoreconf +} + +src_configure() { + if use ppc || use ppc64; then + filter-flags -maltivec -mabi=altivec + append-flags -U__VEC__ + fi + + unset BC_ENV_ARGS #24568 + + # /proc/interrupts won't always have the keyboard bits needed + # Not clear this does anything in 6.03+(?) but let's keep it for now in case. + # (See also: configure argument) + export ac_cv_have_proc_interrupts=yes + + # WARNING: This is NOT a normal autoconf script + # Some of the --with options are NOT standard, and expect "--with-X=no" rather than "--without-X" + ECONF_OPTS=( + $(use_enable locking) + $(use_with elogind) + $(use_with gdk-pixbuf pixbuf) + $(use_with gles) + $(use_with glx) + $(use_with gtk) + $(use_with new-login login-manager) + $(use_with pam) + $(use_with suid setuid-hacks) + $(use_with systemd) + $(use_with xinerama xinerama-ext) + --with-jpeg=$(usex jpeg yes no) + --with-png=$(usex png yes no) + --with-xft=yes + --with-app-defaults="${EPREFIX}"/usr/share/X11/app-defaults + --with-configdir="${EPREFIX}"/usr/share/${PN}/config + --with-dpms-ext + --with-hackdir="${EPREFIX}"/usr/$(get_libdir)/misc/${PN} + --with-proc-interrupts + --with-randr-ext + --with-text-file="${EPREFIX}"/etc/gentoo-release + --with-xdbe-ext + --with-xf86gamma-ext + --with-xf86vmode-ext + --with-xinput-ext + --with-xkb-ext + --with-xshm-ext + --without-gle + --without-kerberos + --without-motif + --with-proc-oom + --x-includes="${EPREFIX}"/usr/include + --x-libraries="${EPREFIX}"/usr/$(get_libdir) + ) + # WARNING: This is NOT a normal autoconf script + econf "${ECONF_OPTS[@]}" +} + +src_compile() { + # stock target is "default", which is broken in some releases. + emake all +} + +src_install() { + use pam && dodir /etc/pam.d/ + emake install_prefix="${D}" DESTDIR="${D}" GTK_SHAREDIR="${installprefix}"/usr/share/xscreensaver install + + if use fonts; then + # Do not install fonts with unclear licensing + rm -v "${ED}${FONTDIR}"/{gallant12x22.ttf,OCRAStd.otf} || die + + # Do not duplicate font Luxi Mono (of package media-fonts/font-bh-ttf) + rm -v "${ED}${FONTDIR}"/luximr.ttf || die + + font_xfont_config + else + rm -v "${ED}${FONTDIR}"/*.{ttf,otf} || die + rmdir -v "${ED}${FONTDIR}" || die #812473 + fi + + einstalldocs + + if use pam; then + fperms 755 /usr/bin/${PN} + pamd_mimic_system ${PN} auth + fi + + # bugs #809599, #828869 + if ! use gtk; then + rm "${ED}/usr/bin/xscreensaver-demo" || die + fi + # Makefile installs xscreensaver.service regardless of --without-systemd + if ! use systemd; then + rm "${ED}/usr/share/${PN}/xscreensaver.service" || die + fi +} + +pkg_postinst() { + use fonts && font_pkg_postinst + + # bug #811885 + if ! use glx; then + elog "Enable USE='glx' if OpenGL screensavers are crashing." + fi + + optfeature 'Bitmap fonts 75dpi' media-fonts/font-adobe-75dpi + optfeature 'Bitmap fonts 100dpi' media-fonts/font-adobe-100dpi + optfeature 'Truetype font Luxi Mono' media-fonts/font-bh-ttf +} + +pkg_postrm() { + use fonts && font_pkg_postrm +} diff --git a/x11-misc/xscreensaver/xscreensaver-6.05.ebuild b/x11-misc/xscreensaver/xscreensaver-6.05.ebuild deleted file mode 100644 index 9a1a99c055ec..000000000000 --- a/x11-misc/xscreensaver/xscreensaver-6.05.ebuild +++ /dev/null @@ -1,243 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools flag-o-matic font optfeature pam strip-linguas - -DESCRIPTION="Modular screen saver and locker for the X Window System" -HOMEPAGE="https://www.jwz.org/xscreensaver/" -SRC_URI="https://www.jwz.org/xscreensaver/${P}.1.tar.gz" - -# Font license mapping for folder ./hacks/fonts/ as following: -# clacon.ttf -- MIT -# gallant12x22.ttf -- unclear, hence dropped -# luximr.ttf -- bh-luxi (package media-fonts/font-bh-ttf) -# OCRAStd.otf -- unclear, hence dropped -# SpecialElite.ttf -- Apache-2.0 -LICENSE="BSD fonts? ( MIT Apache-2.0 )" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="elogind fonts +gdk-pixbuf gdm gles glx +gtk jpeg +locking new-login offensive pam +perl +png selinux suid systemd xinerama" -REQUIRED_USE=" - gles? ( !glx ) - ?? ( elogind systemd ) - gtk? ( || ( gdk-pixbuf png ) ) -" - -COMMON_DEPEND=" - >=dev-libs/libxml2-2.4.6 - x11-apps/appres - x11-apps/xwininfo - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrandr - x11-libs/libXt - x11-libs/libXxf86vm - elogind? ( sys-auth/elogind ) - gdk-pixbuf? ( - x11-libs/gdk-pixbuf-xlib - >=x11-libs/gdk-pixbuf-2.42.0:2 - ) - gtk? ( >=x11-libs/gtk+-2.22.0:3 ) - jpeg? ( media-libs/libjpeg-turbo:= ) - locking? ( virtual/libcrypt:= ) - new-login? ( - gdm? ( gnome-base/gdm ) - !gdm? ( || ( x11-misc/lightdm lxde-base/lxdm ) ) - ) - virtual/glu - virtual/opengl - pam? ( sys-libs/pam ) - png? ( media-libs/libpng:= ) - systemd? ( >=sys-apps/systemd-221 ) - >=x11-libs/libXft-2.1.0 - xinerama? ( x11-libs/libXinerama ) -" -# For USE="perl" see output of `qlist xscreensaver | grep bin | xargs grep '::'` -RDEPEND=" - ${COMMON_DEPEND} - media-gfx/fbida - perl? ( - dev-lang/perl - dev-perl/libwww-perl - virtual/perl-Digest-MD5 - ) - selinux? ( sec-policy/selinux-xscreensaver ) -" -DEPEND=" - ${COMMON_DEPEND} - x11-base/xorg-proto -" -BDEPEND=" - dev-util/intltool - sys-devel/bc - sys-devel/gettext - virtual/pkgconfig -" -PATCHES=( - "${FILESDIR}"/${PN}-6.01-interix.patch - "${FILESDIR}"/${PN}-5.31-pragma.patch - "${FILESDIR}"/${PN}-6.01-gentoo.patch - "${FILESDIR}"/${PN}-5.45-gcc.patch - "${FILESDIR}"/${PN}-6.01-configure.ac-sandbox.patch - "${FILESDIR}"/${PN}-6.01-without-gl-makefile.patch - "${FILESDIR}"/${PN}-6.01-non-gtk-install.patch - "${FILESDIR}"/${PN}-6.01-configure-install_sh.patch - "${FILESDIR}"/${PN}-6.03-without-gl-configure.patch - "${FILESDIR}"/${PN}-6.05-remove-update-icon-cache.patch - "${FILESDIR}"/${PN}-6.05-configure-exit-codes.patch -) - -DOCS=( README{,.hacking} ) - -src_prepare() { - default - - sed -i configure.ac -e '/^ALL_LINGUAS=/d' || die - strip-linguas -i po/ - export ALL_LINGUAS="${LINGUAS}" - - if use new-login && ! use gdm; then #392967 - sed -i \ - -e "/default_l.*1/s:gdmflexiserver -ls:${EPREFIX}/usr/libexec/lightdm/&:" \ - configure{,.ac} || die - fi - - # We are patching driver/XScreenSaver.ad.in, so let's delete the - # header generated from it so that it gets back in sync during build: - rm driver/XScreenSaver_ad.h || die - - if ! use offensive; then - sed -i \ - -e '/boobies/d;/boobs/d;/cock/d;/pussy/d;/viagra/d;/vibrator/d' \ - hacks/barcode.c || die - sed -i \ - -e 's|erect penis|shuffle board|g' \ - -e 's|flaccid penis|flaccid anchor|g' \ - -e 's|vagina|engagement ring|g' \ - -e 's|Penis|Shuttle|g' \ - hacks/glx/glsnake.c || die - sed -i \ - 's| Stay.*fucking mask\.$||' \ - hacks/glx/covid19.man \ - hacks/config/covid19.xml || die - eapply "${FILESDIR}/xscreensaver-6.05-teach-handsy-some-manners.patch" - fi - - config_rpath_update "${S}"/config.rpath - - # Must be eauto*re*conf, to force the rebuild - eautoreconf -} - -src_configure() { - if use ppc || use ppc64; then - filter-flags -maltivec -mabi=altivec - append-flags -U__VEC__ - fi - - unset BC_ENV_ARGS #24568 - - # /proc/interrupts won't always have the keyboard bits needed - # Not clear this does anything in 6.03+(?) but let's keep it for now in case. - # (See also: configure argument) - export ac_cv_have_proc_interrupts=yes - - # WARNING: This is NOT a normal autoconf script - # Some of the --with options are NOT standard, and expect "--with-X=no" rather than "--without-X" - ECONF_OPTS=( - $(use_enable locking) - $(use_with elogind) - $(use_with gdk-pixbuf pixbuf) - $(use_with gles) - $(use_with glx) - $(use_with gtk) - $(use_with new-login login-manager) - $(use_with pam) - $(use_with suid setuid-hacks) - $(use_with systemd) - $(use_with xinerama xinerama-ext) - --with-jpeg=$(usex jpeg yes no) - --with-png=$(usex png yes no) - --with-xft=yes - --with-app-defaults="${EPREFIX}"/usr/share/X11/app-defaults - --with-configdir="${EPREFIX}"/usr/share/${PN}/config - --with-dpms-ext - --with-hackdir="${EPREFIX}"/usr/$(get_libdir)/misc/${PN} - --with-proc-interrupts - --with-randr-ext - --with-text-file="${EPREFIX}"/etc/gentoo-release - --with-xdbe-ext - --with-xf86gamma-ext - --with-xf86vmode-ext - --with-xinput-ext - --with-xkb-ext - --with-xshm-ext - --without-gle - --without-kerberos - --without-motif - --with-proc-oom - --x-includes="${EPREFIX}"/usr/include - --x-libraries="${EPREFIX}"/usr/$(get_libdir) - ) - # WARNING: This is NOT a normal autoconf script - econf "${ECONF_OPTS[@]}" -} - -src_compile() { - # stock target is "default", which is broken in some releases. - emake all -} - -src_install() { - use pam && dodir /etc/pam.d/ - emake install_prefix="${D}" DESTDIR="${D}" GTK_SHAREDIR="${installprefix}"/usr/share/xscreensaver install - - if use fonts; then - # Do not install fonts with unclear licensing - rm -v "${ED}${FONTDIR}"/{gallant12x22.ttf,OCRAStd.otf} || die - - # Do not duplicate font Luxi Mono (of package media-fonts/font-bh-ttf) - rm -v "${ED}${FONTDIR}"/luximr.ttf || die - - font_xfont_config - else - rm -v "${ED}${FONTDIR}"/*.{ttf,otf} || die - rmdir -v "${ED}${FONTDIR}" || die #812473 - fi - - einstalldocs - - if use pam; then - fperms 755 /usr/bin/${PN} - pamd_mimic_system ${PN} auth - fi - - # bugs #809599, #828869 - if ! use gtk; then - rm "${ED}/usr/bin/xscreensaver-demo" || die - fi - # Makefile installs xscreensaver.service regardless of --without-systemd - if ! use systemd; then - rm "${ED}/usr/share/${PN}/xscreensaver.service" || die - fi -} - -pkg_postinst() { - use fonts && font_pkg_postinst - - # bug #811885 - if ! use glx; then - elog "Enable USE='glx' if OpenGL screensavers are crashing." - fi - - optfeature 'Bitmap fonts 75dpi' media-fonts/font-adobe-75dpi - optfeature 'Bitmap fonts 100dpi' media-fonts/font-adobe-100dpi - optfeature 'Truetype font Luxi Mono' media-fonts/font-bh-ttf -} - -pkg_postrm() { - use fonts && font_pkg_postrm -} -- cgit v1.2.3