1 |
commit: 2ba0b24b5ffeb56d9fc2b69834745688f61497cc |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 12:55:47 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 12:56:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ba0b24b |
7 |
|
8 |
media-gfx/libredwg: enable py3.11, strip .la files if not static-libs |
9 |
|
10 |
Closes: https://bugs.gentoo.org/847397 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
.../libredwg/{libredwg-0.12.5.ebuild => libredwg-0.12.5-r1.ebuild} | 7 ++++++- |
14 |
1 file changed, 6 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/media-gfx/libredwg/libredwg-0.12.5.ebuild b/media-gfx/libredwg/libredwg-0.12.5-r1.ebuild |
17 |
similarity index 91% |
18 |
rename from media-gfx/libredwg/libredwg-0.12.5.ebuild |
19 |
rename to media-gfx/libredwg/libredwg-0.12.5-r1.ebuild |
20 |
index 8f14bdef8e11..a1d3d185df43 100644 |
21 |
--- a/media-gfx/libredwg/libredwg-0.12.5.ebuild |
22 |
+++ b/media-gfx/libredwg/libredwg-0.12.5-r1.ebuild |
23 |
@@ -3,7 +3,7 @@ |
24 |
|
25 |
EAPI=8 |
26 |
|
27 |
-PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+PYTHON_COMPAT=( python3_{8..11} ) |
29 |
DOCS_BUILDER="doxygen" |
30 |
# File is hardcoded to be run from ../ so we use this instead of DOCS_DIR |
31 |
DOCS_CONFIG_NAME="doc/Doxyfile" |
32 |
@@ -103,4 +103,9 @@ src_install() { |
33 |
perl_set_version |
34 |
default |
35 |
use python && python_optimize |
36 |
+ # remove .la files if static-libs disabled |
37 |
+ if ! use static-libs; then |
38 |
+ rm "${ED}/usr/$(get_libdir)/libredwg.la" || die |
39 |
+ use python && rm "${D}/$(python_get_sitedir)/_LibreDWG.la" || die |
40 |
+ fi |
41 |
} |