Permalink
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDrops >=xfce-extra/xfce4-notes-plugin-1.8.1-r4 dep, as this is blocking thunar etc. upgrading.
| # Copyright (c) 2017-20 sakaki <sakaki@deciban.com> | |
| # License: GPL v3+ | |
| # NO WARRANTY | |
| EAPI=6 | |
| DESCRIPTION="Baseline packages for the gentoo-on-rpi-64bit image" | |
| HOMEPAGE="https://github.com/sakaki-/gentoo-on-rpi-64bit" | |
| SRC_URI="" | |
| LICENSE="metapackage" | |
| SLOT="0" | |
| KEYWORDS="~arm64" | |
| IUSE="apps +boot-fw +core +init-scripts +innercore +kernel-bin pitop -porthash pulseaudio -systemd +weekly-genup +xfce" | |
| REQUIRED_USE=" | |
| core? ( innercore ) | |
| xfce? ( core ) | |
| pitop? ( xfce ) | |
| apps? ( xfce )" | |
| # required by Portage, as we have no SRC_URI... | |
| S="${WORKDIR}" | |
| DEPEND=" | |
| systemd? ( >=sys-apps/systemd-242-r6 ) | |
| !systemd? ( >=sys-apps/openrc-0.42.1-r2[swclock-fix(-)] ) | |
| >=app-shells/bash-5.0" | |
| # pi3multiboot flag pulls in matching bcmrpi3-kernel{,-bis}-bin package also | |
| RDEPEND=" | |
| ${DEPEND} | |
| !dev-embedded/rpi3-64bit-meta | |
| kernel-bin? ( | |
| boot-fw? ( | |
| || ( | |
| >=sys-kernel/bcm2711-kernel-bin-4.19.67.20190827[with-matching-boot-fw(-),pitop(-)?,pi3multiboot] | |
| >=sys-kernel/bcm2711-kernel-bis-bin-4.19.67.20190827[with-matching-boot-fw(-),pitop(-)?,pi3multiboot] | |
| ) | |
| ) | |
| !boot-fw? ( | |
| || ( | |
| >=sys-kernel/bcm2711-kernel-bin-4.19.67.20190827[-with-matching-boot-fw(-),pi3multiboot] | |
| >=sys-kernel/bcm2711-kernel-bis-bin-4.19.67.20190827[-with-matching-boot-fw(-),pi3multiboot] | |
| ) | |
| ) | |
| ) | |
| !kernel-bin? ( | |
| boot-fw? ( | |
| >=sys-boot/rpi3-64bit-firmware-1.20190819[pitop(-)?] | |
| ) | |
| !boot-fw? ( | |
| !sys-boot/rpi3-64bit-firmware | |
| ) | |
| ) | |
| >=net-wireless/rpi3-bluetooth-1.1-r7 | |
| init-scripts? ( >=sys-apps/rpi3-init-scripts-1.1.5-r2 ) | |
| >=sys-apps/rpi3-ondemand-cpufreq-1.1.1-r1 | |
| >=sys-firmware/b43-firmware-5.100.138 | |
| >=sys-firmware/bcm4340a1-firmware-1.1 | |
| >=sys-firmware/bluez-firmware-1.2 | |
| >=sys-firmware/brcm43430-firmware-20200612[43455-fix] | |
| porthash? ( | |
| <sys-apps/portage-2.3.49 | |
| >=app-portage/rpi3-check-porthash-1.0.0-r3 | |
| ) | |
| !porthash? ( | |
| !app-portage/rpi3-check-porthash | |
| >=sys-apps/portage-2.3.49 | |
| ) | |
| pulseaudio? ( >=media-sound/pulseaudio-13.0-r2[rpi-deglitch(-)] ) | |
| weekly-genup? ( >=app-portage/weekly-genup-1.1.1-r2 ) | |
| !weekly-genup? ( !app-portage/weekly-genup ) | |
| innercore? ( | |
| >=app-admin/logrotate-3.16.0 | |
| >=app-admin/sudo-1.9.0-r1 | |
| >=app-admin/syslog-ng-3.26.1-r1 | |
| >=app-crypt/gnupg-2.2.20 | |
| >=app-editors/nano-4.9.3 | |
| >=app-portage/eix-0.34.4 | |
| >=app-portage/euses-2.6.0 | |
| >=app-portage/gentoolkit-0.5.0 | |
| >=app-portage/genup-1.0.27 | |
| >=app-portage/mirrorselect-2.2.6-r1 | |
| >=app-portage/showem-1.0.3 | |
| >=app-text/dos2unix-7.4.1 | |
| >=app-text/tree-1.8.0 | |
| >=dev-embedded/rpi4-eeprom-updater-7.2.1-r1 | |
| >=dev-libs/elfutils-0.179 | |
| >=dev-vcs/git-2.27.0 | |
| >=media-libs/raspberrypi-userland-1.20200520 | |
| >=media-sound/alsa-tools-1.2.2-r1 | |
| >=media-sound/alsa-utils-1.2.2 | |
| >=net-fs/nfs-utils-2.4.3 | |
| >=net-misc/bridge-utils-1.6 | |
| >=net-misc/chrony-4.0_pre2-r1 | |
| >=net-misc/dhcpcd-8.1.9 | |
| >=net-misc/networkmanager-1.24.2 | |
| >=net-misc/rpi3-ethfix-1.0.0-r2 | |
| >=net-wireless/iw-5.4 | |
| || ( >=sys-apps/util-linux-2.35.2 >=net-wireless/rfkill-0.5-r1 ) | |
| >=net-wireless/rpi3-wifi-regdom-1.1-r1 | |
| >=net-wireless/wireless-tools-30_pre9-r1 | |
| >=net-wireless/wpa_supplicant-2.9-r2 | |
| >=sys-apps/file-5.38-r1 | |
| >=sys-apps/mlocate-0.26-r3 | |
| >=sys-apps/rpi-gpio-1.0.0-r1 | |
| >=sys-apps/rpi-i2c-1.0.0-r3 | |
| >=sys-apps/rpi-onetime-startup-1.0-r4 | |
| >=sys-apps/rpi-serial-1.0.0-r1 | |
| >=sys-apps/rpi-spi-1.0.0-r2 | |
| >=sys-apps/rpi-video-1.0.0-r1 | |
| >=sys-apps/rpi3-expand-swap-1.0-r5 | |
| >=sys-apps/rpi3-zswap-1.0-r2 | |
| >=sys-apps/rng-tools-6.10 | |
| >=sys-apps/usbutils-012 | |
| >=sys-boot/rpi3-boot-config-1.0.9[pitop(-)?] | |
| >=sys-devel/distcc-3.3.3-r1 | |
| >=sys-fs/btrfs-progs-5.6.1 | |
| >=sys-fs/dosfstools-4.1 | |
| !systemd? ( >=sys-fs/eudev-3.2.9 ) | |
| >=sys-fs/f2fs-tools-1.13.0 | |
| >=sys-fs/fuse-3.9.1 | |
| >=sys-fs/multipath-tools-0.8.4 | |
| >=sys-process/cronie-1.5.5 | |
| dev-lang/python:3.7[pgo(-)] | |
| ) | |
| core? ( | |
| >=app-arch/lzop-1.04 | |
| >=app-crypt/libu2f-host-1.1.10 | |
| >=app-editors/vim-8.2.0814 | |
| >=app-editors/vim-core-8.2.0814 | |
| >=app-misc/screen-4.8.0 | |
| >=app-portage/porthash-1.0.8 | |
| >=app-text/psutils-1.17-r3 | |
| >=dev-lang/go-1.14.4 | |
| >=dev-libs/pigpio-76 | |
| >=dev-python/pip-20.1.1 | |
| >=dev-tcltk/expect-5.45.4 | |
| >=dev-util/strace-5.7 | |
| >=mail-client/mailx-8.1.2.20180807 | |
| >=mail-client/mailx-support-20060102-r2 | |
| >=net-analyzer/iptraf-ng-1.2.0-r1 | |
| >=net-analyzer/nmap-7.80-r1 | |
| >=net-analyzer/tcpdump-4.9.3-r1 | |
| >=net-dialup/lrzsz-0.12.20-r4 | |
| >=net-fs/samba-4.12.3-r1 | |
| >=net-irc/irssi-1.2.2 | |
| >=net-misc/iperf-3.8.1 | |
| >=net-misc/keychain-2.8.5 | |
| >=net-misc/youtube-dl-2020.06.06 | |
| >=net-vpn/networkmanager-openvpn-1.8.12 | |
| >=net-vpn/openvpn-2.4.9 | |
| >=sys-apps/ack-3.3.1 | |
| >=sys-apps/coreboot-utils-4.6 | |
| >=sys-apps/ethtool-5.7 | |
| >=sys-apps/flashrom-1.0 | |
| >=sys-apps/hdparm-9.58 | |
| >=sys-apps/i2c-tools-4.1-r1 | |
| >=sys-apps/me_cleaner-1.2-r1 | |
| >=sys-apps/smartmontools-7.1 | |
| >=sys-devel/clang-10.0.0 | |
| >=sys-fs/ncdu-1.15 | |
| >=sys-fs/zerofree-1.1.1 | |
| >=sys-power/powertop-2.11 | |
| >=sys-process/htop-2.2.0 | |
| >=sys-process/iotop-0.6 | |
| ) | |
| xfce? ( | |
| >=app-admin/usbimager-1.0.3 | |
| >=app-arch/xarchiver-0.5.4.15 | |
| >=app-accessibility/onboard-1.4.1-r1 | |
| >=app-emulation/qemu-5.0.0 | |
| >=app-misc/mc-4.8.24 | |
| >=app-office/orage-4.12.1-r1 | |
| >=gnome-extra/nm-applet-1.16.0 | |
| >=media-fonts/cantarell-0.111 | |
| >=media-fonts/croscorefonts-1.31.0 | |
| >=media-fonts/fontawesome-5.13.0 | |
| >=media-fonts/libertine-5.3.0.20120702-r3 | |
| >=media-fonts/ttf-bitstream-vera-1.10-r3 | |
| >=media-libs/gst-plugins-bad-1.16.2 | |
| >=media-libs/mesa-20.1.1[rpi-v3d(-)] | |
| >=media-sound/pavucontrol-4.0 | |
| >=media-tv/v4l-utils-1.18.0 | |
| >=media-video/ffmpeg-4.2.3-r1[v4l2m2m-fix(-)] | |
| >=media-video/pi-ffcam-1.0.5-r1 | |
| >=media-video/pi-ffplay-1.0.6-r1 | |
| >=net-misc/tigervnc-1.9.0-r1 | |
| >=net-misc/xorgxrdp-0.2.8 | |
| >=net-wireless/blueman-2.0.4-r3 | |
| >=sci-calculators/qalculate-gtk-3.2.0-r1 | |
| >=sci-calculators/speedcrunch-0.12.0 | |
| >=sys-apps/firejail-0.9.62 | |
| >=sys-apps/pyconfig_gen-1.1.9-r1 | |
| >=sys-block/gparted-1.1.0-r1[sudo(-)] | |
| >=x11-apps/mesa-progs-8.4.0 | |
| >=x11-apps/xclock-1.0.9 | |
| >=x11-apps/xdm-1.1.12 | |
| >=x11-apps/xev-1.2.3 | |
| >=x11-apps/xmodmap-1.0.10 | |
| >=x11-apps/xsetroot-1.1.2 | |
| >=x11-base/xorg-server-1.20.8 | |
| >=x11-misc/lightdm-1.30.0 | |
| >=x11-misc/lightdm-gtk-greeter-2.0.7-r1 | |
| >=x11-misc/rpi3-safecompositor-1.0.3-r1 | |
| >=x11-misc/rpi3-safecursor-1.0.1-r1 | |
| >=x11-misc/twofing-0.1.2-r2 | |
| >=x11-misc/xdiskusage-1.51 | |
| >=x11-terms/xfce4-terminal-0.8.9.2 | |
| >=x11-terms/xterm-353 | |
| >=x11-themes/gnome-icon-theme-3.12.0-r1 | |
| >=xfce-base/xfce4-meta-4.14-r2 | |
| >=xfce-extra/thunar-archive-plugin-0.4.0 | |
| >=xfce-extra/thunar-volman-0.9.5 | |
| >=xfce-extra/tumbler-0.2.8 | |
| >=xfce-extra/xfce4-alsa-plugin-0.3.0 | |
| >=xfce-extra/xfce4-cpufreq-plugin-1.2.1 | |
| >=xfce-extra/xfce4-cpugraph-plugin-1.1.0 | |
| >=xfce-extra/xfce4-fixups-rpi3-1.0.5-r1 | |
| >=xfce-extra/xfce4-indicator-plugin-2.3.4 | |
| >=xfce-extra/xfce4-kbsetup-1.0.2 | |
| >=xfce-extra/xfce4-mixer-4.99.0-r1 | |
| >=xfce-extra/xfce4-noblank-1.0.0-r3 | |
| >=xfce-extra/xfce4-power-manager-1.7.0 | |
| >=xfce-extra/xfce4-screenshooter-1.9.7 | |
| >=xfce-extra/xfce4-systemload-plugin-1.2.3 | |
| >=xfce-extra/xfce4-taskmanager-1.2.3 | |
| >=xfce-extra/xfce4-xkb-plugin-0.8.1 | |
| ) | |
| pitop? ( | |
| >=dev-embedded/pitop-speaker-1.1.0.1-r2 | |
| >=sys-apps/pitop-poweroff-1.0.2-r6 | |
| >=xfce-extra/xfce4-battery-plugin-1.1.0-r3[pitop] | |
| >=xfce-extra/xfce4-keycuts-pitop-1.0.2-r1 | |
| ) | |
| apps? ( | |
| >=app-arch/p7zip-16.02-r6 | |
| >=app-crypt/seahorse-3.34.1 | |
| >=app-editors/emacs-27.0.91 | |
| >=app-editors/mousepad-0.4.2 | |
| >=app-office/abiword-3.0.4 | |
| >=app-office/libreoffice-6.4.4.2 | |
| >=app-office/libreoffice-l10n-6.4.4.2 | |
| >=app-text/evince-3.34.2 | |
| >=dev-util/meld-3.20.2-r1 | |
| >=mail-client/claws-mail-3.17.5-r1 | |
| >=mail-client/thunderbird-68.9.0 | |
| >=media-gfx/fotoxx-19.13 | |
| >=media-gfx/gimp-2.10.18-r1 | |
| >=media-gfx/ristretto-0.10.0 | |
| >=media-sound/clementine-1.4.0_rc1 | |
| >=media-sound/mpc-0.33 | |
| >=media-sound/mpd-0.21.23 | |
| >=media-tv/kodi-18.7.1 | |
| >=media-video/mplayer-1.3.0-r6 | |
| >=media-video/mpv-0.32.0-r1 | |
| >=media-video/smplayer-20.4.2 | |
| >=media-video/smtube-20.1.0[category-fix(-)] | |
| >=media-video/vlc-3.0.10-r1 | |
| >=net-analyzer/etherape-0.9.19-r1[sudo(-)] | |
| >=net-analyzer/wireshark-3.2.4 | |
| >=net-im/jitsi-meet-server-4548-r4 | |
| >=net-irc/hexchat-2.14.3 | |
| >=net-p2p/transmission-3.00-r1 | |
| >=sys-apps/gnome-disk-utility-3.34.5 | |
| >=sys-devel/portage-distccmon-gui-1.1 | |
| >=www-client/chromium-84.0.4147.30 | |
| >=www-client/firefox-77.0.1 | |
| >=www-client/links-2.20.2-r1 | |
| dev-java/icedtea:8 | |
| ) | |
| " | |
| src_install() { | |
| # basic framework file to enable / disable USE flags for this package | |
| insinto "/etc/portage/package.use/" | |
| newins "${FILESDIR}/package.use_${PN}-2" "${PN}" | |
| } | |
| pkg_postinst() { | |
| # ensure we have at least a system JVM set (if javac installed) | |
| if [ -e /usr/bin/javac ] && ! /usr/bin/javac -version &>/dev/null; then | |
| if eselect java-vm set system 1 &>/dev/null; then | |
| ewarn "Your JVM setup is now as follows:" | |
| ewarn "$(eselect java-vm show)" | |
| ewarn "Please modify (using eselect java-vm set ...) if incorrect" | |
| fi | |
| fi | |
| # migrate to appropriate sync-uri automatically, and force a sync | |
| # next time if we do, by deleting /usr/portage/metadata/timestamp.chk | |
| # (this is to ensure repo.hash{,.asc} gets added or removed, as | |
| # required) | |
| local RCONPATH="${ROOT%/}/etc/portage/repos.conf/gentoo.conf" | |
| if [ -e "${RCONPATH}" ]; then | |
| if use porthash && grep -q 'rsync://isshoni.org/gentoo-portage-pi64-gem$' "${RCONPATH}"; then | |
| sed -i 's#rsync://isshoni.org/gentoo-portage-pi64-gem$#rsync://isshoni.org/gentoo-portage-pi64#' "${RCONPATH}" | |
| rm -fv "${ROOT%/}/usr/portage/metadata/timestamp.chk" | |
| ewarn "This install has substituted:" | |
| ewarn " rsync://isshoni.org/gentoo-portage-pi64" | |
| ewarn "in place of:" | |
| ewarn " rsync://isshoni.org/gentoo-portage-pi64-gem" | |
| ewarn "as your gentoo repo's sync-uri" | |
| ewarn "in ${RCONPATH}." | |
| ewarn "The timestamp.chk file has also been deleted, to force" | |
| ewarn "this repo to sync next time you run genup." | |
| elif grep -q 'rsync://isshoni.org/gentoo-portage-pi64$' "${RCONPATH}"; then | |
| sed -i 's#rsync://isshoni.org/gentoo-portage-pi64$#rsync://isshoni.org/gentoo-portage-pi64-gem#' "${RCONPATH}" | |
| rm -fv "${ROOT%/}/usr/portage/metadata/timestamp.chk" | |
| ewarn "This install has substituted:" | |
| ewarn " rsync://isshoni.org/gentoo-portage-pi64-gem" | |
| ewarn "in place of:" | |
| ewarn " rsync://isshoni.org/gentoo-portage-pi64" | |
| ewarn "as your gentoo repo's sync-uri" | |
| ewarn "in ${RCONPATH}" | |
| ewarn "The timestamp.chk file has also been deleted, to force" | |
| ewarn "this repo to sync next time you run genup." | |
| rm -fv "${ROOT%/}/usr/portage"{,/local}"/repo.hash"{,.asc} | |
| ewarn "Any repo.hash{,.asc} files have also been deleted." | |
| fi | |
| else | |
| if use porthash; then | |
| ewarn "Please ensure you are using the following gentoo sync-uri:" | |
| ewarn "rsync://isshoni.org/gentoo-portage-pi64" | |
| fi | |
| # otherwise assume user knows what they are doing and is using the | |
| # main gentoo repo or similar | |
| fi | |
| if use systemd; then | |
| ewarn "You are running with the systemd USE flag set!" | |
| ewarn "However, this package does not yet formally support systemd, so" | |
| ewarn "you are on your own to get things working ><" | |
| fi | |
| } |