summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-01 03:36:20 +0100
committerSam James <sam@gentoo.org>2021-04-02 00:11:40 +0100
commita6d45d93e4220fecbf1c4c01feff2797dc062b9b (patch)
treebba5b7583298eab4cd4eab70ca9678471867aa6e /app-admin
parentmedia-gfx/gtkimageview: fix build with slibtool (diff)
downloadgentoo-a6d45d93e4220fecbf1c4c01feff2797dc062b9b.tar.gz
gentoo-a6d45d93e4220fecbf1c4c01feff2797dc062b9b.tar.bz2
gentoo-a6d45d93e4220fecbf1c4c01feff2797dc062b9b.zip
app-admin/xstow: port to EAPI 7, fix Prefix
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/xstow/xstow-1.0.1.ebuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/app-admin/xstow/xstow-1.0.1.ebuild b/app-admin/xstow/xstow-1.0.1.ebuild
index 8bc68e8c4517..5625fbef7050 100644
--- a/app-admin/xstow/xstow-1.0.1.ebuild
+++ b/app-admin/xstow/xstow-1.0.1.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit autotools eutils
+inherit autotools
-DESCRIPTION="replacement for GNU stow with extensions"
+DESCRIPTION="Replacement for GNU stow with extensions"
HOMEPAGE="http://xstow.sourceforge.net/"
SRC_URI="mirror://sourceforge/xstow/${P}.tar.bz2"
@@ -17,8 +17,12 @@ IUSE="ncurses"
DEPEND="ncurses? ( sys-libs/ncurses:0= )"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-ncurses.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-ncurses.patch
+ default
eautoreconf
}
@@ -27,11 +31,11 @@ src_configure() {
}
src_install() {
- emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install
+ emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install
dodoc AUTHORS ChangeLog NEWS README TODO
# create new STOWDIR
- dodir /var/lib/xstow
+ keepdir /var/lib/xstow
# install env.d file to add STOWDIR to PATH and LDPATH
doenvd "${FILESDIR}/99xstow"