summaryrefslogtreecommitdiff
blob: 20433fc23971c6cb659549b58efac236977b25e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit autotools pax-utils

DESCRIPTION="Test XT and PT pax markings"
HOMEPAGE="https://bugs.gentoo.org/show_bug.cgi?id=427888"
SRC_URI=""

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+before after"

DEPEND=""
RDEPEND="${DEPEND}"

src_unpack() {
	mkdir -p "${S}"
	cp "${FILESDIR}"/{configure.ac,Makefile.am,mytest.c} "${S}"
}

src_prepare() {
	eautoreconf
}

src_install() {
	use before && pax-mark -m "${S}"/mytest
	emake DESTDIR="${ED}" install
	use after && pax-mark -m "${D}"/usr/bin/mytest
}