1 |
commit: a6d45d93e4220fecbf1c4c01feff2797dc062b9b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 1 02:36:20 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 1 23:11:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d45d93 |
7 |
|
8 |
app-admin/xstow: port to EAPI 7, fix Prefix |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-admin/xstow/xstow-1.0.1.ebuild | 18 +++++++++++------- |
13 |
1 file changed, 11 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/xstow/xstow-1.0.1.ebuild b/app-admin/xstow/xstow-1.0.1.ebuild |
16 |
index 8bc68e8c451..5625fbef705 100644 |
17 |
--- a/app-admin/xstow/xstow-1.0.1.ebuild |
18 |
+++ b/app-admin/xstow/xstow-1.0.1.ebuild |
19 |
@@ -1,11 +1,11 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
+EAPI=7 |
26 |
|
27 |
-inherit autotools eutils |
28 |
+inherit autotools |
29 |
|
30 |
-DESCRIPTION="replacement for GNU stow with extensions" |
31 |
+DESCRIPTION="Replacement for GNU stow with extensions" |
32 |
HOMEPAGE="http://xstow.sourceforge.net/" |
33 |
SRC_URI="mirror://sourceforge/xstow/${P}.tar.bz2" |
34 |
|
35 |
@@ -17,8 +17,12 @@ IUSE="ncurses" |
36 |
DEPEND="ncurses? ( sys-libs/ncurses:0= )" |
37 |
RDEPEND="${DEPEND}" |
38 |
|
39 |
+PATCHES=( |
40 |
+ "${FILESDIR}"/${P}-ncurses.patch |
41 |
+) |
42 |
+ |
43 |
src_prepare() { |
44 |
- epatch "${FILESDIR}"/${P}-ncurses.patch |
45 |
+ default |
46 |
eautoreconf |
47 |
} |
48 |
|
49 |
@@ -27,11 +31,11 @@ src_configure() { |
50 |
} |
51 |
|
52 |
src_install() { |
53 |
- emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install |
54 |
+ emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install |
55 |
dodoc AUTHORS ChangeLog NEWS README TODO |
56 |
|
57 |
# create new STOWDIR |
58 |
- dodir /var/lib/xstow |
59 |
+ keepdir /var/lib/xstow |
60 |
|
61 |
# install env.d file to add STOWDIR to PATH and LDPATH |
62 |
doenvd "${FILESDIR}/99xstow" |