sys-apps/pacman-5.0.2: Add ebuild to overlay.

Treecleaners are finally going to remove the really old and
        broken 4.x ebuilds. I created a bump request on bgo. In the
        meantime however I’ll drop the ebuild here.
This commit is contained in:
Nils Freydank 2017-08-05 23:32:07 +02:00
parent f2088413e0
commit f36e397d22
No known key found for this signature in database
GPG Key ID: 389761F3E6B0AABE
3 changed files with 96 additions and 0 deletions

1
sys-apps/pacman/Manifest Normal file
View File

@ -0,0 +1 @@
DIST pacman-5.0.2.tar.gz 3361701 SHA256 dfd36086ad68564bcd977f4a1fafe51dd328acd4a95093ac4bf1249be9c41f0e SHA512 94a8cce1a52d2365a993c72f16537f4dbea6100feb8f22e8782cc7d2c1ef8a525a63f3c40bb183294c0faedcc743e3d806d2fc3c50a21ab9b03df2910039d628 WHIRLPOOL 2419486287d1ce26d97b3ad53513b4699d876cf5823f65b10d60d8f1df6b2150bc1b742677a60891dccc32bb2105a9a9bb10b58950f5403d0bd64859b0b8640b

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>holgersson@posteo.de</email>
<name>Holgersson</name>
</maintainer>
<use>
<flag name="gpg">Support verifying packages signed with GPG using <pkg>app-crypt/gpgme</pkg></flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,84 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
PYTHON_COMPAT=( python2_7 )
DESCRIPTION="Archlinux's binary package manager"
HOMEPAGE="https://archlinux.org/pacman/"
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.archlinux.org/pacman.git"
EGIT_BRANCH="master"
else
SRC_URI="https://sources.archlinux.org/other/pacman/${P}.tar.gz"
# Do *not* re-add ~x86!
# https://www.archlinux.org/news/phasing-out-i686-support/
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="curl debug doc gpg"
COMMON_DEPEND="app-arch/libarchive[lzma]
gpg? ( >=app-crypt/gpgme-1.4.0 )
dev-libs/openssl:=
curl? ( net-misc/curl )
sys-devel/gettext
virtual/libiconv
virtual/libintl"
RDEPEND="${COMMON_DEPEND}"
# create manpages *everytime*
DEPEND="${COMMON_DEPEND}
app-text/asciidoc
doc? ( app-doc/doxygen )"
src_prepare() {
# Remove a line that adds -Werror in ./configure when --enable-debug
# is passed:
sed -i -e '/-Werror/d' configure.ac
default
}
src_configure() {
local myeconfargs=(
--localstatedir=/var
--disable-git-version
--with-openssl
# Help protect user from shooting his/her Gentoo installation
# in its foot.
--with-root-dir="${EPREFIX}/var/chroot/archlinux"
$(use_enable debug)
# build always manpages
--with-doc
# full doc with doxygen
$(use_enable doc doxygen)
$(use_with curl libcurl)
$(use_with gpg gpgme)
)
econf "${myeconfargs[@]}"
}
src_install() {
dodir /etc/pacman.d/
default
}
pkg_postinst() {
einfo ""
einfo "The default root dir was set to ${EPREFIX}/var/chroot/archlinux"
einfo "to avoid breaking Gentoo systems due to oscitancy."
einfo "You need to create this path by yourself (or choose another via"
einfo "pacmans parameter -r|--root)."
einfo ""
einfo ""
einfo "Archlinux is dropping support for x86 (i686 called there) entirely"
einfo "in the near future. Keep this in mind when setting up new systems."
einfo "For more details see"
einfo "https://www.archlinux.org/news/phasing-out-i686-support"
einfo ""
}