diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2022-01-22 20:34:13 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2022-01-22 20:34:13 +0100 |
commit | 04075de4c2049b5cc6f30857beedab1009493477 (patch) | |
tree | 8000969c9482cbddb2cdd8f9e05c453d687706e1 /media-gfx | |
parent | dev-perl/Lab-Measurement: remove old (diff) | |
download | gentoo-04075de4c2049b5cc6f30857beedab1009493477.tar.gz gentoo-04075de4c2049b5cc6f30857beedab1009493477.tar.bz2 gentoo-04075de4c2049b5cc6f30857beedab1009493477.zip |
media-gfx/inkscape: Fix up live ebuild
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/inkscape/inkscape-9999.ebuild | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/media-gfx/inkscape/inkscape-9999.ebuild b/media-gfx/inkscape/inkscape-9999.ebuild index df45f11b2dc0..863a38c311f8 100644 --- a/media-gfx/inkscape/inkscape-9999.ebuild +++ b/media-gfx/inkscape/inkscape-9999.ebuild @@ -6,15 +6,21 @@ EAPI=7 PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE="xml" MY_P="${P/_/}" -inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1 git-r3 +inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1 + +if [[ ${PV} = 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/inkscape/inkscape.git" +else + SRC_URI="https://media.inkscape.org/dl/resources/file/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi DESCRIPTION="SVG based generic vector-drawing program" HOMEPAGE="https://inkscape.org/" -EGIT_REPO_URI="https://gitlab.com/inkscape/inkscape.git" LICENSE="GPL-2 LGPL-2.1" SLOT="0" -KEYWORDS="" IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg openmp postscript readline spell svg2 test visio wpg" @@ -105,6 +111,15 @@ pkg_pretend() { fi } +src_unpack() { + if [[ ${PV} = 9999* ]]; then + git-r3_src_unpack + else + default + fi + [[ -d "${S}" ]] || mv -v "${WORKDIR}/${P}_202"?-??-* "${S}" || die +} + src_prepare() { cmake_src_prepare sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die |