Upgraded packages to latest upstream

Upgraded sys-apps/gentoo-functions to v0.19

BUG=None
TEST=presubmit
RELEASE_NOTE=Upgraded sys-apps/gentoo-functions to v0.19.

Change-Id: I5ac06097990a3df746bb40b567232b6c324ea40b
Reviewed-on: https://cos-review.googlesource.com/c/third_party/overlays/portage-stable/+/44576
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Chenglong Tang <chenglongtang@google.com>
diff --git a/sys-apps/gentoo-functions/Manifest b/sys-apps/gentoo-functions/Manifest
index 5e47168..f77fb3b 100644
--- a/sys-apps/gentoo-functions/Manifest
+++ b/sys-apps/gentoo-functions/Manifest
@@ -1 +1,2 @@
-DIST gentoo-functions-0.11.tar.gz 11511 SHA256 e861e1fc4da45c07c62889d80e9d2d869ef92bba4f96d1b41aff119c3e9c8099 SHA512 eb9a0ee72c31ca18b6b71e08223b3c0ba822333f051947579e4f66b26082c5e6fc91c2da34967cf9fed9e2b5143690e0e1166282c26d122c5aaa24848b8418a3 WHIRLPOOL 37185f024b67ac0ba40ff5aff44e054f1b6ce4f657834d6f06bc95ccd3a3d8f74bc9faae54d1f386dfbb41e54e655f3023fda064cc3b30243ed58029765c024f
+DIST gentoo-functions-0.17.tar.bz2 10798 BLAKE2B 1b725945421ab36b1412f9addc22e9fe299c0e6460790ee2832b9f63d4c06b86bb0d054b01505640a5dc1e62f3cd257628717fec852116a4c8b2c9f9d2d149ee SHA512 6a3de93b5e4d761a53a622f41e6079606cc4ad8a964771d49dafdefbb632afdf722fd055d261e494aa0be956c4160c49a775ab40c927c5340b8e4da275ef51fb
+DIST gentoo-functions-0.19.tar.bz2 12079 BLAKE2B be0a3a54d4dee1755866047b670a69cd6fec368239123c3f0c08180b79a33c20147bca0e35e568faef6877513551e731bdf0c181aeb0460f6574d2d708219373 SHA512 2674d3fe5724cc6d685ae58bf0ee33f4a1bdba2c5e5809cfb193fd0a710d4678c2d9392c2c62d2321cf455f524950266dc1629ab684fe46632d179e539d5a39e
diff --git a/sys-apps/gentoo-functions/gentoo-functions-0.11.ebuild b/sys-apps/gentoo-functions/gentoo-functions-0.11.ebuild
deleted file mode 100644
index 51e7ddf..0000000
--- a/sys-apps/gentoo-functions/gentoo-functions-0.11.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-if [[ ${PV} == 9999* ]]; then
-	inherit git-r3
-	EGIT_REPO_URI="git://github.com/gentoo/${PN}.git"
-else
-	SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="*"
-fi
-
-inherit toolchain-funcs flag-o-matic
-
-DESCRIPTION="base functions required by all Gentoo systems"
-HOMEPAGE="https://www.gentoo.org"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE=""
-
-src_prepare() {
-	tc-export CC
-	append-lfs-flags
-}
-
-src_install() {
-	emake install DESTDIR="${ED}"
-}
diff --git a/sys-apps/gentoo-functions/gentoo-functions-0.19.ebuild b/sys-apps/gentoo-functions/gentoo-functions-0.19.ebuild
new file mode 100644
index 0000000..1bfc1f9
--- /dev/null
+++ b/sys-apps/gentoo-functions/gentoo-functions-0.19.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2014-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == 9999* ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gentoo-functions.git"
+else
+	SRC_URI="https://gitweb.gentoo.org/proj/gentoo-functions.git/snapshot/${P}.tar.bz2"
+	KEYWORDS="*"
+fi
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="Base functions required by all Gentoo systems"
+HOMEPAGE="https://gitweb.gentoo.org/proj/gentoo-functions.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+# Specifically needs GNU find, as well.
+RDEPEND=">=sys-apps/findutils-4.9"
+
+src_configure() {
+	tc-export CC
+	append-lfs-flags
+	export ROOTPREFIX="${EPREFIX}"
+	export PREFIX="${EPREFIX}/usr"
+}
diff --git a/sys-apps/gentoo-functions/metadata.xml b/sys-apps/gentoo-functions/metadata.xml
index 1cc4955..a228a51 100644
--- a/sys-apps/gentoo-functions/metadata.xml
+++ b/sys-apps/gentoo-functions/metadata.xml
@@ -1,20 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 <maintainer type="person">
 	<email>williamh@gentoo.org</email>
 </maintainer>
-<maintainer type="person">
-	<email>blueness@gentoo.org</email>
-</maintainer>
 <maintainer type="project">
 	<email>base-system@gentoo.org</email>
 	<name>Gentoo Base System</name>
 </maintainer>
-<longdescription lang="en">
-	This package contains base shell functions which are required by
-	all Gentoo systems.
-</longdescription>
 <upstream>
 	<remote-id type="github">gentoo/gentoo-functions</remote-id>
 </upstream>