Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly portage-stable package updates 2024-07-16 #2126

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
8815d1e
app-arch/gzip: Sync with Gentoo
Jul 16, 2024
d78b77e
app-arch/lbzip2: Sync with Gentoo
Jul 16, 2024
2e9f65e
app-crypt/gnupg: Sync with Gentoo
Jul 16, 2024
755decd
app-crypt/gpgme: Sync with Gentoo
Jul 16, 2024
d4e595a
app-crypt/pinentry: Sync with Gentoo
Jul 16, 2024
464674d
app-editors/nano: Sync with Gentoo
Jul 16, 2024
26932ee
app-emulation/qemu-guest-agent: Sync with Gentoo
Jul 16, 2024
6389c50
app-portage/elt-patches: Sync with Gentoo
Jul 16, 2024
740ff43
app-portage/gentoolkit: Sync with Gentoo
Jul 16, 2024
6ae98a0
app-shells/bash: Sync with Gentoo
Jul 16, 2024
6b596ef
app-shells/bash-completion: Sync with Gentoo
Jul 16, 2024
6580019
app-shells/gentoo-bashcomp: Sync with Gentoo
Jul 16, 2024
75abd73
dev-build/automake: Sync with Gentoo
Jul 16, 2024
ef685c0
dev-build/cmake: Sync with Gentoo
Jul 16, 2024
3a11595
dev-build/meson: Sync with Gentoo
Jul 16, 2024
6129181
dev-build/meson-format-array: Sync with Gentoo
Jul 16, 2024
ea4dbfb
dev-build/ninja: Sync with Gentoo
Jul 16, 2024
6257235
dev-cpp/abseil-cpp: Sync with Gentoo
Jul 16, 2024
c064499
dev-cpp/gtest: Sync with Gentoo
Jul 16, 2024
b32b3d6
dev-db/sqlite: Sync with Gentoo
Jul 16, 2024
29ad34f
dev-debug/gdb: Sync with Gentoo
Jul 16, 2024
87a05f9
dev-lang/python: Sync with Gentoo
Jul 16, 2024
476469c
dev-lang/swig: Sync with Gentoo
Jul 16, 2024
9cb54da
dev-libs/cJSON: Sync with Gentoo
Jul 16, 2024
8fb7a09
dev-libs/glib: Sync with Gentoo
Jul 16, 2024
39a4529
dev-libs/gobject-introspection: Sync with Gentoo
Jul 16, 2024
c8a4f95
dev-libs/libgcrypt: Sync with Gentoo
Jul 16, 2024
740f98f
dev-libs/libxml2: Sync with Gentoo
Jul 16, 2024
d393965
dev-libs/libxslt: Sync with Gentoo
Jul 16, 2024
1f5c3b5
dev-libs/nettle: Sync with Gentoo
Jul 16, 2024
4d0a97d
dev-libs/protobuf: Sync with Gentoo
Jul 16, 2024
1570d66
dev-python/distro: Sync with Gentoo
Jul 16, 2024
62aee8d
dev-python/ensurepip-pip: Sync with Gentoo
Jul 16, 2024
765db21
dev-python/ensurepip-setuptools: Sync with Gentoo
Jul 16, 2024
b7cbe92
dev-python/hatchling: Sync with Gentoo
Jul 16, 2024
b2c7916
dev-python/jaraco-context: Sync with Gentoo
Jul 16, 2024
adffdbb
dev-python/jaraco-text: Sync with Gentoo
Jul 16, 2024
a0400fe
dev-python/lxml: Sync with Gentoo
Jul 16, 2024
4c7476c
dev-python/setuptools: Sync with Gentoo
Jul 16, 2024
65aebab
dev-python/trove-classifiers: Sync with Gentoo
Jul 16, 2024
ab4c193
dev-util/bpftool: Sync with Gentoo
Jul 16, 2024
9f909a5
dev-util/gdbus-codegen: Sync with Gentoo
Jul 16, 2024
14d9c2d
dev-util/glib-utils: Sync with Gentoo
Jul 16, 2024
7a4f920
dev-vcs/git: Sync with Gentoo
Jul 16, 2024
44eddc4
eclass/autotools: Sync with Gentoo
Jul 16, 2024
44fbd3f
eclass/cmake: Sync with Gentoo
Jul 16, 2024
19eb783
eclass/flag-o-matic: Sync with Gentoo
Jul 16, 2024
0f53c15
eclass/git-r3: Sync with Gentoo
Jul 16, 2024
cb9db2a
eclass/gnome.org: Sync with Gentoo
Jul 16, 2024
78df16f
eclass/kernel-2: Sync with Gentoo
Jul 16, 2024
61ce18f
eclass/linux-info: Sync with Gentoo
Jul 16, 2024
4e9a65f
eclass/mount-boot: Sync with Gentoo
Jul 16, 2024
260b194
eclass/mount-boot-utils: Sync with Gentoo
Jul 16, 2024
b00d270
licenses: Sync with Gentoo
Jul 16, 2024
7d818aa
net-dns/c-ares: Sync with Gentoo
Jul 16, 2024
f4725eb
net-firewall/ipset: Sync with Gentoo
Jul 16, 2024
540db11
net-libs/gnutls: Sync with Gentoo
Jul 16, 2024
8cd324c
net-libs/libnftnl: Sync with Gentoo
Jul 16, 2024
26eed57
net-libs/libpsl: Sync with Gentoo
Jul 16, 2024
f402f87
net-misc/curl: Sync with Gentoo
Jul 16, 2024
ee9960a
net-misc/iputils: Sync with Gentoo
Jul 16, 2024
1290035
net-misc/ntp: Sync with Gentoo
Jul 16, 2024
0cf4f60
net-misc/openssh: Sync with Gentoo
Jul 16, 2024
987ffb0
net-misc/rsync: Sync with Gentoo
Jul 16, 2024
b36e2c0
net-misc/whois: Sync with Gentoo
Jul 16, 2024
630286b
net-nds/openldap: Sync with Gentoo
Jul 16, 2024
27a0e71
profiles: Sync with Gentoo
Jul 16, 2024
81390b2
sec-keys/openpgp-keys-gentoo-release: Sync with Gentoo
Jul 16, 2024
c8059b6
sec-policy/selinux-base: Sync with Gentoo
Jul 16, 2024
c4ae907
sys-apps/coreutils: Sync with Gentoo
Jul 16, 2024
c20ec08
sys-apps/iproute2: Sync with Gentoo
Jul 16, 2024
0119bb2
sys-apps/man-db: Sync with Gentoo
Jul 16, 2024
e1b0d7f
sys-apps/miscfiles: Sync with Gentoo
Jul 16, 2024
57b3c05
sys-apps/nvme-cli: Sync with Gentoo
Jul 16, 2024
b30ca18
sys-apps/portage: Sync with Gentoo
Jul 16, 2024
911ecfe
sys-apps/pv: Sync with Gentoo
Jul 16, 2024
d474456
sys-apps/util-linux: Sync with Gentoo
Jul 16, 2024
d8967eb
sys-block/thin-provisioning-tools: Sync with Gentoo
Jul 16, 2024
4177c40
sys-devel/binutils: Sync with Gentoo
Jul 16, 2024
3ed0b04
sys-devel/crossdev: Sync with Gentoo
Jul 16, 2024
8e6a1fd
sys-devel/gcc: Sync with Gentoo
Jul 16, 2024
78a99cc
sys-firmware/ipxe: Sync with Gentoo
Jul 16, 2024
c39c915
sys-firmware/sgabios: Sync with Gentoo
Jul 16, 2024
a7f9965
sys-libs/binutils-libs: Sync with Gentoo
Jul 16, 2024
ab95fa2
sys-libs/gdbm: Sync with Gentoo
Jul 16, 2024
2c58765
sys-libs/libcap: Sync with Gentoo
Jul 16, 2024
f387bbd
sys-libs/libnvme: Sync with Gentoo
Jul 16, 2024
ce21a32
sys-libs/libselinux: Sync with Gentoo
Jul 16, 2024
732585d
sys-process/audit: Sync with Gentoo
Jul 16, 2024
ddc4b52
sys-process/procps: Sync with Gentoo
Jul 16, 2024
2e4bea9
x11-base/xorg-proto: Sync with Gentoo
Jul 16, 2024
66508a5
profiles/repo_name: revert to portage-stable
tormath1 Jul 16, 2024
c9e11c0
Revert "dev-python/tomli: Drop unused package"
tormath1 Jul 16, 2024
8caa353
overlay profiles: Drop accept keywords for sys-apps/coreutils
tormath1 Jul 19, 2024
03e38f7
overlay profiles: Drop accept keywords for sys-apps/nvme-cli
tormath1 Jul 19, 2024
b9cb2ab
overlay profiles: Drop accept keywords for sys-libs/libnvme
tormath1 Jul 19, 2024
bef1fec
changelog: add entries
tormath1 Jul 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions changelog/updates/2024-07-16-weekly-updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- sqlite ([3.46.0](https://www.sqlite.org/releaselog/3_46_0.html))
- bpftool ([6.9.2](https://kernelnewbies.org/Linux_6.9#Tracing.2C_perf_and_BPF))
- ipset ([7.22](https://ipset.netfilter.org/changelog.html))
- curl ([8.8.0](https://curl.se/changes.html#8_8_0))
- sysext-python: setuptools([70.1.1](https://setuptools.pypa.io/en/stable/history.html#v70-1-1) (includes [70.1.0](https://setuptools.pypa.io/en/stable/history.html#v70-1-0), [70.0.0](https://setuptools.pypa.io/en/stable/history.html#v70-0-0), [69.5.1](https://setuptools.pypa.io/en/stable/history.html#v69-5-1), [69.5.0](https://setuptools.pypa.io/en/stable/history.html#v69-5-0), [69.4.2](https://setuptools.pypa.io/en/stable/history.html#v69-4-2), [69.4.1](https://setuptools.pypa.io/en/stable/history.html#v69-4-1), [69.4.0](https://setuptools.pypa.io/en/stable/history.html#v69-4-0), [69.3.1](https://setuptools.pypa.io/en/stable/history.html#v69-3-1), [69.3.0](https://setuptools.pypa.io/en/stable/history.html#v69-3-0), [69.2.0](https://setuptools.pypa.io/en/stable/history.html#v69-2-0)))
- sysext-python: jaraco-text ([3.12.1](https://github.com/jaraco/jaraco.text/compare/v3.12.0...v3.12.1))
- sysext-python: trove-classifiers ([2024.7.2](https://github.com/pypa/trove-classifiers/compare/2024.5.22...2024.7.2))
- SDK: portage ([3.0.65](https://github.com/gentoo/portage/blob/f03998622e0960388e903de0d6d24bdf6881e567/NEWS#L9))
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@ dev-util/catalyst ~amd64 ~arm64
=net-libs/libnetfilter_cthelper-1.0.1-r1 ~arm64
=net-libs/libnetfilter_cttimeout-1.0.1 ~arm64

# Required to address coreutils-2024-03-28
=sys-apps/coreutils-9.5 ~amd64 ~arm64

# Keep versions on both arches in sync.
=sys-apps/kexec-tools-2.0.28 ~arm64
=sys-apps/nvme-cli-2.9.1 ~arm64

sys-apps/zram-generator ~amd64 ~arm64

Expand All @@ -112,8 +108,5 @@ sys-apps/zram-generator ~amd64 ~arm64
# Keep versions on both arches in sync.
=sys-firmware/edk2-aarch64-18.02 **

# Keep versions on both arches in sync.
=sys-libs/libnvme-1.9 ~arm64

# Accept unstable host Rust compilers.
=virtual/rust-1.79.0 ~amd64 ~arm64
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ src_configure() {
# Avoid text relocation in gzip
use pic && export DEFS="NO_ASM"

# embeds the path to grep detected at build time into installed scripts;
# use the canonical USE="split-usr" agnostic path. bug #935721
export GREP="${EPREFIX}/bin/grep"

# bug #663928
econf --disable-gcc-warnings
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
Expand All @@ -7,7 +7,7 @@ inherit autotools flag-o-matic

DESCRIPTION="Parallel bzip2 utility"
HOMEPAGE="https://github.com/kjn/lbzip2/"
SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.gz"
SRC_URI="mirror://gentoo/05/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ S="${WORKDIR}/${MY_P}"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test tofu tools usb user-socket wks-server"
RESTRICT="!test? ( test )"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ EAPI=8

DISTUTILS_EXT=1
DISTUTILS_OPTIONAL=1
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{10..13} )
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc

# in-source builds are not supported:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ DIST pinentry-1.2.1.tar.bz2 547698 BLAKE2B aa47612aa3a6f74c3676bf4018780356cb22e
DIST pinentry-1.2.1.tar.bz2.sig 238 BLAKE2B 01ba3dc296a8e76c546d21d0bb0cd13778476d5d5b3ef55a3401c6a0353a56d79250d11555afb31c77c5a77e63847ded0f8eaef395bb0dc2ee3ff1d6a4ed83bd SHA512 d0e8435dc169a58f111f057f1c9fbb6c70da32a850f1107d6abdf41357c1714832728109ae61507db313d7eaef9596e5faf92fd21bed78adcc46a8c8a590430b
DIST pinentry-1.3.0.tar.bz2 610363 BLAKE2B a55b80754ef37d18ebdf0bd50e134a7b1bf6362b859b7069a9e4ebd86cd7e733d51f3c21a16779a18aa0d0dfab1f7a3df070d4f7e39e0840339078c4e9cb58bc SHA512 1bbac81c6811cffc8969a46494e6daa6b8447802f47ff6fa3e4dc9ac244cf6e5f629834c9b6a60770d06bff6c9932ad4059f10d2fdf93fd9e26fd5d21c0e3732
DIST pinentry-1.3.0.tar.bz2.sig 119 BLAKE2B 0f11126761b2a06f8b08cf971f5d610cacbde1a5ee419523a6e704ac21fef4cce26495a160a51bee5ed5f68eca7d6864dfa03efa48030ba2cf783e767b925e1c SHA512 77a61877adf241d67caeea3af4c12a2c7c13ddc423ac001fab79bcec463a5853d8806052d61504fae0c67e0a9d1edf6a12d24b560ff7b4083eea5e86f9b54a90
DIST pinentry-1.3.1.tar.bz2 611233 BLAKE2B 47a510b3746fc8cdd83b56302132f4f4d9c61324fc857ce0867387f70f79490dad375bca4dc72e5d1cdca707bf89a16e1c9a20bf1aa0e857d69e59dc59403afd SHA512 3b72034dc1792b1475acb6d605ff7c1bd7647a0f02d1b6bdcd475acdef24bc802f49e275055436c3271261c4b7a64168477a698aab812a145962146b2f67a0e2
DIST pinentry-1.3.1.tar.bz2.sig 119 BLAKE2B ca562d2903c88c4297e641ddc39f6cd99db3e3fd40cf5d69e7b4335f006c7717c874fa4b5e47920af3ec97385a96c0c96aafb849cf399d11a7f9f1a6b693f479 SHA512 22bd94f74486300eb84c1c9c371a43b05fb6179118518004fba0d42b6d3e6731f94d79b37c2a3a6b0c5886578c4575f75d2460accd36cd4874342e7239521be9
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
inherit autotools qmake-utils verify-sig

DESCRIPTION="Simple passphrase entry dialogs which utilize the Assuan protocol"
HOMEPAGE="https://gnupg.org/related_software/pinentry/"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
SRC_URI+=" verify-sig? ( mirror://gnupg/${PN}/${P}.tar.bz2.sig )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="caps efl emacs gtk keyring ncurses qt5 qt6 wayland X"

DEPEND="
>=dev-libs/libassuan-2.1:=
>=dev-libs/libgcrypt-1.6.3
>=dev-libs/libgpg-error-1.17
efl? ( dev-libs/efl[X] )
keyring? ( app-crypt/libsecret )
ncurses? ( sys-libs/ncurses:= )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
wayland? ( kde-plasma/kwayland:5 )
X? (
dev-qt/qtx11extras:5
x11-libs/libX11
)
)
qt6? (
dev-qt/qtbase:6[gui,widgets]
wayland? (
kde-frameworks/kguiaddons:6
kde-frameworks/kwindowsystem:6
)
)
"
RDEPEND="
${DEPEND}
gtk? ( app-crypt/gcr:4[gtk] )
"
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
verify-sig? ( sec-keys/openpgp-keys-gnupg )
"
PDEPEND="emacs? ( app-emacs/pinentry )"
IDEPEND=">=app-eselect/eselect-pinentry-0.7.4"

DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )

PATCHES=(
"${FILESDIR}/${PN}-1.0.0-AR.patch"
"${FILESDIR}/${PN}-1.3.0-automagic.patch" # bug #819939, bug #837719
)

src_prepare() {
default

eautoreconf
}

src_configure() {
unset FLTK_CONFIG

local myeconfargs=(
$(use_enable efl pinentry-efl)
$(use_enable emacs pinentry-emacs)
$(use_enable keyring libsecret)
$(use_enable gtk pinentry-gnome3)
$(use_enable ncurses fallback-curses)
$(use_enable ncurses pinentry-curses)
$(use_enable qt5 pinentry-qt5)
$(use_enable qt6 pinentry-qt)
# TODO: could split this up into qt5/qt6?
$(use_enable X qtx11extras)
$(use_with X x)

--enable-pinentry-tty
--disable-pinentry-fltk
--disable-pinentry-gtk2

ac_cv_path_GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config"

$("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
)

if use qt5 ; then
export PATH="$(qt5_get_bindir):${PATH}"
export QTLIB="$(qt5_get_libdir):${QTLIB}"
export MOC5="$(qt5_get_bindir)"/moc

myeconfargs+=(
$(use_enable wayland kf5-wayland)
)
else
myeconfargs+=(
--disable-kf5-wayland
)
fi

if use qt6 ; then
export PATH="$(qt6_get_bindir):${PATH}"
export QTLIB="$(qt6_get_libdir):${QTLIB}"
export MOC="$(qt6_get_libdir)/qt6/libexec/moc"

myeconfargs+=(
$(use_enable wayland kf6-wayland)
)
else
myeconfargs+=(
--disable-kf6-wayland
)
fi

econf "${myeconfargs[@]}"
}

src_install() {
default

rm "${ED}"/usr/bin/pinentry || die

# The preferred Qt implementation upstream gets installed as just 'qt'.
# Make a symlink for eselect-pinentry and friends.
if use qt6 ; then
dosym pinentry-qt /usr/bin/pinentry-qt6
fi
}

pkg_postinst() {
eselect pinentry update ifunset
}

pkg_postrm() {
eselect pinentry update ifunset
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST nano-7.2.tar.xz 1608444 BLAKE2B c7e3b18383e9f2f9db1f6059c875ddd164d730ea0e5b363e66fb8e5f30e8598ba49a5afd8eea3a55e295f1e43fb136019f60cc9154ae276c5d589002c0e5298a SHA512 a6dfa70edab62e439a9a998ca214f2415d57dbdc01766ad2e4b14048836557a32755f8b09de13c6a89023f215b61d2854017b389eae8d097ca6f3ba73ce2f583
DIST nano-8.0.tar.xz 1666272 BLAKE2B ba36182da059a3ee4c1fc60a200dee26f47cc6b1441b7ff665b82871f2f8fcac054f6adf82966d353234141bf9c521518da8fa967aca28307bccf43e015ddaea SHA512 86c484428b8805768fd580d0f62aa32ce8f588f4beedcdd35a4014506b562928c7a2fa6487aa0d853b4c9c1639a4d186f46b4e96721568ff81191d5098403ca8
DIST nano-8.1.tar.xz 1667392 BLAKE2B e454f6e5ef86afbab3b2cf6707954d8821bf47ebc89bdad8cc6c70e2d4bb9fac27614069140f40140bca156b14605d286b0dca42469901c6559051089645cab8 SHA512 cb7d696bd18322ba1e713282e3156934e2c7f2a8abc17c99b2d5ae91fa40ea1478758853d4ad391f72039f01cfe0db79fd7302f3e67ed2afeff3a447b6f975ec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ ${PV} == 9999 ]] ; then
else
MY_P="${PN}-${PV/_}"
SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.xz"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
fi

DESCRIPTION="GNU GPL'd Pico clone with more functionality"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://git.savannah.gnu.org/git/nano.git"
inherit autotools git-r3
else
MY_P="${PN}-${PV/_}"
SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
fi

DESCRIPTION="GNU GPL'd Pico clone with more functionality"
HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Guide"

LICENSE="GPL-3+ LGPL-2.1+ || ( GPL-3+ FDL-1.2+ )"
SLOT="0"
IUSE="debug justify magic minimal ncurses nls +spell unicode"

RDEPEND="
>=sys-libs/ncurses-5.9-r1:=[unicode(+)?]
magic? ( sys-apps/file )
nls? ( virtual/libintl )
"
DEPEND="${RDEPEND}"
BDEPEND="
nls? ( sys-devel/gettext )
virtual/pkgconfig
"

REQUIRED_USE="
magic? ( !minimal )
"

# gnulib FPs
QA_CONFIG_IMPL_DECL_SKIP=( unreachable MIN static_assert )

src_prepare() {
default

if [[ ${PV} == 9999 ]] ; then
eautoreconf
fi
}

src_configure() {
local myconfargs=(
--bindir="${EPREFIX}"/bin
--htmldir=/trash
$(use_enable !minimal color)
$(use_enable !minimal multibuffer)
$(use_enable !minimal nanorc)
$(use_enable magic libmagic)
$(use_enable spell speller)
$(use_enable justify)
$(use_enable debug)
$(use_enable nls)
$(use_enable unicode utf8)
$(use_enable minimal tiny)
)

econf "${myconfargs[@]}"
}

src_install() {
default

# Don't use "${ED}" here or things break (#654534)
rm -r "${D}"/trash || die

dodoc doc/sample.nanorc
docinto html
dodoc doc/faq.html
insinto /etc
newins doc/sample.nanorc nanorc

if ! use minimal ; then
# Enable colorization by default.
sed -i \
-e '/^# include /s:# *::' \
"${ED}"/etc/nanorc || die

# Since nano-5.0 these are no longer being "enabled" by default
# (bug #736848)
local rcdir="/usr/share/nano"
mv "${ED}"${rcdir}/extra/* "${ED}"/${rcdir}/ || die
rmdir "${ED}"${rcdir}/extra || die

insinto "${rcdir}"
newins "${FILESDIR}/gentoo.nanorc-r1" gentoo.nanorc
fi
}

pkg_postrm() {
[[ -n ${REPLACED_BY_VERSION} ]] && return

local e
e=$(unset EDITOR; . "${EROOT}"/etc/profile &>/dev/null; echo "${EDITOR}")
if [[ ${e##*/} == nano ]]; then
ewarn "The EDITOR variable is still set to ${e}."
ewarn "You can update it with \"eselect editor\"."
fi
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
<email>[email protected]</email>
<name>Sam James</name>
</maintainer>
<maintainer type="person">
<email>[email protected]</email>
<name>Matthias Maier</name>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Virtualization Project</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz
"

KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~arm64-linux ~ppc64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~arm64-linux ~ppc64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
fi

LICENSE="GPL-2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

PYTHON_COMPAT=( python3_{10..12} pypy3 )
PYTHON_COMPAT=( python3_{10..13} pypy3 )
PYTHON_REQ_USE="xml(+),threads(+)"

inherit meson python-r1 tmpfiles
Expand Down Expand Up @@ -83,7 +83,8 @@ src_compile() {
}

src_test() {
python_foreach_impl meson_src_test --no-rebuild --verbose
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
python_foreach_impl epytest
}

src_install() {
Expand Down
Loading
Loading