| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pypax/pypax-0.8.1.ebuild,v 1.1 2013/01/06 22:51:37 blueness Exp $
|
| 4 |
|
| 5 |
EAPI="5"
|
| 6 |
|
| 7 |
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
|
| 8 |
|
| 9 |
inherit distutils-r1
|
| 10 |
|
| 11 |
DESCRIPTION="Python module to get or set either PT_PAX and/or XATTR_PAX flags"
|
| 12 |
HOMEPAGE="http://dev.gentoo.org/~blueness/elfix/
|
| 13 |
http://www.gentoo.org/proj/en/hardened/pax-quickstart.xml"
|
| 14 |
SRC_URI="http://dev.gentoo.org/~blueness/elfix/elfix-${PV}.tar.gz"
|
| 15 |
|
| 16 |
S="${WORKDIR}/elfix-${PV}/scripts"
|
| 17 |
|
| 18 |
LICENSE="GPL-3"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
| 21 |
IUSE="+ptpax +xtpax"
|
| 22 |
|
| 23 |
REQUIRED_USE="|| ( ptpax xtpax )"
|
| 24 |
|
| 25 |
DEPEND="dev-python/setuptools
|
| 26 |
ptpax? ( dev-libs/elfutils )
|
| 27 |
xtpax? ( sys-apps/attr )"
|
| 28 |
|
| 29 |
RDEPEND=""
|
| 30 |
|
| 31 |
src_compile() {
|
| 32 |
unset PTPAX
|
| 33 |
unset XTPAX
|
| 34 |
use ptpax && export PTPAX="yes"
|
| 35 |
use xtpax && export XTPAX="yes"
|
| 36 |
distutils_src_compile
|
| 37 |
}
|