holgersson-overlay/sys-apps/pacman/pacman-6.1.0.ebuild
Nils Freydank 1c08cc43f8
sys-apps/pacman: Bump to 6.1.0
Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2024-04-14 13:38:42 +02:00

87 lines
2.1 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit meson
DESCRIPTION="Archlinux's binary package manager"
HOMEPAGE="
https://archlinux.org/pacman/
https://gitlab.archlinux.org/pacman/pacman/-/releases
"
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitlab.archlinux.org/pacman/pacman"
else
SRC_URI="https://gitlab.archlinux.org/pacman/pacman/-/releases/v${PV}/downloads/${P}.tar.xz"
# Do *not* re-add ~x86!
# https://www.archlinux.org/news/phasing-out-i686-support/
KEYWORDS="-* ~amd64"
fi
LICENSE="GPL-2"
SLOT="0/10"
IUSE="doc +gpg test"
DEPEND="
app-crypt/archlinux-keyring
app-arch/libarchive:=[lzma]
gpg? ( app-crypt/gpgme:= )
net-misc/curl
dev-libs/openssl:0=
virtual/libiconv
virtual/libintl
"
RDEPEND="
${DEPEND}
sys-apps/pacman-mirrorlist
"
BDEPEND="
app-text/asciidoc
doc? ( app-text/doxygen )
test? (
sys-apps/fakeroot
sys-apps/fakechroot
)
"
# Plenty tests fail because we're actually not on a archlinux system.
RESTRICT="test"
src_configure() {
local emesonargs=(
-Dbuildstatic=false
# Help protect Gentoo users from shooting into their feet.
-Droot-dir="${EPREFIX}/var/chroot/archlinux"
# full doc with doxygen
$(meson_feature doc doxygen)
$(meson_feature gpg gpgme)
)
if [[ "${PV}" == *9999 ]]; then
emesonargs+=( -Duse-git-version=true )
fi
meson_src_configure
}
pkg_postinst() {
/usr/bin/pacman-key --init || die
/usr/bin/pacman-key --populate archlinux || die
einfo
einfo "The default root dir was set to ${EPREFIX}/var/chroot/archlinux"
einfo "to avoid breaking Gentoo systems due to oscitancy."
einfo "If you prefer another directory, take a look at"
einfo "pacman's parameter -r|--root."
einfo
einfo "You will need to setup at least one mirror in"
einfo " /etc/pacman.d/mirrorlist."
einfo "This list is installed by sys-apps/pacman-mirrorlist but can be"
einfo "updated manually by fetching from"
einfo "https://wiki.archlinux.org/index.php/Mirror"
einfo
einfo "With pacman 5.1 contrib packages were moved into a seprate package."
einfo
}