src_prepare-overlay/www-client/makeicecat/makeicecat-78.10.0.ebuild
Alfred Wingate ce8d806fc5
www-client/makeicecat: bump to 78.10.0, drop 78.8.0
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2021-04-20 08:31:35 +03:00

53 lines
1.3 KiB
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Script for creating GNU Icecat tarball"
HOMEPAGE="https://www.gnu.org/software/gnuzilla/"
COMMIT="b72c22186cf381d7b1f93be550c9da30865d03b4"
SRC_URI="https://git.savannah.gnu.org/cgit/gnuzilla.git/snapshot/gnuzilla-"${COMMIT}".tar.gz -> "${P}".tar.gz"
LICENSE="GPL-3"
SLOT="${PV}"
KEYWORDS="~amd64"
IUSE="+buildtarball"
RESTRICT="buildtarball? ( network-sandbox )"
RDEPEND="${BDEPEND}"
BDEPEND="
dev-vcs/mercurial
dev-perl/File-Rename
"
S=""${WORKDIR}"/gnuzilla-"${COMMIT}""
src_compile() {
if use buildtarball; then
./makeicecat || die
fi
}
src_install() {
insinto /usr/src/makeicecat-"${PV}"
doins -r "${S}"/{artwork,CHANGELOG,COPYING,data,makeicecat,README,tools}
fperms +x /usr/src/makeicecat-"${PV}"/{makeicecat,tools/{AddonsScraper.py,buildbinaries,createdebsrcrepo,gnupload}}
if use buildtarball; then
insinto /usr/src/makeicecat-"${PV}"/output
doins "${S}"/output/icecat-"${PV}"-gnu1.tar.bz2
fi
}
pkg_postinst() {
if ! use buildtarball; then
einfo "You haven't enabled buildtarball, therefore you have to create the tarball yourself."
einfo "You can create the tarball in /usr/share/makeicecat-"${PV}" by starting the script manually."
einfo " ./makeicecat"
einfo "It will take a while so be prepared."
fi
}