1 |
commit: 04075de4c2049b5cc6f30857beedab1009493477 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 22 19:34:13 2022 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 22 19:34:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04075de4 |
7 |
|
8 |
media-gfx/inkscape: Fix up live ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
12 |
|
13 |
media-gfx/inkscape/inkscape-9999.ebuild | 21 ++++++++++++++++++--- |
14 |
1 file changed, 18 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/media-gfx/inkscape/inkscape-9999.ebuild b/media-gfx/inkscape/inkscape-9999.ebuild |
17 |
index df45f11b2dc0..863a38c311f8 100644 |
18 |
--- a/media-gfx/inkscape/inkscape-9999.ebuild |
19 |
+++ b/media-gfx/inkscape/inkscape-9999.ebuild |
20 |
@@ -6,15 +6,21 @@ EAPI=7 |
21 |
PYTHON_COMPAT=( python3_{8..10} ) |
22 |
PYTHON_REQ_USE="xml" |
23 |
MY_P="${P/_/}" |
24 |
-inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1 git-r3 |
25 |
+inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1 |
26 |
+ |
27 |
+if [[ ${PV} = 9999* ]]; then |
28 |
+ inherit git-r3 |
29 |
+ EGIT_REPO_URI="https://gitlab.com/inkscape/inkscape.git" |
30 |
+else |
31 |
+ SRC_URI="https://media.inkscape.org/dl/resources/file/${P}.tar.xz" |
32 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
33 |
+fi |
34 |
|
35 |
DESCRIPTION="SVG based generic vector-drawing program" |
36 |
HOMEPAGE="https://inkscape.org/" |
37 |
-EGIT_REPO_URI="https://gitlab.com/inkscape/inkscape.git" |
38 |
|
39 |
LICENSE="GPL-2 LGPL-2.1" |
40 |
SLOT="0" |
41 |
-KEYWORDS="" |
42 |
IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg |
43 |
openmp postscript readline spell svg2 test visio wpg" |
44 |
|
45 |
@@ -105,6 +111,15 @@ pkg_pretend() { |
46 |
fi |
47 |
} |
48 |
|
49 |
+src_unpack() { |
50 |
+ if [[ ${PV} = 9999* ]]; then |
51 |
+ git-r3_src_unpack |
52 |
+ else |
53 |
+ default |
54 |
+ fi |
55 |
+ [[ -d "${S}" ]] || mv -v "${WORKDIR}/${P}_202"?-??-* "${S}" || die |
56 |
+} |
57 |
+ |
58 |
src_prepare() { |
59 |
cmake_src_prepare |
60 |
sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die |