2021-03-22 01:18:47 +01:00
|
|
|
# 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="d5df5618fbf6f6ea0c49b6bfdcb098846d2cd777"
|
|
|
|
|
|
|
|
SRC_URI="https://git.savannah.gnu.org/cgit/gnuzilla.git/snapshot/gnuzilla-"${COMMIT}".tar.gz -> "${P}".tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
2021-03-26 18:40:56 +01:00
|
|
|
SLOT="${PV}"
|
2021-03-22 01:18:47 +01:00
|
|
|
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() {
|
2021-03-22 02:38:16 +01:00
|
|
|
insinto /usr/src/makeicecat-"${PV}"
|
2021-03-22 01:18:47 +01:00
|
|
|
doins -r "${S}"/{artwork,CHANGELOG,COPYING,data,makeicecat,README,tools}
|
2021-03-22 02:38:16 +01:00
|
|
|
fperms +x /usr/src/makeicecat-"${PV}"/{makeicecat,tools/{AddonsScraper.py,buildbinaries,createdebsrcrepo,gnupload}}
|
2021-03-22 01:18:47 +01:00
|
|
|
if use buildtarball; then
|
2021-03-22 02:38:16 +01:00
|
|
|
insinto /usr/src/makeicecat-"${PV}"/output
|
2021-03-22 01:18:47 +01:00
|
|
|
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
|
|
|
|
}
|