1 |
commit: 910ad0a1efd617cbff83778955285678fb44e58d |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 16 13:12:05 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 16 14:43:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=910ad0a1 |
7 |
|
8 |
sys-apps/dmapi: EAPI-7 bump, fix installed docs |
9 |
|
10 |
Closes: https://bugs.gentoo.org/732042 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
sys-apps/dmapi/dmapi-2.2.12-r2.ebuild | 50 ++++++++++++++++++++++++++ |
15 |
sys-apps/dmapi/files/dmapi-2.2.12-no-doc.patch | 20 +++++++++++ |
16 |
2 files changed, 70 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/dmapi/dmapi-2.2.12-r2.ebuild b/sys-apps/dmapi/dmapi-2.2.12-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..09a87741374 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/dmapi/dmapi-2.2.12-r2.ebuild |
23 |
@@ -0,0 +1,50 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit multilib-minimal usr-ldscript |
30 |
+ |
31 |
+DESCRIPTION="XFS data management API library" |
32 |
+HOMEPAGE="https://xfs.wiki.kernel.org/" |
33 |
+SRC_URI="ftp://oss.sgi.com/projects/xfs/cmd_tars/${P}.tar.gz |
34 |
+ ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="LGPL-2.1" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" |
39 |
+IUSE="static-libs" |
40 |
+ |
41 |
+RDEPEND="sys-fs/xfsprogs" |
42 |
+DEPEND="${RDEPEND}" |
43 |
+ |
44 |
+DOCS=( doc/{CHANGES,PORTING} README ) |
45 |
+ |
46 |
+PATCHES=( |
47 |
+ "${FILESDIR}"/${P}-headers.patch |
48 |
+ "${FILESDIR}"/${P}-no-doc.patch # bug 732042 |
49 |
+) |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ multilib_copy_sources |
54 |
+} |
55 |
+ |
56 |
+multilib_src_configure() { |
57 |
+ export OPTIMIZER=${CFLAGS} |
58 |
+ export DEBUG=-DNDEBUG |
59 |
+ |
60 |
+ econf \ |
61 |
+ --libexecdir=/usr/$(get_libdir) \ |
62 |
+ $(use_enable static-libs static) |
63 |
+} |
64 |
+ |
65 |
+multilib_src_install() { |
66 |
+ emake DESTDIR="${D}" install install-dev |
67 |
+ gen_usr_ldscript -a dm |
68 |
+} |
69 |
+ |
70 |
+multilib_src_install_all() { |
71 |
+ einstalldocs |
72 |
+ find "${ED}" -name '*.la' -delete || die |
73 |
+} |
74 |
|
75 |
diff --git a/sys-apps/dmapi/files/dmapi-2.2.12-no-doc.patch b/sys-apps/dmapi/files/dmapi-2.2.12-no-doc.patch |
76 |
new file mode 100644 |
77 |
index 00000000000..295bdb7c657 |
78 |
--- /dev/null |
79 |
+++ b/sys-apps/dmapi/files/dmapi-2.2.12-no-doc.patch |
80 |
@@ -0,0 +1,20 @@ |
81 |
+--- a/Makefile |
82 |
++++ b/Makefile |
83 |
+@@ -19,7 +19,7 @@ |
84 |
+ libtool include/builddefs |
85 |
+ |
86 |
+ LIB_SUBDIRS = include libdm |
87 |
+-TOOL_SUBDIRS = m4 man doc debian build |
88 |
++TOOL_SUBDIRS = m4 man debian build |
89 |
+ |
90 |
+ SUBDIRS = $(LIB_SUBDIRS) $(TOOL_SUBDIRS) |
91 |
+ |
92 |
+@@ -66,7 +66,7 @@ |
93 |
+ touch .census |
94 |
+ |
95 |
+ install: default $(addsuffix -install,$(SUBDIRS)) |
96 |
+-ifneq ($(PKG_DISTRIBUTION), debian) |
97 |
++ifdef false |
98 |
+ $(INSTALL) -m 755 -d $(PKG_DOC_DIR) |
99 |
+ $(INSTALL) -m 644 README $(PKG_DOC_DIR) |
100 |
+ endif |