1 |
commit: 56391fc876909f63d3f22c4f504459d96cb0c80b |
2 |
Author: Gregory M. Turner <gmt <AT> be-evil <DOT> net> |
3 |
AuthorDate: Wed Dec 16 07:38:35 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 16 23:10:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56391fc8 |
7 |
|
8 |
sys-apps/install-xattr: support EPREFIX and tidy |
9 |
|
10 |
As implemented install-xattr ebuilds fail on prefix due |
11 |
to a hard-coded path in the (also hard-coded) Makefile. |
12 |
Patch that up; while we're at it, tidy up the ebuilds |
13 |
a bit. |
14 |
|
15 |
Signed-off-by: Gregory M. Turner <gmt <AT> be-evil.net> |
16 |
|
17 |
sys-apps/install-xattr/install-xattr-9999.ebuild | 25 ++++++++---------------- |
18 |
1 file changed, 8 insertions(+), 17 deletions(-) |
19 |
|
20 |
diff --git a/sys-apps/install-xattr/install-xattr-9999.ebuild b/sys-apps/install-xattr/install-xattr-9999.ebuild |
21 |
index 4273b3e..7ebd6fa 100644 |
22 |
--- a/sys-apps/install-xattr/install-xattr-9999.ebuild |
23 |
+++ b/sys-apps/install-xattr/install-xattr-9999.ebuild |
24 |
@@ -8,13 +8,16 @@ HOMEPAGE="https://dev.gentoo.org/~blueness/install-xattr/" |
25 |
|
26 |
inherit toolchain-funcs |
27 |
|
28 |
+S="${WORKDIR}/${PN}" |
29 |
+ |
30 |
if [[ ${PV} == "9999" ]] ; then |
31 |
EGIT_REPO_URI="git://anongit.gentoo.org/proj/elfix.git" |
32 |
- inherit git-2 |
33 |
+ EGIT_CHECKOUT_DIR="${S}" |
34 |
+ S+=/misc/${PN} |
35 |
+ inherit git-r3 |
36 |
else |
37 |
SRC_URI="https://dev.gentoo.org/~blueness/install-xattr/${P}.tar.bz2" |
38 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
39 |
- S=${WORKDIR}/${PN} |
40 |
fi |
41 |
|
42 |
LICENSE="GPL-3" |
43 |
@@ -22,23 +25,11 @@ SLOT="0" |
44 |
|
45 |
src_prepare() { |
46 |
tc-export CC |
47 |
-} |
48 |
- |
49 |
-src_compile() { |
50 |
- if [[ ${PV} == "9999" ]] ; then |
51 |
- cd "${WORKDIR}/${P}/misc/${PN}" || die |
52 |
- fi |
53 |
- default |
54 |
-} |
55 |
- |
56 |
-src_install() { |
57 |
- if [[ ${PV} == "9999" ]] ; then |
58 |
- cd "${WORKDIR}/${P}/misc/${PN}" || die |
59 |
- fi |
60 |
- default |
61 |
+ sed -e "s|^\\(PREFIX = \\)\\(/usr\\)$|\\1${EPREFIX}\\2|" \ |
62 |
+ -i Makefile || die "sed Makefile failed" |
63 |
} |
64 |
|
65 |
# We need to fix how tests are done |
66 |
src_test() { |
67 |
- true |
68 |
+ return 0 |
69 |
} |