1 |
commit: 117f9db5c9ded669ac23966171cfc98ef052df59 |
2 |
Author: David Flogeras <dflogeras2 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 25 17:01:44 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Jun 25 17:03:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=117f9db5 |
7 |
|
8 |
x11-libs/kimageannotator: Bump to 0.3.0 |
9 |
|
10 |
Signed-off-by: David Flogeras <dflogeras2 <AT> gmail.com> |
11 |
|
12 |
x11-libs/kimageannotator/Manifest | 1 + |
13 |
...do-command-delete-items-that-are-required.patch | 10 ++++++ |
14 |
.../files/include-gnuinstalldirs-before-use.patch | 36 ++++++++++++++++++++++ |
15 |
.../kimageannotator/kimageannotator-0.3.0.ebuild | 31 +++++++++++++++++++ |
16 |
4 files changed, 78 insertions(+) |
17 |
|
18 |
diff --git a/x11-libs/kimageannotator/Manifest b/x11-libs/kimageannotator/Manifest |
19 |
index ba05e37..539d692 100644 |
20 |
--- a/x11-libs/kimageannotator/Manifest |
21 |
+++ b/x11-libs/kimageannotator/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST kImageAnnotator-0.2.1.tar.gz 107027 BLAKE2B 247ea31f3dfd90fd175b879c3fe06a50ee2ce8f3f2ce395efa1882fe8abc4be4e5a739782054682336cf327fe288d24b17971c89dfaf7f5202ba3f607165b0f2 SHA512 6f9d03b6d0d020c90fa050ac6be30b680db8dd3a2035db80856bb69c9e6ef0228b2d152c5f234caf6d3fe2d8433b17fbdfee728246f2a8c339936b6ba051a52b |
24 |
+DIST kImageAnnotator-0.3.0.tar.gz 128019 BLAKE2B 412748b432e41e6bdc01aa7270cbb32342016423beeca537c92096641e06f9a82a0ce7d1779fb25aec51e6e4c9451778fc339bb3c82edcdc56657ac810859447 SHA512 0d9e4ab5bdef1554e3b476e0d0e8f2ad08387abd94d9167c2b4987b0857294618b7a6626640381dade10c7eedaa5dec9e449715b46437c1d9a044142c15b7617 |
25 |
|
26 |
diff --git a/x11-libs/kimageannotator/files/fix-undo-command-delete-items-that-are-required.patch b/x11-libs/kimageannotator/files/fix-undo-command-delete-items-that-are-required.patch |
27 |
new file mode 100644 |
28 |
index 0000000..39aa759 |
29 |
--- /dev/null |
30 |
+++ b/x11-libs/kimageannotator/files/fix-undo-command-delete-items-that-are-required.patch |
31 |
@@ -0,0 +1,10 @@ |
32 |
+--- a/src/annotations/undo/AddCommand.cpp |
33 |
++++ b/src/annotations/undo/AddCommand.cpp |
34 |
+@@ -29,7 +29,6 @@ AddCommand::AddCommand(AbstractAnnotationItem *item, AnnotationArea *annotationA |
35 |
+ |
36 |
+ AddCommand::~AddCommand() |
37 |
+ { |
38 |
+- delete mItem; |
39 |
+ } |
40 |
+ |
41 |
+ void AddCommand::undo() |
42 |
|
43 |
diff --git a/x11-libs/kimageannotator/files/include-gnuinstalldirs-before-use.patch b/x11-libs/kimageannotator/files/include-gnuinstalldirs-before-use.patch |
44 |
new file mode 100644 |
45 |
index 0000000..c5c7677 |
46 |
--- /dev/null |
47 |
+++ b/x11-libs/kimageannotator/files/include-gnuinstalldirs-before-use.patch |
48 |
@@ -0,0 +1,36 @@ |
49 |
+From 94b08e1a3cef1d826ccae09a1287c2d5e327a293 Mon Sep 17 00:00:00 2001 |
50 |
+From: Dave Flogeras <dflogeras2@×××××.com> |
51 |
+Date: Fri, 19 Jun 2020 09:23:29 -0300 |
52 |
+Subject: [PATCH] Include GNUInstallDirs before using variables that rely on |
53 |
+ it. |
54 |
+ |
55 |
+This was subtle because when building by hand, and running cmake |
56 |
+multiple times, it seems to cache the variable. However when building |
57 |
+for Gentoo in an ebuild, cmake makes one pass, and the |
58 |
+CMAKE_INSTALL_DATAROOTDIR variable is empty. This results in the |
59 |
+translation files going in the wrong place. |
60 |
+--- |
61 |
+ CMakeLists.txt | 3 ++- |
62 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
63 |
+ |
64 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
65 |
+index 12ad227..5c14937 100644 |
66 |
+--- a/CMakeLists.txt |
67 |
++++ b/CMakeLists.txt |
68 |
+@@ -11,6 +11,8 @@ set(CMAKE_AUTORCC ON) |
69 |
+ option(BUILD_TESTS "Build Unit Tests" OFF) |
70 |
+ option(BUILD_EXAMPLE "Build Example Application" ON) |
71 |
+ |
72 |
++include(GNUInstallDirs) |
73 |
++ |
74 |
+ if (WIN32) |
75 |
+ set(KIMAGEANNOTATOR_LANG_INSTAL_DIR "translations") |
76 |
+ elseif (APPLE) |
77 |
+@@ -27,7 +29,6 @@ if (UNIX) |
78 |
+ find_package(X11 REQUIRED) |
79 |
+ endif () |
80 |
+ |
81 |
+-include(GNUInstallDirs) |
82 |
+ include(FeatureSummary) |
83 |
+ |
84 |
+ set(KCOLORPICKER_MIN_VERSION "0.1.4") |
85 |
|
86 |
diff --git a/x11-libs/kimageannotator/kimageannotator-0.3.0.ebuild b/x11-libs/kimageannotator/kimageannotator-0.3.0.ebuild |
87 |
new file mode 100644 |
88 |
index 0000000..d1dd0cb |
89 |
--- /dev/null |
90 |
+++ b/x11-libs/kimageannotator/kimageannotator-0.3.0.ebuild |
91 |
@@ -0,0 +1,31 @@ |
92 |
+# Copyright 2020 Gentoo Authors |
93 |
+# Distributed under the terms of the GNU General Public License v2 |
94 |
+ |
95 |
+EAPI=7 |
96 |
+ |
97 |
+inherit cmake |
98 |
+ |
99 |
+DESCRIPTION="Tool for annotating images" |
100 |
+HOMEPAGE="https://github.com/ksnip/kImageAnnotator" |
101 |
+MY_PN=kImageAnnotator |
102 |
+MY_P="${MY_PN}-${PV}" |
103 |
+SRC_URI="https://github.com/ksnip/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" |
104 |
+ |
105 |
+LICENSE="LGPL-3+" |
106 |
+SLOT="0" |
107 |
+KEYWORDS="~amd64 ~x86" |
108 |
+IUSE="" |
109 |
+ |
110 |
+DEPEND="dev-qt/qtsvg:5 |
111 |
+ >=x11-libs/kcolorpicker-0.1.4" |
112 |
+RDEPEND="${DEPEND}" |
113 |
+BDEPEND="" |
114 |
+ |
115 |
+S="${WORKDIR}/${MY_P}" |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ default |
119 |
+ eapply "${FILESDIR}"/fix-undo-command-delete-items-that-are-required.patch |
120 |
+ eapply "${FILESDIR}"/include-gnuinstalldirs-before-use.patch |
121 |
+ cmake_src_prepare |
122 |
+} |