/[gentoo-x86]/sys-apps/proot/proot-4.0.1.ebuild
Gentoo

Contents of /sys-apps/proot/proot-4.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Sep 2 07:07:02 2014 UTC (5 years, 4 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Version bump, wrt bug #520050 with fix for bug #517496. Thanks to Joakim Tjernlund <Joakim.Tjernlund AT transmode.se> for discovering this issues. Drop old version

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/proot/proot-4.0.0.ebuild,v 1.1 2014/07/23 12:46:07 pinkbyte Exp $
4
5 EAPI=5
6 MY_PN="PRoot"
7
8 inherit eutils toolchain-funcs
9
10 DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc"
11 HOMEPAGE="http://proot.me"
12 SRC_URI="https://github.com/cedric-vincent/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="care test"
18
19 RDEPEND="care? ( app-arch/libarchive:0= )
20 sys-libs/talloc"
21 DEPEND="${RDEPEND}
22 care? ( dev-libs/uthash )
23 test? ( dev-util/valgrind )"
24
25 # Breaks sandbox
26 RESTRICT="test"
27
28 S="${WORKDIR}/${MY_PN}-${PV}"
29
30 src_prepare() {
31 epatch "${FILESDIR}/${PN}-3.2.1-makefile.patch" \
32 "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch" \
33 "${FILESDIR}/${PN}-3.2.2-build-care.patch" \
34 "${FILESDIR}/${PN}-4.0.1-argv.patch"
35 epatch_user
36 }
37
38 src_compile() {
39 # build the proot and care targets
40 emake -C src V=1 \
41 CC="$(tc-getCC)" \
42 CHECK_VERSION="true" \
43 CAREBUILDENV="ok" \
44 proot $(use care && echo "care")
45 }
46
47 src_install() {
48 use care && dobin src/care
49 dobin src/proot
50 newman doc/proot/man.1 proot.1
51 dodoc doc/proot/*.txt
52 dodoc -r doc/articles
53 }
54
55 src_test() {
56 emake -C tests -j1 CC="$(tc-getCC)"
57 }
58
59 pkg_postinst() {
60 if use care; then
61 elog "You have enabled 'care' USE flag, that builds and installs"
62 elog "dynamically linked care binary."
63 elog "Upstream does NOT support such way of building CARE,"
64 elog "it provides only prebuilt binaries."
65 elog "CARE also has known problems on hardened systems"
66 elog "Please do NOT file bugs about them to http://bugs.gentoo.org"
67 fi
68 }

  ViewVC Help
Powered by ViewVC 1.1.20